Dettaglio Notizia
Breadcrumb
Asset Publisher
An error occurred while processing the template.
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@5c0c7bb6"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign Data_DateObj = dateUtil.parse... [in template "20097#20123#41355" at line 97, column 13] ----
1<#--Notizia Template -->
2
3<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
4<#assign journalArticleResourceLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService") />
5<#assign journalArticleId = .vars['reserved-article-id'].data />
6<#assign articleResourcePrimaryKey = journalArticleResourceLocalService.getArticleResourcePrimKey(themeDisplay.getScopeGroupId(), journalArticleId) />
7<#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePrimaryKey) />
8<#assign categories = assetEntry.getCategories() />
9<#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
10
11<#assign publish_date = languageUtil.get(locale, "agora-publish-date") />
12<#assign share = languageUtil.get(locale, "agora-share") />
13<#assign arg = languageUtil.get(locale, "agora-arguments") />
14<#assign index = languageUtil.get(locale, "agora-index") />
15<#assign description_title = languageUtil.get(locale, "agora-description") />
16<#assign documents_title = languageUtil.get(locale, "agora-documents") />
17<#assign links_title = languageUtil.get(locale, "agora-links") />
18<#assign others_title = languageUtil.get(locale, "agora-others") />
19<#assign go = languageUtil.get(locale, "agora-go") />
20<#assign back = languageUtil.get(locale, "agora-back") />
21<#assign close = languageUtil.get(locale, "agora-close") />
22
23<#assign title = .vars['reserved-article-title'].data />
24<#assign data_pubblicazione = .vars['reserved-article-display-date'].data>
25
26<#assign pageUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()/>
27
28<#assign urlBanner = "" />
29<#assign altBanner = "" />
30<#assign ariaLabelBanner = "" />
31<#if (Banner.getData())?? && Banner.getData() != "" >
32 <#assign altBanner = Banner.getAttribute("alt") />
33 <#assign urlBanner = Banner.getData() />
34 <#assign ariaLabelBanner = "Immagine " + altBanner />
35</#if>
36
37<#assign numeroDescrizioni = 0 />
38<#assign descrizione = "" />
39<#if (Descrizione.getData())?? >
40 <#assign descrizione = Descrizione.getData()/>
41 <#assign numeroDescrizioni = numeroDescrizioni + 1 />
42</#if>
43
44
45<#assign numeroDocumenti = 0/>
46<#if Documenti.getSiblings()?has_content>
47 <#list Documenti.getSiblings() as documento>
48 <#if documento?? && documento.getData()?? && documento.getData() != "" && documento.getData()?length gt 0>
49 <#assign numeroDocumenti = numeroDocumenti + 1/>
50 </#if>
51 </#list>
52</#if>
53
54
55<#assign numeroLinkUtili = 0/>
56<#if LinkUtiliTitolo.getSiblings()?has_content>
57 <#list LinkUtiliTitolo.getSiblings() as cur_LinkUtiliTitolo>
58 <#if cur_LinkUtiliTitolo?? && cur_LinkUtiliTitolo.Link?? && cur_LinkUtiliTitolo.Link.getData() != "" && cur_LinkUtiliTitolo.Link.getData()?has_content && cur_LinkUtiliTitolo.Link.getData()?length gt 0>
59 <#assign numeroLinkUtili = numeroLinkUtili + 1/>
60 </#if>
61 </#list>
62</#if>
63
64
65<#assign numeroCategorie = 0 />
66<#list categories as category>
67 <#if category?? && category?has_content>
68 <#assign numeroCategorie = numeroCategorie + 1/>
69 </#if>
70</#list>
71
72
73<#assign numeroAltriContenuti = 0/>
74<#if UlterioriContenuti?size gt 0 && UlterioriContenuti.getSiblings()?? && UlterioriContenuti.getSiblings()?has_content>
75 <#list UlterioriContenuti.getSiblings() as documento>
76 <#if documento?? && documento.getData()?has_content && documento.getData()?length gt 0 && documento.getData() != "">
77 <#assign numeroAltriContenuti = numeroAltriContenuti + 1/>
78 </#if>
79 </#list>
80</#if>
81
82<#assign numeroContenutiTotale = numeroDescrizioni + numeroDocumenti + numeroLinkUtili + numeroAltriContenuti/>
83
84
85<div class="news-agora full-page">
86 <div class=" px-4 pb-3 custom-shadow">
87 <div class="container">
88 <div class="row">
89 <div class="col-12 col-sm-12 col-md-9 col-lg-9">
90 <div class="title">
91 <h2>${title}</h2>
92 </div>
93 <#if validator.isNotNull(data_pubblicazione)>
94 <div class="data mt-5">
95 <span>${publish_date}</span>
96
97 <#assign Data_DateObj = dateUtil.parseDate("EEE, dd MMM yyyy hh:mm:ssZ", data_pubblicazione?string, locale)>
98
99 <#assign date = dateUtil.getDate(Data_DateObj, "dd MMM yyyy ", locale)?lower_case />
100
101 <p class="data-detail">${date?capitalize}</p>
102
103 </div>
104 </#if>
105 </div>
106
107 <div class="col-12 col-sm-12 col-md-3 col-lg-3 link-laterali">
108 <#if numeroCategorie gt 0>
109 <div class="argomenti">
110 <p>${arg}</p>
111 <#list categories as category>
112 <div class="chip chip-simple chip-primary">
113 <span class="chip-label">${category.getTitle(locale)}</span>
114 </div>
115 </#list>
116 </div>
117 </#if>
118 </div>
119 </div>
120
121 </div>
122 </div>
123
124 <div class="contenuti custom-background-white">
125 <#if urlBanner != "" && urlBanner?has_content>
126 <div class="banner" style="background-image: url('${urlBanner})'"></div>
127 </#if>
128 <#if numeroContenutiTotale gt 0>
129
130 <div class="container px-4 sezione-contenuti pt-4">
131 <div class="row border-top row-column-border row-column-menu-left">
132 <aside class="col-lg-4 col-md-12 col-sm-12 col-12">
133 <div class="sticky-wrapper navbar-wrapper">
134 <nav class="navbar it-navscroll-wrapper it-top-navscroll navbar-expand-lg">
135 <button class="custom-navbar-toggler" type="button" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation" data-target="#navbarNav">
136 <span class="it-list"></span>${index}
137 </button>
138 <div class="navbar-collapsable" id="navbarNav">
139 <div class="overlay"></div>
140 <div class="close-div sr-only">
141 <button class="btn close-menu" type="button">
142 <span class="it-close"></span>${close}
143 </button>
144 </div>
145 <a class="it-back-button" href="#">
146 <span class="fas fa-chevron-left"></span>
147 <span>${back}</span>
148 </a>
149 <div class="menu-wrapper">
150 <div class="link-list-wrapper">
151 <h3 class="no_toc pt-3">${index}</h3>
152 <ul class="link-list indice-sezioni">
153 <li class="nav-item active">
154 <a class="nav-link active" href="#descrizione">
155 <span>${description_title?capitalize}</span>
156 </a>
157 </li>
158 <li class="nav-item">
159 <a class="nav-link" href="#documenti">
160 <span>${documents_title?capitalize}</span>
161 </a>
162 </li>
163 <li class="nav-item">
164 <a class="nav-link" href="#link-utili">
165 <span>${links_title?capitalize}</span>
166 </a>
167 </li>
168 <li class="nav-item">
169 <a class="nav-link" href="#ulteriori-contenuti">
170 <span>${others_title?capitalize}</span>
171 </a>
172 </li>
173 </ul>
174 </div>
175 </div>
176 </div>
177 </nav>
178 </div>
179 </aside>
180
181 <section class="col-lg-8 col-md-12 col-sm-12 col-12 it-page-sections-container">
182 <#if numeroDescrizioni gt 0>
183 <article id="descrizione" class="it-page-section anchor-offset contenuti-testo">
184 ${descrizione}
185 </article>
186 </#if>
187
188 <#if numeroDocumenti gt 0>
189 <article id="documenti" class="it-page-section anchor-offset contenuti-testo contenuti-box">
190 <#if Documenti.getSiblings()?has_content>
191 <h3>${documents_title?capitalize}</h3>
192 <#list Documenti.getSiblings() as documento>
193 <#if documento.getData() != "" && documento.getData()?length gt 0 && documento.getData()?has_content>
194 <#assign splitter = documento.getData()?split("/")/>
195 <#attempt>
196 <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(splitter[5]?split("?")[0], splitter[2]?number) />
197 <#assign dlFileEntry=assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", file.fileEntryId) />
198 <#assign assetRenderer=dlFileEntry.assetRenderer />
199 <#assign docUrl=assetRenderer.getURLDownload(themeDisplay) />
200 <#assign categories_file = dlFileEntry.getCategories()/>
201
202 <div class="descrizione-documento <#if !documento?is_first> pt-4 </#if>">
203 <div class="row">
204 <div class="col-12 col-sm-12 col-md-10 col-lg-10">
205 <p class="file-title font-weight-bold h4">${file.fileName}</p>
206 ${file.getDescription()}
207 </div>
208
209 <div class="col-12 col-sm-12 col-md-2 col-lg-2 doc-download-icon d-flex justify-content-center align-items-center my-5">
210 <a href="${docUrl}" download title="${file.fileName}" >
211 <span class="download">
212 <span class="fas fa-file-download fa-2x"></span>
213 </span>
214 </a>
215 </div>
216 </div>
217 <div class="row pt-2">
218 <div class="col-12 col-sm-12 col-md-12 col-lg-12">
219 <#list categories_file as category>
220 <div class="chip chip-simple chip-primary">
221 <span class="chip-label">${category.getTitle(locale)}</span>
222 </div>
223 </#list>
224 </div>
225 </div>
226 </div>
227 <#recover>
228 </#attempt>
229 </#if>
230 </#list>
231 </#if>
232 </article>
233 </#if>
234
235 <#if numeroLinkUtili gt 0>
236 <article id="link-utili" class="it-page-section anchor-offset link-utili contenuti-testo contenuti-box">
237 <h3>${links_title}</h3>
238 <#if LinkUtiliTitolo.getSiblings()?has_content>
239 <ul>
240 <#list LinkUtiliTitolo.getSiblings() as cur_LinkUtiliTitolo>
241 <#if cur_LinkUtiliTitolo.Link.getData() != "" && cur_LinkUtiliTitolo.Link.getData()?has_content && cur_LinkUtiliTitolo.Link.getData()?length gt 0>
242 <li>
243 <a href="${cur_LinkUtiliTitolo.Link.getData()}"
244 title="${go} ${cur_LinkUtiliTitolo.getData()}"
245 alt="${go} ${cur_LinkUtiliTitolo.getData()}" class="use-link">${cur_LinkUtiliTitolo.getData()}
246 </a>
247 </li>
248 </#if>
249 </#list>
250 </ul>
251 </#if>
252 </article>
253 </#if>
254
255 <#if numeroAltriContenuti gt 0>
256 <article id="ulteriori-contenuti" class="it-page-section anchor-offset ulteriori-contenuti contenuti-testo contenuti-box">
257 <h3>${others_title?capitalize}</h3>
258 <div class="it-grid-list-wrapper it-image-label-grid it-masonry">
259 <div class="card-columns">
260 <#if UlterioriContenuti?size gt 0 && UlterioriContenuti.getSiblings()?? && UlterioriContenuti.getSiblings()?has_content>
261 <#list UlterioriContenuti.getSiblings() as documento>
262 <#if documento.getData() != "" && documento.getData()?length gt 0 && documento.getData()?has_content>
263 <#assign splitter = documento.getData()?split("/")/>
264 <#attempt>
265 <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(splitter[5]?split("?")[0], splitter[2]?number) />
266 <#assign dlFileEntry=assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", file.fileEntryId?number) />
267 <#assign assetRenderer=dlFileEntry.assetRenderer />
268 <#assign docUrl=assetRenderer.getURLDownload(themeDisplay) />
269 <#assign ext = file.getExtension()/>
270 <#--<#assign descrizione = file.getDescription()/>-->
271
272 <div class="col-12">
273 <div class="it-grid-item-wrapper">
274 <div class="img-responsive-wrapper">
275 <div class="img-responsive">
276 <div class="img-wrapper">
277 <#if ext == 'jpg' || ext == 'png' || ext == 'jpeg'>
278 <img src="${docUrl}"
279 title="${file.fileName}"
280 alt="${file.fileName}">
281 </#if>
282 <#if ext == 'mp4'>
283 <video controls>
284 <source src="${docUrl}" type=video/ogg>
285 </video>
286 </#if>
287 </div>
288 </div>
289 </div>
290 <span class="it-griditem-text-wrapper">
291 <#--<span class="it-griditem-text">${descrizione}</span>-->
292 <svg class="icon">
293 <use xlink:href="/bootstrap-italia/dist/svg/sprite.svg#it-code-circle"></use>
294 </svg>
295 </span>
296 </div>
297 </div>
298 <#recover>
299 </#attempt>
300 </#if>
301 </#list>
302 </#if>
303 </div>
304 </div>
305 </article>
306 </#if>
307 </section>
308 </div>
309 </div>
310 </#if>
311 </div>
312</div>
313<style type="text/css">
314 .news-agora .nav-item .nav-link span:hover {
315 color: #212529 !important;
316 }
317</style>