Došlo je do pogreške prilikom obrade predloška.
The following has evaluated to null or missing: ==> vrstaHR [in template "20155#20195#236108" at line 165, column 24] ---- Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign key = vrstaHR + "_" + locale... [in template "20155#20195#236108" at line 165, column 9] ----
1<#-- TEMPLATE KEY : 268764 -->
2<#-- TEMPLATE NAME: HNB Publikacije detalj.ftl -->
3
4<#-- Fileter Functions ADT -->
5<#include "${templatesPath}/4812567" />
6
7<style>
8 .table-container table,
9 .table-container table th,
10 .table-container table td { border:none; background-color: #fff; padding: 6px; }
11 .table-container table th { text-transform: uppercase; }
12 .module-publication-details { background:#fff; width:100%; }
13 .module-publication-details .summary { margin-top:24px; clear:both; }
14 .module-publication-details .image-container { display:table-cell; vertical-align:top; }
15 .module-publication-details .image-container img { width:100%; height:100% }
16 .module-publication-details .attribute-container { display:table-cell; vertical-align:top; }
17
18 .module-publication-details a {color: #c81818;}
19 .related-document-item a {color: #484c50;}
20
21 .hnb-body .dark-red a {display: block; width:50%;float: left;}
22 .hnb-body .dark-red a:hover {color: #fff; background:rgba(240, 32, 32, 1.0);}
23 .hnb-body .dark-red a:hover i {color: #fff;}
24
25 .image-container {width:154px; height:200px;}
26 .image-container a {width:154px; height:200px; display: block; border:1px solid #d4d4d8;}
27</style>
28
29<#assign dLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")/>
30<#assign dLAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService")/>
31
32<#assign ddmStructureLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMStructureLocalService")/>
33<#assign journalConverter = serviceLocator.findService("com.liferay.journal.util.JournalConverter")/>
34<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.link.service.AssetLinkLocalService")/>
35<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")/>
36
37<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/>
38<#assign WindowState = staticUtil["javax.portlet.WindowState"] />
39<#assign dlUtil = serviceLocator.findService("com.liferay.document.library.kernel.util.DLUtil")>
40<#assign dlURLHelper = serviceLocator.findService("com.liferay.document.library.util.DLURLHelper") />
41
42<#assign issnMap = {
43 "Bilten_hr":"1334-0042", "Bilten_en":"1334-0050",
44 "Bilten o bankama_hr":"1334-0115", "Bilten o bankama_en":"1334-0123",
45 "Godišnje izvješće_hr":"1334-0093", "Godišnje izvješće_en":"1334-0107",
46 "Polugodišnja informacija_hr":"1848-7505", "Polugodišnja informacija_en":"1849-3483",
47 "Financijska stabilnost_hr":"1846-940X", "Financijska stabilnost_en":"1847-0017",
48 "Makrobonitetna analiza_hr":"1845-6057", "Makrobonitetna analiza_en":" 1845-6332",
49 "Istraživanja_hr":"1334-0077", "Istraživanja_en":"1334-0131",
50 "Pregledi_hr":"1334-0085", "Pregledi_en":"1334-014X",
51 "Platne kartice i kartične transakcije_hr":"1849-790X", "Platne kartice i kartične transakcije_en":"1849-8930",
52 "Makroekonomska kretanja i prognoze_hr":"2459-8089","Makroekonomska kretanja i prognoze_en":"2459-8607",
53 "Platne transakcije i računi_hr":"2459-8097", "Platne transakcije i računi_en":"2459-8585",
54 "Makroprudencijalna dijagnostika_hr":"2459-8704", "Makroprudencijalna dijagnostika_en":"2459-8887"
55 } />
56
57
58<#if entries?has_content>
59 <#list entries as curEntry>
60
61 <#assign naslov = curEntry.getTitle(locale)/>
62 <#assign fileExt = ""/>
63 <#assign docLink = ""/>
64 <#assign docTitle = ""/>
65 <#assign srcImage = ""/>
66
67 <#assign assetRenderer = curEntry.getAssetRenderer() />
68 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
69 <#assign contextURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />
70
71 <#assign article = assetRenderer.getArticle() />
72 <#assign document = saxReaderUtil.read(article.getContentByLocale(themeDisplay.getLanguageId())) />
73 <#assign rootElement = document.getRootElement() />
74 <#assign ddmStructure = article.getDDMStructure() />
75 <#assign fields = journalConverter.getDDMFields(ddmStructure, article.getContent()) />
76
77 <#-- DATE -->
78 <#assign date_pattern = {"hr_HR":"d.M.yyyy.", "en_US":"d/M/yyyy"}>
79
80 <#assign originalLocale = locale />
81 <#setting locale = localeUtil.getDefault() />
82
83 <#if fields.get("datum_objave")?has_content && fields.get("datum_objave").getValue(locale)?has_content>
84 <#assign displayDate = fields.get("datum_objave").getValue(locale) />
85 <#assign displayDate = dateUtil.parseDate("yyyy-MM-dd", displayDate, locale) >
86 <#assign displayDate = dateUtil.getDate(displayDate, date_pattern[locale], locale) >
87 </#if>
88
89 <#if fields.get("datum_azuriranja")?has_content && fields.get("datum_azuriranja").getValue(locale)?has_content>
90 <#assign modifiedDate = fields.get("datum_azuriranja").getValue(locale) />
91 <#assign modifiedDate = dateUtil.parseDate("yyyy-MM-dd", modifiedDate, locale) >
92 <#assign modifiedDate = dateUtil.getDate(modifiedDate, date_pattern[locale], locale) >
93 </#if>
94
95 <#assign locale = originalLocale />
96
97 <#if fields.get("vrsta")?has_content>
98 <#assign vrstaHR = fields.get("vrsta").getRenderedValue(localeUtil.fromLanguageId("hr_HR"))/>
99 <#assign vrsta = fields.get("vrsta").getRenderedValue(locale)/>
100 </#if>
101 <#if article.getTitle(locale)?has_content>
102 <#assign naslov = article.getTitle(locale)/>
103 </#if>
104 <#if fields.get("naslov")?has_content>
105 <#assign naslov_publikacije = fields.get("naslov").getValue(locale)/>
106 </#if>
107 <#if fields.get("izdavac")?has_content>
108 <#assign izdavac = fields.get("izdavac").getValue(locale)?trim/>
109 </#if>
110 <#if fields.get("autor")?has_content>
111 <#assign autor = fields.get("autor").getValue(locale)?trim/>
112 </#if>
113 <#if fields.get("godina")?has_content>
114 <#assign godina = fields.get("godina").getValue(locale)?trim/>
115 </#if>
116 <#if fields.get("broj")?has_content>
117 <#assign broj = fields.get("broj").getValue(locale)?trim/>
118 </#if>
119 <#if fields.get("mjesec")?has_content && stringUtil.extractDigits(fields.get("mjesec").getValue(locale))?has_content>
120 <#assign mjesec = fields.get("mjesec").getRenderedValue(locale)/>
121 <#assign mjesecAlt = fields.get("mjesec").getValue(locale)/>
122 <#assign mjesecAlt = mjesecAlt?replace('["', "")?replace('"]', "")/>
123 </#if>
124 <#if fields.get("datum")?has_content>
125 <#assign datum = fields.get("datum").getValue(locale)/>
126 </#if>
127 <#if fields.get("dodatak")?has_content>
128 <#assign dodatak = fields.get("dodatak").getValue(locale)/>
129 </#if>
130 <#if fields.get("kretanja")?has_content>
131 <#assign kretanja = fields.get("kretanja").getValue(locale)/>
132 </#if>
133 <#if fields.get("godina_izdanja")?has_content>
134 <#assign godina_izdanja = fields.get("godina_izdanja").getValue(locale)/>
135 </#if>
136 <#if fields.get("jel")?has_content>
137 <#assign jel = fields.get("jel").getValue(locale)/>
138 </#if>
139 <#if fields.get("cip")?has_content>
140 <#assign cip = fields.get("cip").getValue(locale)/>
141 </#if>
142 <#if fields.get("isbn")?has_content>
143 <#assign isbn = fields.get("isbn").getValue(locale)/>
144 </#if>
145 <#if fields.get("opis")?has_content>
146 <#assign opis = fields.get("opis").getValue(locale)/>
147 </#if>
148 <#if fields.get("html")?has_content>
149 <#if fields.get("html").getValue(locale)?has_content>
150 <#assign html = fields.get("html").getValue(locale)/>
151 </#if>
152 </#if>
153 <#if fields.get("okviri")?has_content>
154 ${asDebug('<br />Publikacije detalj: okviri: ${fields.get("okviri")}', "okviri_")}
155
156 <#-- <#assign okviri = fields.get("okviri").getValue(locale)/> -->
157 </#if>
158 <#assign html_link_text = "HTML"/>
159 <#if fields.get("html_link_tekst")?has_content>
160 <#assign html_link_text = fields.get("html_link_tekst").getValue(locale)/>
161 </#if>
162 <#if fields.get("kljucne_rijeci")?has_content>
163 <#assign kljucne_rijeci = fields.get("kljucne_rijeci").getValue(locale)/>
164 </#if>
165 <#assign key = vrstaHR + "_" + locale.getLanguage() />
166 <#if isbn?has_content>
167 <#assign issn = isbn />
168 <#else>
169 <#assign issn = issnMap[key]! />
170 </#if>
171
172 <#if hasValidContent(fields.get("dokument").getValue(locale))>
173 <#-- CORRECT FOR ONLY 1 ELEMENT IN LIST -->
174
175 <#assign fileEntry = getDLFileEntry(fields.get("dokument").getValue(locale)) />
176 <#assign fileEntryURL = resolveFileEntryURL(fields.get("dokument").getValue(locale))>
177
178 <#assign fileExt = fileEntry.getExtension() />
179 <#assign docTitle = fileEntry.getTitle() />
180
181 <#if fileExt == "pdf">
182 <#assign imagePreviewURL = dlURLHelper.getThumbnailSrc(dLAppLocalService.getFileEntry(fileEntry.getFileEntryId()), themeDisplay) />
183
184 <#if !imagePreviewURL?has_content>
185 <#assign srcImage = "/documents/" + groupId + "/" + fileEntry.getFolderId() + "/" + docTitle +"?documentThumbnail=2"/>
186 </#if>
187
188 <#assign srcImage = imagePreviewURL/>
189 </#if>
190
191 <#assign docLink = fileEntryURL />
192 ${asDebug('<br/>Publikacije detalj: Polje dokument: ${fields.get("dokument").getValue(locale)}', "dokument_")}
193 </#if>
194
195 <#if fields.get("kretanja")?has_content && hasValidContent(fields.get("kretanja").getValue(locale))>
196 <#-- CORRECT FOR ONLY 1 ELEMENT IN LIST -->
197
198 <#assign fileEntry2 = getDLFileEntry(fields.get("kretanja").getValue(locale))>
199 <#assign fileEntryURL2 = resolveFileEntryURL(fields.get("kretanja").getValue(locale))>
200
201 <#assign fileExt2 = fileEntry2.getExtension() />
202
203 <#assign docLink2 = fileEntryURL2 />
204
205 ${asDebug('<br/>Publikacije detalj: Polje kretanja: ${fields.get("kretanja").getValue(locale)}', "kretanja_")}
206 </#if>
207
208 <#if fields.get("dodatak")?has_content && hasValidContent(fields.get("dodatak").getValue(locale))>
209 <#-- CORRECT FOR ONLY 1 ELEMENT IN LIST -->
210
211 <#assign fileEntry3 = getDLFileEntry(fields.get("dodatak").getValue(locale))>
212 <#assign fileEntryURL3 = resolveFileEntryURL(fields.get("dodatak").getValue(locale))>
213
214 <#assign fileExt3 = fileEntry3.getExtension() />
215
216 <#assign docLink3 = fileEntryURL3 />
217
218 ${asDebug('<br/>Publikacije detalj: Polje dodatak: ${fields.get("dodatak").getValue(locale)}', "dodatak_")}
219
220 </#if>
221
222 <#if (vrstaHR == "Bilten" || vrstaHR == "Bilten o bankama" || vrstaHR == "Financijska stabilnost" || vrstaHR == "Makrobonitetna analiza") >
223 <#assign title = languageUtil.format(locale,"templates.publications.title.type1", [vrsta, broj]) />
224
225 <#-- ipak koristi naslov iz polja naslov_publikacije a ne tip + broj -->
226 <#assign title = naslov_publikacije />
227 <#elseif (vrstaHR == "Godišnje izvješće") >
228 <#assign title = languageUtil.format(locale,"templates.publications.title.type2", [vrsta, godina]) />
229 <#elseif (vrstaHR == "Istraživanja" || vrstaHR == "Pregledi") >
230 <#assign title = naslov_publikacije />
231 <#elseif (vrstaHR == "Platne kartice i kartične transakcije" || vrstaHR == "Publikacije ESB-a" || vrstaHR == "Polugodišnja informacija" || vrstaHR == "Ostale publikacije" || vrstaHR == "Makroekonomska kretanja i prognoze" || vrstaHR == "Platne transakcije i računi" || vrstaHR == "Makroprudencijalna dijagnostika") >
232 <#assign title = naslov />
233 <#else>
234 <#assign title = naslov_publikacije/>
235 </#if>
236
237 <#if article.getAvailableLanguageIds()?seq_contains(locale) >
238 <article class="article module-publication-details">
239 <h2 class="article-title">
240 ${title}
241 </h2>
242 <#if (displayDate?has_content || modifiedDate?has_content) || true>
243 <div class="article-action-icons">
244 <div class="attributes" style="text-align:left;">
245 <#if displayDate?has_content>
246 <span class="displayDate">${languageUtil.get(locale,"templates.article.publishDate")}: ${displayDate} </span>
247 </#if>
248 <#if modifiedDate?has_content && false>
249 <span class="separator"></span>
250 <span class="modifiedDate">${languageUtil.get(locale,"templates.article.modifiedDate")}: ${modifiedDate} </span>
251 </#if>
252 </div>
253<#--
254 <@localeswitch />
255-->
256 <div class="clear"></div>
257 </div>
258 <#else>
259 <div class="brd-t-grey margo-b-16"></div>
260 </#if>
261 <div>
262 <#if srcImage?has_content>
263 <div class="image-container">
264 <a href="${docLink}" target="_self" alt="${title}" title="${title}" >
265 <img src="${srcImage}">
266 </a>
267 </div>
268 </#if>
269 <div class="attribute-container pad-l-16">
270 <div class="table-container">
271 <table>
272 <tbody>
273 <#if vrsta?has_content>
274 <tr>
275 <th>${languageUtil.get(locale,"templates.publications.table.publication")}</th>
276 <td>${vrsta}</td>
277 </tr>
278 </#if>
279 <#if broj?has_content && (vrstaHR == "Istraživanja" || vrstaHR == "Pregledi" || vrstaHR == "Statistička i metodološka istraživanja") >
280 <tr>
281 <th>${languageUtil.get(locale,"templates.publications.table.issue")}</th>
282 <td>${broj}</td>
283 </tr>
284 </#if>
285 <#if autor?has_content && (vrstaHR == "Istraživanja" || vrstaHR == "Pregledi" || vrstaHR == "Ostale publikacije" || vrstaHR == "Statistička i metodološka istraživanja")>
286 <tr>
287 <th>
288 <#if (autor?index_of(" and ") > 0) || (autor?index_of(" i ") > 0) >
289 ${languageUtil.get(locale,"templates.publications.table.authors")}
290 <#else>
291 ${languageUtil.get(locale,"templates.publications.table.author")}
292 </#if>
293 </th>
294 <td>${autor}</td>
295 </tr>
296 </#if>
297 <#if godina?has_content && mjesec?has_content>
298 <tr>
299 <th>
300 ${languageUtil.get(locale,"templates.publications.table.date")}
301 </th>
302 <td <#if locale == localeUtil.fromLanguageId("hr_HR")>class="lowercase"</#if>>
303 <#if (vrstaHR == "Publikacija ESB-a")>
304 ${mjesecAlt} / ${godina}<#if locale == localeUtil.fromLanguageId("hr_HR")>.</#if>
305 <#elseif (vrstaHR == "Godišnje izvješće")>
306 ${mjesec} ${godina?number + 1}<#if locale == localeUtil.fromLanguageId("hr_HR")>.</#if>
307 <#else>
308 ${mjesec} ${godina}<#if locale == localeUtil.fromLanguageId("hr_HR")>.</#if>
309 </#if>
310 </td>
311 </tr>
312 </#if>
313 <#if godina_izdanja?has_content>
314 <tr>
315 <th>
316 ${languageUtil.get(locale,"templates.publications.table.year")}
317 </th>
318 <td>
319 ${godina_izdanja}
320 </td>
321 </tr>
322 </#if>
323 <#if kretanja?has_content && vrstaHR == "Bilten" >
324 <tr>
325 <th>${languageUtil.get(locale,"templates.publications.table.trends")}</th>
326 <td>
327 <#if fileExt2?has_content >
328 <i class="${chooseIcon(fileExt2)}"></i>
329 <a href="${docLink2}" target="_self" title="${fileEntry2.getDescription()}" data_title="${fileEntry2.getTitle()}" alt="${fileEntry2.getDescription()}">${fileEntry2.getDescription()}</a>
330 </#if>
331 </td>
332 </tr>
333 </#if>
334 <#if cip?has_content >
335 <tr>
336 <th>CIP</th>
337 <td>${cip}</td>
338 </tr>
339 </#if>
340 <#if jel?has_content >
341 <tr>
342 <th>JEL</th>
343 <td>${jel}</td>
344 </tr>
345 </#if>
346 <#if isbn?has_content>
347 <tr>
348 <th>ISBN</th>
349 <td>${issn}</td>
350 </tr>
351 <#elseif issn?has_content>
352 <tr>
353 <th>ISSN</th>
354 <td>${issn}</td>
355 </tr>
356 </#if>
357 <#if dodatak?has_content>
358 <tr>
359 <th>${languageUtil.get(locale,"templates.publications.table.appendix")}</th>
360 <td>
361 <#if fileExt3?has_content >
362 <i class="${chooseIcon(fileExt3)}"></i>
363 <a href="${docLink3}" target="_self" alt="${fileEntry3.getDescription()}" title="${fileEntry3.getDescription()}" data_title="${fileEntry3.getTitle()}">${fileEntry3.getDescription()}</a>
364 </#if>
365 </td>
366 </tr>
367 </#if>
368 <#--
369 <tr>
370 <td colspan="2">
371 <#if fileExt?has_content >
372 <i class="${chooseIcon(fileExt)}"></i>
373 <a href="${docLink}" target="_self"><#if vrstaHR == "Publikacija ESB-a">Preuzmi Pregled<#else>${languageUtil.get(locale,"templates.link.download")}</#if></a>
374 </#if>
375 </td>
376 </tr>
377 -->
378 </tbody>
379 </table>
380 </div>
381 </div>
382 </div>
383
384 <#assign regularPublication = false/>
385 <#assign povremenePublikacije = false/>
386 <#assign htmlPageFURL = ""/>
387 <#assign assetPublisherId=""/>
388 <#if vrstaHR == "Bilten" || vrstaHR = "Makroekonomska kretanja i prognoze" || vrstaHR = "Bilten o bankama" || vrstaHR = "Godišnje izvješće" || vrstaHR = "Polugodišnja informacija" || vrstaHR = "Financijska stabilnost" || vrstaHR ="Makroprudencijalna dijagnostika"
389 || vrstaHR = "Platne kartice i kartične transakcije" || vrstaHR = "Platne transakcije i računi">
390 <#assign regularPublication = true/>
391 <#assign assetPublisherId="D7cogspaQgU2"/>
392 <#if locale == 'en_US'>
393 <#assign htmlPageFURL = "/web/guest/analyses-and-publications/regular-publications/html" />
394 <#else>
395 <#assign htmlPageFURL = "/web/guest/analize-i-publikacije/redovne-publikacije/html" />
396 </#if>
397 </#if>
398 <#if vrstaHR = "Pregledi" || vrstaHR = "Istraživanja" || vrstaHR = "Statistička i metodološka istraživanja">
399 <#assign povremenePublikacije = true/>
400 <#assign assetPublisherId="ifyaTaizWMhG"/>
401 <#if locale == 'en_US'>
402 <#assign htmlPageFURL = "/web/guest/analyses-and-publications/occasional-publications/html" />
403 <#else>
404 <#assign htmlPageFURL = "/web/guest/analize-i-publikacije/povremene-publikacije/html" />
405 </#if>
406
407 </#if>
408
409 <#-- radim duplu provjeru za file jer imamo slucajeva kad imamo samo HTML i tada se ne smije prikazati link download za file -->
410 <#if fileExt?has_content || html?has_content>
411 <div class="col-1-1 dark-red margo-b-24 margo-t-24">
412 <#if fileExt?has_content>
413 <a href="${docLink}" target="_self" data_title="${docTitle}" class="pad-l-16 pad-r-16 pad-t-8 pad-b-8 white-color">
414 <i class="${chooseIcon(fileExt)} white-color"></i>
415 <#if vrstaHR == "Publikacija ESB-a">Preuzmi Pregled<#else>${languageUtil.get(locale,"templates.link.download")}</#if>
416 </a>
417 </#if>
418
419 <#if html?has_content >
420 <a href="${htmlPageFURL}/-/asset_publisher/${assetPublisherId}/content/${article.urlTitle}?articleid=${article.getArticleId()}&p_p_state=maximized" target="_self" class="pad-l-16 pad-r-16 pad-t-8 pad-b-8 white-color" alt="${html_link_text}" title="${html_link_text}">
421 <i class="fa fa-html5 white-color"></i> ${html_link_text}
422 </a>
423 </#if>
424 </div>
425 </#if>
426
427 <div>
428 <#if kljucne_rijeci?has_content && (vrstaHR == "Istraživanja" || vrstaHR == "Pregledi") >
429 <h4>${languageUtil.get(locale,"templates.publications.table.keywords")}</h4>
430 <p>${kljucne_rijeci}</p>
431 </#if>
432 <#if opis?has_content>
433 <!--h4>${languageUtil.get(locale,"templates.publications.table.summary")}</h4-->
434 <p>${opis}</p>
435 </#if>
436 </div>
437
438 <#-- Okviri -->
439 <#if okviri?has_content>
440 <div>
441 <p>${okviri}</p>
442 </div>
443 </#if>
444
445 <#-- RELATED DOCUMENTS -->
446 <@drawAttachments fields/>
447 </article>
448 <#-- RELATED ASSETS -->
449 <#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(curEntry.getEntryId()) />
450 <ul>
451 <#if currentArticleRelatedLinks?has_content>
452 <#list currentArticleRelatedLinks as assetLink>
453 <#assign linkedAssetEntry = assetEntryLocalService.getEntry(assetLink.entryId2) />
454 <#assign assetRenderer = linkedAssetEntry.getAssetRenderer() />
455
456 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, linkedAssetEntry) />
457 <#assign contextURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, contextURL) />
458
459 <li><a href="${contextURL}" alt="${linkedAssetEntry.getTitle(locale)}" title="${linkedAssetEntry.getTitle(locale)}">${linkedAssetEntry.getTitle(locale)}</a></li>
460
461 </#list>
462 </#if>
463 </ul>
464 <#-- RELATED ASSETS OVER-->
465 <#else>
466 <div class="no-translation">${languageUtil.get(locale,"templates.locale.contentNotAvailable")}</div>
467 </#if>
468 </#list>
469</#if>
470
471<#-- fix for Makrobonitetna analiza -->
472<#if (vrstaHR?has_content && vrstaHR == "Makrobonitetna analiza") >
473 <#assign articleId = '166922' />
474 <#assign article = journalArticleLocalService.getArticle(groupId, articleId)>
475 ${article.getContentByLocale(locale.toString())?replace("]]>","")}
476</#if>
477
478<#macro localeswitch>
479 <#list article.getAvailableLanguageIds() as availablelocale>
480 <#assign langURL = "?p_p_id=82&p_p_lifecycle=1&p_p_state=normal&p_p_mode=view&_82_struts_action=%2Flanguage%2Fview&_82_languageId=" + availablelocale + "&_82_redirect=" + currentURL >
481 <#if availablelocale != locale>
482 <a href="${langURL}">${availablelocale[0..1]?upper_case}</a>
483 </#if>
484 </#list>
485</#macro>
486
487<#macro drawAttachments fields>
488 <#local povezaniDokumentiField = fields.get("povezani_dokumenti") />
489
490 <#if isAdmin>
491 <#assign debugMessage = "<br />Publikacije detalj: povezani_dokumenti size: ${povezaniDokumentiField.getValue(locale)?size}" />
492 <#assign debugMessage = debugMessage + "<br />Publikacije detalj: povezani_dokumenti[0]: ${povezaniDokumentiField.getValue(locale)[0]}" />
493 ${asDebug(debugMessage, "povezaniDokumenti_")}
494 </#if>
495
496 <#if povezaniDokumentiField?has_content && povezaniDokumentiField.getValue(locale)?has_content && (povezaniDokumentiField.getValue(locale)?size >= 1) && hasValidContent(povezaniDokumentiField.getValue(locale)[0]) >
497 <#assign nazivBoxa = "" >
498 <#assign showPublishDate= false >
499 <#assign showModifiedDate = false>
500 <#if fields.get("datum_objave_prikaz")?has_content && fields.get("datum_objave_prikaz").getValue(locale)?has_content >
501 <#assign showPublishDate= fields.get("datum_objave_prikaz").getValue(locale) >
502 </#if>
503 <#if fields.get("datum_azuriranja_prikaz")?has_content && fields.get("datum_azuriranja_prikaz").getValue(locale)?has_content>
504 <#assign showModifiedDate = fields.get("datum_azuriranja_prikaz").getValue(locale) >
505 </#if>
506 <#if fields.get("naziv_header_box")?has_content && fields.get("naziv_header_box").getValue(locale)?has_content>
507 <#assign nazivBoxa = fields.get("naziv_header_box").getValue(locale) >
508 </#if>
509 <div class="clear"></div>
510 <div class="related-documents">
511 <header>
512 <h5 class="pad-t-8 pad-b-8 pad-nq-l-16 margo-b-0 uppercase related-documents-title">${nazivBoxa}</h5>
513 </header>
514
515 <ul class="related-documents-list">
516 <#list povezaniDokumentiField.getValue(locale) as row>
517 <#if row?has_content && !row?starts_with("{}")>
518 <#local fileEntry = getDLFileEntry(row)>
519 <#local fileEntryURL = resolveFileEntryURL(row)>
520 <li class="related-document-item">
521 <a href="${fileEntryURL}" target="_self" alt="${fileEntry.getDescription()}" title="${fileEntry.getDescription()}" data_title="${fileEntry.getTitle()}">
522 <div class="related-document-image }">
523 <@fileEntryIcon fileEntry />
524 </div>
525 <#if fileEntry.getDescription()?has_content>
526 <p><span>${fileEntry.getDescription()}</span></p>
527 <#else>
528 <p><span>${fileEntry.getTitle()}</span></p>
529 </#if>
530 <h6 class="ultradark-aux-grey-color related-documents-attributes">
531 <#if showPublishDate>
532 <span class="displayDate">${languageUtil.get(locale,"templates.article.publishDate")}: ${formatDate(fileEntry.getCreateDate())} </span>
533 </#if>
534 <#if (showPublishDate & showModifiedDate)>
535 <span class="separator"></span>
536 </#if>
537 <#if showModifiedDate>
538 <span class="modifiedDate">${languageUtil.get(locale,"templates.article.modifiedDate")}: ${formatDate(fileEntry.getModifiedDate())} </span>
539 </#if>
540 <#if fileEntry.getSize()?has_content>
541 <#if (showPublishDate || showModifiedDate)>
542 <span class="separator"></span>
543 </#if>
544 ${formatSize(fileEntry.getSize())}
545 </#if>
546 </h6>
547 </a>
548 </li>
549 </#if>
550 </#list>
551 </ul>
552 </div>
553 </#if>
554</#macro>
555
556<#macro fileEntryIcon fileEntry>
557 <#if fileEntry?has_content>
558 <#local fileExt = fileEntry.getExtension() />
559 <#if fileExt == "pdf">
560 <i class="fa fa-file-pdf-o"></i>
561 <#elseif fileExt == "doc" || fileExt == "docx">
562 <i class="fa fa-file-word-o"></i>
563 <#elseif fileExt == "xls" || fileExt == "xlsx">
564 <i class="fa fa-file-excel-o"></i>
565 <#elseif fileExt == "ppt" || fileExt == "pptx">
566 <i class="fa fa-file-powerpoint-o"></i>
567 <#elseif fileExt == "jpg" || fileExt == "jpeg" || fileExt == "png" || fileExt = "bmp" || fileExt = "gif">
568 <i class="fa fa-file-image-o"></i>
569 <#elseif fileExt == "zip" || fileExt == "rar" || fileExt = "7z" || fileExt == "tar">
570 <i class="fa fa-file-archive-o"></i>
571 <#else>
572 <i class="fa fa-file-o"></i>
573 </#if>
574 </#if>
575</#macro>
576
577<#function formatDate date>
578 <#assign date_pattern = {"hr_HR":"d.M.yyyy.", "en_US":"d/M/yyyy"}>
579
580 <#assign originalLocale = locale />
581 <#assign date_pattern = {"hr_HR":"d.M.yyyy.", "en_US":"d/M/yyyy"}>
582
583 <#assign originalLocale = locale />
584 <#setting locale = localeUtil.getDefault() />
585
586 <#assign formatteddate = dateUtil.getDate(date, date_pattern[locale], locale) >
587
588 <#assign locale = originalLocale />
589 <#return formatteddate>
590</#function>
591
592<#function formatSize num>
593 <#assign order = num?round?c?length />
594 <#assign thousands = ((order - 1) / 3)?floor />
595 <#if (thousands < 0)><#assign thousands = 0 /></#if>
596 <#assign siMap = [ {"factor": 1, "unit": ""}, {"factor": 1000, "unit": "K"}, {"factor": 1000000, "unit": "M"}, {"factor": 1000000000, "unit":"G"}, {"factor": 1000000000000, "unit": "T"} ]/>
597 <#assign siStr = (num / (siMap[thousands].factor))?string("0.#") + siMap[thousands].unit />
598 <#return siStr />
599</#function>