Macroprudential Analysis was the regular CNB publication published since July 2005. It provided information to the general public and the professional community on the functioning of the Croatian financial system and its relations with the economy, the public sector and the international environment. The focal point of Macroprudential Analysis was the identification of the possibility for development of the financial system in its main role of a reliable guardian of the national savings and an efficient source of liquidity and capital. At the same time, Macroprudential Analysis outlined difficulties and threats to this development due to inevitable presence of many risks that financial intermediaries and all other participants in the financial markets are exposed to in today's business environment.
An error occurred while processing the template.
When calling function "hasValidContent", required parameter "value" (parameter #1) was specified, but had null/missing value. ---- Tip: If the parameter value expression on the caller side is known to be legally null/missing, you may want to specify a default value for it with the "!" operator, like paramValue!defaultValue. ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #function hasValidContent(value) [in template "4812567" in function "hasValidContent" at line 20, column 1] - Reached through: @drawAttachments fields [in template "20155#20195#236108" at line 451, column 18] ----
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.kernel.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 <#if isAdmin><br />Publikacije detalj: okviri: ${fields.get("okviri")}</#if>
155 <#-- <#assign okviri = fields.get("okviri").getValue(locale)/> -->
156 </#if>
157 <#assign html_link_text = "HTML"/>
158 <#if fields.get("html_link_tekst")?has_content>
159 <#assign html_link_text = fields.get("html_link_tekst").getValue(locale)/>
160 </#if>
161 <#if fields.get("kljucne_rijeci")?has_content>
162 <#assign kljucne_rijeci = fields.get("kljucne_rijeci").getValue(locale)/>
163 </#if>
164 <#assign key = vrstaHR + "_" + locale.getLanguage() />
165 <#if isbn?has_content>
166 <#assign issn = isbn />
167 <#else>
168 <#assign issn = issnMap[key]! />
169 </#if>
170
171 <#if hasValidContent(fields.get("dokument").getValue(locale))>
172 <#-- CORRECT FOR ONLY 1 ELEMENT IN LIST -->
173
174 <#assign fileEntry = getDLFileEntry(fields.get("dokument").getValue(locale)) />
175 <#assign fileEntryURL = resolveFileEntryURL(fields.get("dokument").getValue(locale))>
176
177 <#assign fileExt = fileEntry.getExtension() />
178 <#assign docTitle = fileEntry.getTitle() />
179
180 <#if fileExt == "pdf">
181 <#assign imagePreviewURL = dlURLHelper.getThumbnailSrc(dLAppLocalService.getFileEntry(fileEntry.getFileEntryId()), themeDisplay) />
182
183 <#if !imagePreviewURL?has_content>
184 <#assign srcImage = "/documents/" + groupId + "/" + fileEntry.getFolderId() + "/" + docTitle +"?documentThumbnail=2"/>
185 </#if>
186
187 <#assign srcImage = imagePreviewURL/>
188 </#if>
189
190 <#assign docLink = fileEntryURL />
191
192 <#if isAdmin >
193 <br/>Publikacije detalj: Polje dokument: ${fields.get("dokument").getValue(locale)}
194 </#if>
195 </#if>
196
197 <#if fields.get("kretanja")?has_content && hasValidContent(fields.get("kretanja").getValue(locale))>
198 <#-- CORRECT FOR ONLY 1 ELEMENT IN LIST -->
199
200 <#assign fileEntry2 = getDLFileEntry(fields.get("kretanja").getValue(locale))>
201 <#assign fileEntryURL2 = resolveFileEntryURL(fields.get("kretanja").getValue(locale))>
202
203 <#assign fileExt2 = fileEntry2.getExtension() />
204
205 <#assign docLink2 = fileEntryURL2 />
206
207 <#if isAdmin >
208 <br/>Publikacije detalj: Polje kretanja: ${fields.get("kretanja").getValue(locale)}
209 </#if>
210 </#if>
211
212 <#if fields.get("dodatak")?has_content && hasValidContent(fields.get("dodatak").getValue(locale))>
213 <#-- CORRECT FOR ONLY 1 ELEMENT IN LIST -->
214
215 <#assign fileEntry3 = getDLFileEntry(fields.get("dodatak").getValue(locale))>
216 <#assign fileEntryURL3 = resolveFileEntryURL(fields.get("dodatak").getValue(locale))>
217
218 <#assign fileExt3 = fileEntry3.getExtension() />
219
220 <#assign docLink3 = fileEntryURL3 />
221
222 <#if isAdmin >
223 <br/>Publikacije detalj: Polje dodatak: ${fields.get("dodatak").getValue(locale)}
224 </#if>
225 </#if>
226
227 <#if (vrstaHR == "Bilten" || vrstaHR == "Bilten o bankama" || vrstaHR == "Financijska stabilnost" || vrstaHR == "Makrobonitetna analiza") >
228 <#assign title = languageUtil.format(locale,"templates.publications.title.type1", [vrsta, broj]) />
229
230 <#-- ipak koristi naslov iz polja naslov_publikacije a ne tip + broj -->
231 <#assign title = naslov_publikacije />
232 <#elseif (vrstaHR == "Godišnje izvješće") >
233 <#assign title = languageUtil.format(locale,"templates.publications.title.type2", [vrsta, godina]) />
234 <#elseif (vrstaHR == "Istraživanja" || vrstaHR == "Pregledi") >
235 <#assign title = naslov_publikacije />
236 <#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") >
237 <#assign title = naslov />
238 <#else>
239 <#assign title = naslov_publikacije/>
240 </#if>
241
242 <#if article.getAvailableLanguageIds()?seq_contains(locale) >
243 <article class="article module-publication-details">
244 <h2 class="article-title">
245 ${title}
246 </h2>
247 <#if (displayDate?has_content || modifiedDate?has_content) || true>
248 <div class="article-action-icons">
249 <div class="attributes" style="text-align:left;">
250 <#if displayDate?has_content>
251 <span class="displayDate">${languageUtil.get(locale,"templates.article.publishDate")}: ${displayDate} </span>
252 </#if>
253 <#if modifiedDate?has_content && false>
254 <span class="separator"></span>
255 <span class="modifiedDate">${languageUtil.get(locale,"templates.article.modifiedDate")}: ${modifiedDate} </span>
256 </#if>
257 </div>
258<#--
259 <@localeswitch />
260-->
261 <div class="clear"></div>
262 </div>
263 <#else>
264 <div class="brd-t-grey margo-b-16"></div>
265 </#if>
266 <div>
267 <#if srcImage?has_content>
268 <div class="image-container">
269 <a href="${docLink}" target="_self" alt="${title}" title="${title}" >
270 <img src="${srcImage}">
271 </a>
272 </div>
273 </#if>
274 <div class="attribute-container pad-l-16">
275 <div class="table-container">
276 <table>
277 <tbody>
278 <#if vrsta?has_content>
279 <tr>
280 <th>${languageUtil.get(locale,"templates.publications.table.publication")}</th>
281 <td>${vrsta}</td>
282 </tr>
283 </#if>
284 <#if broj?has_content && (vrstaHR == "Istraživanja" || vrstaHR == "Pregledi" || vrstaHR == "Statistička i metodološka istraživanja") >
285 <tr>
286 <th>${languageUtil.get(locale,"templates.publications.table.issue")}</th>
287 <td>${broj}</td>
288 </tr>
289 </#if>
290 <#if autor?has_content && (vrstaHR == "Istraživanja" || vrstaHR == "Pregledi" || vrstaHR == "Ostale publikacije" || vrstaHR == "Statistička i metodološka istraživanja")>
291 <tr>
292 <th>
293 <#if (autor?index_of(" and ") > 0) || (autor?index_of(" i ") > 0) >
294 ${languageUtil.get(locale,"templates.publications.table.authors")}
295 <#else>
296 ${languageUtil.get(locale,"templates.publications.table.author")}
297 </#if>
298 </th>
299 <td>${autor}</td>
300 </tr>
301 </#if>
302 <#if godina?has_content && mjesec?has_content>
303 <tr>
304 <th>
305 ${languageUtil.get(locale,"templates.publications.table.date")}
306 </th>
307 <td <#if locale == localeUtil.fromLanguageId("hr_HR")>class="lowercase"</#if>>
308 <#if (vrstaHR == "Publikacija ESB-a")>
309 ${mjesecAlt} / ${godina}<#if locale == localeUtil.fromLanguageId("hr_HR")>.</#if>
310 <#elseif (vrstaHR == "Godišnje izvješće")>
311 ${mjesec} ${godina?number + 1}<#if locale == localeUtil.fromLanguageId("hr_HR")>.</#if>
312 <#else>
313 ${mjesec} ${godina}<#if locale == localeUtil.fromLanguageId("hr_HR")>.</#if>
314 </#if>
315 </td>
316 </tr>
317 </#if>
318 <#if godina_izdanja?has_content>
319 <tr>
320 <th>
321 ${languageUtil.get(locale,"templates.publications.table.year")}
322 </th>
323 <td>
324 ${godina_izdanja}
325 </td>
326 </tr>
327 </#if>
328 <#if kretanja?has_content && vrstaHR == "Bilten" >
329 <tr>
330 <th>${languageUtil.get(locale,"templates.publications.table.trends")}</th>
331 <td>
332 <#if fileExt2?has_content >
333 <i class="${chooseIcon(fileExt2)}"></i>
334 <a href="${docLink2}" target="_self" title="${fileEntry2.getDescription()}" data_title="${fileEntry2.getTitle()}" alt="${fileEntry2.getDescription()}">${fileEntry2.getDescription()}</a>
335 </#if>
336 </td>
337 </tr>
338 </#if>
339 <#if cip?has_content >
340 <tr>
341 <th>CIP</th>
342 <td>${cip}</td>
343 </tr>
344 </#if>
345 <#if jel?has_content >
346 <tr>
347 <th>JEL</th>
348 <td>${jel}</td>
349 </tr>
350 </#if>
351 <#if isbn?has_content>
352 <tr>
353 <th>ISBN</th>
354 <td>${issn}</td>
355 </tr>
356 <#elseif issn?has_content>
357 <tr>
358 <th>ISSN</th>
359 <td>${issn}</td>
360 </tr>
361 </#if>
362 <#if dodatak?has_content>
363 <tr>
364 <th>${languageUtil.get(locale,"templates.publications.table.appendix")}</th>
365 <td>
366 <#if fileExt3?has_content >
367 <i class="${chooseIcon(fileExt3)}"></i>
368 <a href="${docLink3}" target="_self" alt="${fileEntry3.getDescription()}" title="${fileEntry3.getDescription()}" data_title="${fileEntry3.getTitle()}">${fileEntry3.getDescription()}</a>
369 </#if>
370 </td>
371 </tr>
372 </#if>
373 <#--
374 <tr>
375 <td colspan="2">
376 <#if fileExt?has_content >
377 <i class="${chooseIcon(fileExt)}"></i>
378 <a href="${docLink}" target="_self"><#if vrstaHR == "Publikacija ESB-a">Preuzmi Pregled<#else>${languageUtil.get(locale,"templates.link.download")}</#if></a>
379 </#if>
380 </td>
381 </tr>
382 -->
383 </tbody>
384 </table>
385 </div>
386 </div>
387 </div>
388
389 <#assign regularPublication = false/>
390 <#assign povremenePublikacije = false/>
391 <#assign htmlPageFURL = ""/>
392 <#assign assetPublisherId=""/>
393 <#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"
394 || vrstaHR = "Platne kartice i kartične transakcije" || vrstaHR = "Platne transakcije i računi">
395 <#assign regularPublication = true/>
396 <#assign assetPublisherId="D7cogspaQgU2"/>
397 <#if locale == 'en_US'>
398 <#assign htmlPageFURL = "/web/guest/analyses-and-publications/regular-publications/html" />
399 <#else>
400 <#assign htmlPageFURL = "/web/guest/analize-i-publikacije/redovne-publikacije/html" />
401 </#if>
402 </#if>
403 <#if vrstaHR = "Pregledi" || vrstaHR = "Istraživanja">
404 <#assign povremenePublikacije = true/>
405 <#assign assetPublisherId="ifyaTaizWMhG"/>
406 <#if locale == 'en_US'>
407 <#assign htmlPageFURL = "/web/guest/analyses-and-publications/occasional-publications/html" />
408 <#else>
409 <#assign htmlPageFURL = "/web/guest/analize-i-publikacije/povremene-publikacije/html" />
410 </#if>
411
412 </#if>
413
414 <#-- radim duplu provjeru za file jer imamo slucajeva kad imamo samo HTML i tada se ne smije prikazati link download za file -->
415 <#if fileExt?has_content || html?has_content>
416 <div class="col-1-1 dark-red margo-b-24 margo-t-24">
417 <#if fileExt?has_content>
418 <a href="${docLink}" target="_self" data_title="${docTitle}" class="pad-l-16 pad-r-16 pad-t-8 pad-b-8 white-color">
419 <i class="${chooseIcon(fileExt)} white-color"></i>
420 <#if vrstaHR == "Publikacija ESB-a">Preuzmi Pregled<#else>${languageUtil.get(locale,"templates.link.download")}</#if>
421 </a>
422 </#if>
423
424 <#if html?has_content >
425 <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}">
426 <i class="fa fa-html5 white-color"></i> ${html_link_text}
427 </a>
428 </#if>
429 </div>
430 </#if>
431
432 <div>
433 <#if kljucne_rijeci?has_content && (vrstaHR == "Istraživanja" || vrstaHR == "Pregledi") >
434 <h4>${languageUtil.get(locale,"templates.publications.table.keywords")}</h4>
435 <p>${kljucne_rijeci}</p>
436 </#if>
437 <#if opis?has_content>
438 <!--h4>${languageUtil.get(locale,"templates.publications.table.summary")}</h4-->
439 <p>${opis}</p>
440 </#if>
441 </div>
442
443 <#-- Okviri -->
444 <#if okviri?has_content>
445 <div>
446 <p>${okviri}</p>
447 </div>
448 </#if>
449
450 <#-- RELATED DOCUMENTS -->
451 <@drawAttachments fields/>
452 </article>
453 <#-- RELATED ASSETS -->
454 <#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(curEntry.getEntryId()) />
455 <ul>
456 <#if currentArticleRelatedLinks?has_content>
457 <#list currentArticleRelatedLinks as assetLink>
458 <#assign linkedAssetEntry = assetEntryLocalService.getEntry(assetLink.entryId2) />
459 <#assign assetRenderer = linkedAssetEntry.getAssetRenderer() />
460
461 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, linkedAssetEntry) />
462 <#assign contextURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, contextURL) />
463
464 <li><a href="${contextURL}" alt="${linkedAssetEntry.getTitle(locale)}" title="${linkedAssetEntry.getTitle(locale)}">${linkedAssetEntry.getTitle(locale)}</a></li>
465
466 </#list>
467 </#if>
468 </ul>
469 <#-- RELATED ASSETS OVER-->
470 <#else>
471 <div class="no-translation">${languageUtil.get(locale,"templates.locale.contentNotAvailable")}</div>
472 </#if>
473 </#list>
474</#if>
475
476<#-- fix for Makrobonitetna analiza -->
477<#if (vrstaHR?has_content && vrstaHR == "Makrobonitetna analiza") >
478 <#assign articleId = '166922' />
479 <#assign article = journalArticleLocalService.getArticle(groupId, articleId)>
480 ${article.getContentByLocale(locale.toString())?replace("]]>","")}
481</#if>
482
483<#macro localeswitch>
484 <#list article.getAvailableLanguageIds() as availablelocale>
485 <#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 >
486 <#if availablelocale != locale>
487 <a href="${langURL}">${availablelocale[0..1]?upper_case}</a>
488 </#if>
489 </#list>
490</#macro>
491
492<#macro drawAttachments fields>
493 <#local povezaniDokumentiField = fields.get("povezani_dokumenti") />
494
495 <#if isAdmin>
496 <br />Publikacije detalj: povezani_dokumenti size: ${povezaniDokumentiField.getValue(locale)?size}
497 <br />Publikacije detalj: povezani_dokumenti[0]: ${povezaniDokumentiField.getValue(locale)[0]}
498 </#if>
499
500 <#if povezaniDokumentiField?has_content && povezaniDokumentiField.getValue(locale)?has_content && (povezaniDokumentiField.getValue(locale)?size >= 1) && hasValidContent(povezaniDokumentiField.getValue(locale)[0]) >
501 <#assign nazivBoxa = "" >
502 <#assign showPublishDate= false >
503 <#assign showModifiedDate = false>
504 <#if fields.get("datum_objave_prikaz")?has_content && fields.get("datum_objave_prikaz").getValue(locale)?has_content >
505 <#assign showPublishDate= fields.get("datum_objave_prikaz").getValue(locale) >
506 </#if>
507 <#if fields.get("datum_azuriranja_prikaz")?has_content && fields.get("datum_azuriranja_prikaz").getValue(locale)?has_content>
508 <#assign showModifiedDate = fields.get("datum_azuriranja_prikaz").getValue(locale) >
509 </#if>
510 <#if fields.get("naziv_header_box")?has_content && fields.get("naziv_header_box").getValue(locale)?has_content>
511 <#assign nazivBoxa = fields.get("naziv_header_box").getValue(locale) >
512 </#if>
513 <div class="clear"></div>
514 <div class="related-documents">
515 <header>
516 <h5 class="pad-t-8 pad-b-8 pad-nq-l-16 margo-b-0 uppercase related-documents-title">${nazivBoxa}</h5>
517 </header>
518
519 <ul class="related-documents-list">
520 <#list povezaniDokumentiField.getValue(locale) as row>
521 <#if row?has_content && !row?starts_with("{}")>
522 <#local fileEntry = getDLFileEntry(row)>
523 <#local fileEntryURL = resolveFileEntryURL(row)>
524 <li class="related-document-item">
525 <a href="${fileEntryURL}" target="_self" alt="${fileEntry.getDescription()}" title="${fileEntry.getDescription()}" data_title="${fileEntry.getTitle()}">
526 <div class="related-document-image }">
527 <@fileEntryIcon fileEntry />
528 </div>
529 <#if fileEntry.getDescription()?has_content>
530 <p><span>${fileEntry.getDescription()}</span></p>
531 <#else>
532 <p><span>${fileEntry.getTitle()}</span></p>
533 </#if>
534 <h6 class="ultradark-aux-grey-color related-documents-attributes">
535 <#if showPublishDate>
536 <span class="displayDate">${languageUtil.get(locale,"templates.article.publishDate")}: ${formatDate(fileEntry.getCreateDate())} </span>
537 </#if>
538 <#if (showPublishDate & showModifiedDate)>
539 <span class="separator"></span>
540 </#if>
541 <#if showModifiedDate>
542 <span class="modifiedDate">${languageUtil.get(locale,"templates.article.modifiedDate")}: ${formatDate(fileEntry.getModifiedDate())} </span>
543 </#if>
544 <#if fileEntry.getSize()?has_content>
545 <#if (showPublishDate || showModifiedDate)>
546 <span class="separator"></span>
547 </#if>
548 ${formatSize(fileEntry.getSize())}
549 </#if>
550 </h6>
551 </a>
552 </li>
553 </#if>
554 </#list>
555 </ul>
556 </div>
557 </#if>
558</#macro>
559
560<#macro fileEntryIcon fileEntry>
561 <#if fileEntry?has_content>
562 <#local fileExt = fileEntry.getExtension() />
563 <#if fileExt == "pdf">
564 <i class="fa fa-file-pdf-o"></i>
565 <#elseif fileExt == "doc" || fileExt == "docx">
566 <i class="fa fa-file-word-o"></i>
567 <#elseif fileExt == "xls" || fileExt == "xlsx">
568 <i class="fa fa-file-excel-o"></i>
569 <#elseif fileExt == "ppt" || fileExt == "pptx">
570 <i class="fa fa-file-powerpoint-o"></i>
571 <#elseif fileExt == "jpg" || fileExt == "jpeg" || fileExt == "png" || fileExt = "bmp" || fileExt = "gif">
572 <i class="fa fa-file-image-o"></i>
573 <#elseif fileExt == "zip" || fileExt == "rar" || fileExt = "7z" || fileExt == "tar">
574 <i class="fa fa-file-archive-o"></i>
575 <#else>
576 <i class="fa fa-file-o"></i>
577 </#if>
578 </#if>
579</#macro>
580
581<#function formatDate date>
582 <#assign date_pattern = {"hr_HR":"d.M.yyyy.", "en_US":"d/M/yyyy"}>
583
584 <#assign originalLocale = locale />
585 <#assign date_pattern = {"hr_HR":"d.M.yyyy.", "en_US":"d/M/yyyy"}>
586
587 <#assign originalLocale = locale />
588 <#setting locale = localeUtil.getDefault() />
589
590 <#assign formatteddate = dateUtil.getDate(date, date_pattern[locale], locale) >
591
592 <#assign locale = originalLocale />
593 <#return formatteddate>
594</#function>
595
596<#function formatSize num>
597 <#assign order = num?round?c?length />
598 <#assign thousands = ((order - 1) / 3)?floor />
599 <#if (thousands < 0)><#assign thousands = 0 /></#if>
600 <#assign siMap = [ {"factor": 1, "unit": ""}, {"factor": 1000, "unit": "K"}, {"factor": 1000000, "unit": "M"}, {"factor": 1000000000, "unit":"G"}, {"factor": 1000000000000, "unit": "T"} ]/>
601 <#assign siStr = (num / (siMap[thousands].factor))?string("0.#") + siMap[thousands].unit />
602 <#return siStr />
603</#function>