Makrobonitetna analiza

Objavljeno: 17.7.2015. Ažurirano: 17.7.2015.

Makrobonitetna analiza bila je redovita publikacija HNB-a koja se objavljivala od srpnja 2005. godine. Ona je opću i stručnu javnost informirala o funkcioniranju hrvatskoga financijskog sustava te o njegovoj povezanosti s gospodarstvom, javnim sektorom i međunarodnim okružjem. U središtu pozornosti Makrobonitetne analize bilo je prepoznavanje mogućnosti razvoja financijskog sustava u njegovoj osnovnoj ulozi pouzdanog čuvara nacionalne štednje i djelotvornog izvora likvidnosti i kapitala. Istodobno, Makrobonitetna analiza isticala je poteškoće i opasnosti koje stoje na tom razvojnom putu zbog neizbježne prisutnosti mnogobrojnih rizika kojima su u suvremenom poslovanju izloženi financijski posrednici i svi ostali sudionici na financijskim tržištima.

Došlo je do pogreške prilikom obrade predloška.
The following has evaluated to null or missing:
==> fields.get("html").getValue(locale)  [in template "20155#20195#236108" at line 149, column 29]

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