Interviste ai colleghi
Interviste ai colleghi
- Gruppo
- Lavora con noi
- Perché lavorare in Hera
- Interviste ai colleghi
Tag Facet
Aggregatore Risorse
Risultati ricerca
Si è verificato un errore nell'elaborarazione del modello.
Java method "static it.reply.open.hera.template.custom.service.WidgetTemplateTool.getDateFormattedBy(String, String, Locale)" threw an exception; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: contentDate = hera_template_tool.getD... [in template "20099#20135#57725654" at line 80, column 13]
----
1<#assign
2assetVocabularyLocalServiceUtil = objectUtil("com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil")
3vocabularyComunicatiStampa = assetVocabularyLocalServiceUtil.fetchGroupVocabulary(themeDisplay.getScopeGroupId(), languageUtil.get(locale, "comunicati-stampa"))
4vocabularyId = vocabularyComunicatiStampa.vocabularyId
5/>
6
7
8<#assign
9companyId=themeDisplay.getCompanyId() languageId=themeDisplay.getLanguageId()
10currentUrl=themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() url=portalUtil.getPortalURL(themeDisplay)
11HERA_FIELD_TITLE="title_" + languageId
12HERA_FIELD_LOCALIZED_TITLE="title_" + languageId
13HERA_FIELD_SIMPLE_TITLE="title"
14HERA_FIELD_URL_TITLE="urlTitle"
15HERA_FIELD_CONTENT="content_" + languageId
16HERA_FIELD_DESCRIPTION="description"
17HERA_FIELD_DESCRIPTION_IT="description_" + languageId
18HERA_FIELD_PUBLISH_DATE="publishDate"
19HERA_FIELD_DISPLAYDATE="displayDate"
20HERA_FIELD_CREATEDATE="createDate"
21HERA_FIELD_CLASS_TYPE_ID="classTypeId"
22HERA_FIELD_ENTRY_CLASS_NAME="entryClassName"
23HERA_FIELD_CLASSPK="entryClassPK"
24HERA_FIELD_ENTRY_CLASS_NAME_LAYOUT="com.liferay.portal.kernel.model.Layout"
25HERA_FIELD_ENTRY_CLASS_NAME_JA="com.liferay.journal.model.JournalArticle"
26HERA_FIELD_ENTRY_CLASS_NAME_DFE="com.liferay.document.library.kernel.model.DLFileEntry"
27HERA_FIELD_ENTRY_CLASS_NAME_USER="com.liferay.portal.kernel.model.User"
28HERA_FIELD_ENTRY_CLASS_NAME_FOLDER="com.liferay.document.library.kernel.model.DLFolder"
29HERA_FIELD_ENTRY_CLASS_NAME_DDLRECORD="com.liferay.dynamic.data.lists.model.DDLRecord"
30HERA_FIELD_ENTRY_CLASS_NAME_DDMFORMINSTANCERECORD="com.liferay.dynamic.data.mapping.model.DDMFormInstanceRecord"
31HERA_FIELD_PREFIX="ddm__keyword__"
32HERA_FIELD_PREFIX_TEXT="ddm__text__"
33HERA_FIELD_SOTTOTITOLO="__sottotitolo_"
34HERA_FIELD_IMMAGINE="__immagine_"
35HERA_FIELD_IMMAGINE_TYPE2= "__immagine_r13v_"
36HERA_ASSET_CATEGORY_TITLE="assetCategoryTitles"
37HERA_FIELD_USER_FULLNAME="fullName"
38HERA_FIELD_USER_EMAIL_ADDRESS="emailAddress"
39HERA_ORA_PUBBLICAZIONE="__ora_pubblicazione_"
40HERA_FIELD_DATA_INIZIO="__data_inizio_"
41HERA_FIELD_DATA_FINE="__data_fine_"
42HERA_FIELD_ORA_INIZIO="__ora_inizio_"
43HERA_FIELD_ORA_FINE="__ora_fine_"
44HERA_LUOGO="__luogo_"
45HERA_CONTENT="content_" + languageId
46
47CATEGORY_HERA_SPA=languageUtil.get(locale, "hera-spa")
48CATEGORY_IR_PRICE=languageUtil.get(locale, "ir-price")
49/>
50
51
52<#-- gruppohera_results.jsp es. ddm__keyword__54911__sottotitolo_it_IT es. displayDate -->
53
54<#-- Abilitare o Disabilitare Highlight dei termini ricercati in configurazione -->
55<#assign isHighlightEnabled=true />
56<#if portletPreferences["highlightEnabled"]?? && portletPreferences["highlightEnabled"][0]?has_content>
57 <#assign isHighlightEnabled=portletPreferences["highlightEnabled"][0] />
58</#if>
59
60<#assign docs=searchContainer.getResults() />
61<#assign
62 icscontent=""
63 titolopulito=""
64/>
65
66
67<div class="container archivio my-4">
68 <#if docs?has_content>
69 <#list docs as d>
70 <#assign contentTitle="" contentSummary="" content="" contentDate="" />
71
72 <#assign contentTitle=hera_template_tool.highlight(d.get(HERA_FIELD_LOCALIZED_TITLE),searchResultsPortletDisplayContext.getKeywords(), isHighlightEnabled?boolean)
73 classTypeId=d.get(HERA_FIELD_CLASS_TYPE_ID)
74 sottotitolo=d.get(HERA_FIELD_PREFIX + classTypeId + HERA_FIELD_SOTTOTITOLO + languageId)
75 description=hera_template_tool.highlight(d.get(HERA_FIELD_DESCRIPTION_IT), searchResultsPortletDisplayContext.getKeywords(), isHighlightEnabled?boolean)
76 immagineInEvidenza=d.get(HERA_FIELD_PREFIX_TEXT+classTypeId + HERA_FIELD_IMMAGINE + languageId)
77 immagineInEvidenzaType2=d.get(HERA_FIELD_PREFIX_TEXT+classTypeId + HERA_FIELD_IMMAGINE_TYPE2 + languageId)
78 urlTitle=d.get(HERA_FIELD_URL_TITLE)
79 contentSummary=hera_template_tool.highlight(d.get(HERA_CONTENT), searchResultsPortletDisplayContext.getKeywords(), isHighlightEnabled?boolean)
80 contentDate=hera_template_tool.getDateFormattedBy(d.get(HERA_FIELD_DISPLAYDATE),"dd/MM/yyyy",locale)
81 publishDate=hera_template_tool.getDateFormattedBy(d.get(HERA_FIELD_PUBLISH_DATE),"dd/MM/yyyy",locale)
82 oraPubblicazione = d.get(HERA_FIELD_PREFIX +classTypeId + HERA_ORA_PUBBLICAZIONE + languageId)
83 oraPubblicazioneObj = oraPubblicazione
84 checkcategory=0
85 contentUrl=hera_template_tool.getSearchResultViewURL(renderRequest, renderResponse,
86 d.get(HERA_FIELD_ENTRY_CLASS_NAME), d.get(HERA_FIELD_CLASSPK)?number, true, currentUrl)
87 content=d.get(HERA_FIELD_CONTENT) titlepage=languageUtil.get(locale, titlepage,
88 layout.getName(locale))
89 datainizio =d.get(HERA_FIELD_PREFIX + classTypeId + HERA_FIELD_DATA_INIZIO + languageId)
90 datafine = d.get(HERA_FIELD_PREFIX + classTypeId + HERA_FIELD_DATA_FINE + languageId)
91 orainizio =d.get(HERA_FIELD_PREFIX + classTypeId + HERA_FIELD_ORA_INIZIO + languageId)
92 orafine = d.get(HERA_FIELD_PREFIX + classTypeId + HERA_FIELD_ORA_FINE + languageId)
93 luogoevento =d.get(HERA_FIELD_PREFIX + classTypeId + HERA_LUOGO + languageId)
94 />
95 <#attempt>
96 <#assign immagineInEvidenzaObj=jsonFactoryUtil.createJSONObject(immagineInEvidenza)/>
97 <#recover>
98 <#attempt>
99 <#assign immagineInEvidenzaObj=jsonFactoryUtil.createJSONObject(immagineInEvidenzaType2)/>
100 <#recover>
101 <#assign immagineInEvidenzaObj=""/>
102 </#attempt>
103 </#attempt>
104
105
106 <div class="post-item mb-3">
107 <a href="${urlTitle}" class="tile boxarchivio-round position-relative white-bg">
108 <#if immagineInEvidenzaObj?? && immagineInEvidenzaObj?has_content >
109 <div class="row d-flex align-items-center">
110 <#else>
111 <div class="row d-flex align-items-center min-height-168">
112 </#if>
113 <#if immagineInEvidenzaObj?? && immagineInEvidenzaObj?has_content && immagineInEvidenzaObj.groupId?? && immagineInEvidenzaObj.name?? && immagineInEvidenzaObj.uuid??>
114 <#assign immagineUrl="/documents/" + immagineInEvidenzaObj.groupId + "/0/" + immagineInEvidenzaObj.name + "/" + immagineInEvidenzaObj.uuid />
115 <div class="col-xs-3 col-md-2">
116 <img title="${immagineInEvidenzaObj.name}" alt="${titlepage}" class="agg-tile-image img-archivio-news" src="${immagineUrl}" />
117 </div>
118 <div class="col-xs-9 col-md-10 offset-lg-1 col-lg-9 px-5 px-md-0">
119 <div class="container px-lg-3 pr-xl-4">
120 <div class="black py-2 small">
121 <div class="mr-0 mr-md-5 d-inline">
122 <#assign
123 startDate=""
124 endDate=""
125 startTime=""
126 endTime=""
127 daysdifference=""
128 iniziodataics=""
129 finedataics=""
130 orainiziodausare=""
131 orafinedausare=""
132 titolopulito=contentTitle?replace("'","")
133 />
134 <#-- DATA INIZIO FINE -->
135 <#if datainizio?? && datainizio?has_content>
136 <#assign
137 startDate = hera_template_tool.dateParseFormat(datainizio)
138 iniziodataics=hera_template_tool.fromDatetoIcsDate(datainizio)
139 daysdifference=hera_template_tool.daysDifference(datainizio)
140 />
141 </#if>
142 <#if datafine?? && datafine?has_content>
143 <#assign
144 endDate = hera_template_tool.dateParseFormat(datafine)
145 finedataics = hera_template_tool.fromDatetoIcsDate(datafine)
146 daysdifference=hera_template_tool.daysDifference(datafine)
147 />
148 </#if>
149
150 <#-- ORA INIZIO FINE -->
151 <#if orainizio?? && orainizio?has_content>
152 <#assign
153 orainiziodausare = orainizio?replace(",","")
154
155 />
156 </#if>
157 <#if orafine?? && orafine?has_content>
158 <#assign
159 orafinedausare = orafine?replace(",","")
160 />
161 </#if>
162
163 <#if endDate?? && startDate?? && endDate?has_content && startDate?has_content>
164 <#assign
165
166 icscontent="BEGIN:VCALENDAR" + "**" + "BEGIN:VTIMEZONE" + "**" + "TZID:Europe/Brussels"+ "**" +
167 "X-LIC-LOCATION:Europe/Brussels" + "**" + "BEGIN:DAYLIGHT" + "**" + "TZOFFSETFROM:+0100" + "**" +
168 "TZOFFSETTO:+0200" + "**" +"TZNAME:CEST" + "**" + "DTSTART:19700329T020000" + "**" +
169 "RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU" + "**" + "END:DAYLIGHT" + "**" + "BEGIN:STANDARD" +
170 "**" + "TZOFFSETFROM:+0200" + "**" + "TZOFFSETTO:+0100" + "**" + "TZNAME:CET" + "**" +
171 "DTSTART:19701025T030000" + "**" + "RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU" + "**" +
172 "END:STANDARD" + "**" +"END:VTIMEZONE" + "**" + "PRODID:-//Gruppo Hera//" + "**" +
173 "VERSION:2.0" + "**" + "BEGIN:VEVENT" + "**" + "DESCRIPTION:"+description +
174 " Link pagina evento: " + themeDisplay.getURLPortal()+urlTitle + "**" +
175 "DTSTART;TZID=Italia/Milano:"+iniziodataics+"T"+ orainiziodausare + "00" + "**" +
176 "DTEND;TZID=Italia/Milano:"+finedataics+"T"+orafinedausare+ "00" + "**" +
177 "SUMMARY:"+titolopulito + "**" + "URL:"+ urlTitle + "**" + "LOCATION:"+luogoevento + "**" +
178 "END:VEVENT" + "**" + "END:VCALENDAR"
179 />
180 <#if endDate == startDate>
181 ${startDate}
182 <#else>
183 ${"Dal " + startDate + " al " + endDate}
184 </#if>
185 <#else>
186 <#assign icscontent="" />
187 </#if>
188
189
190 </div>
191
192 </div>
193
194 <h3 class="titlesize bigger black letter-spacing-sm bolder"> ${contentTitle}</h3>
195 <#if description?? && description?has_content>
196 <div class="d-none d-lg-block greyish-brown tilesize"> ${description} </div>
197 <#else>
198 <div class="d-none d-lg-block greyish-brown tilesize">
199 ${contentSummary}
200
201 </div>
202 </#if>
203 <#if daysdifference?? && daysdifference?has_content && daysdifference gt 0 >
204 <div class="mt-2 ml-4" id="downloadIcsFileId">
205 <p class="small d-inline mr-1">iCal</p>
206 <img src="/o/gruppohera-theme/images/icons/calendario_ical_new.png">
207 </div>
208 </#if>
209 </div>
210 </div>
211 <#else>
212 <div class="col-xs-12 col-md-10">
213 <div class="container">
214 <div class="ml-4 black py-2 small mr-3">
215 <div class="mr-5 d-inline">
216 ${contentDate}
217 </div>
218
219 </div>
220 <h3 class="titlesize bigger ml-4 black letter-spacing-sm bolder"> ${contentTitle}</h3>
221 <#if description?? && description?has_content>
222 <div class="d-none d-lg-block black tilesize ml-4">
223 ${description}
224 </div>
225 <#else>
226 <div class="d-none d-lg-block greyish-brown tilesize ml-4">
227 ${contentSummary}
228
229 </div>
230 </#if>
231 <#if checkcategory==1>
232 <i class="ml-4 black py-2 small mr-3">
233 <#if publishDate!=""> Online dal ${publishDate} </#if>
234 <#--<#list oraPubblicazioneObj as ora_pubb>-->
235 <#if oraPubblicazioneObj!="">
236 alle ore ${oraPubblicazioneObj}
237 </#if>
238 <#--</#list>-->
239 </i>
240 </#if>
241 </div>
242 </div>
243 </#if>
244 </div>
245 </a>
246 </div>
247
248 </#list>
249 </#if>
250</div>
251
252
253<script>
254 $(document).ready(function () {
255 var url = window.location.href;
256 if (url.indexOf("/-/")>=0){
257 var recoverurl=localStorage.getItem("reindexcomunicati");
258 $(".reindexlink").attr("href",recoverurl);
259 }else{
260 localStorage.setItem("reindexcomunicati", url);
261 }
262
263 $("#downloadIcsFileId").click(function(){
264
265 var icscontent = "${icscontent}";
266 var titolopulito = "${titolopulito}";
267
268 console.log(icscontent)
269 console.log(titolopulito)
270 downloadfileics(event,icscontent,titolopulito);
271
272 })
273 });
274</script>
Barra di ricerca
Cookie disabilitati - contenuto non disponibile












Risparmiamo energia, insieme.
Il sito è in modalità risparmio energetico per ridurre i consumi, basta un click per ripartire.
Clicca in un punto qualsiasi per continuare a navigare