Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing: ==> dataI [in template "10901#10934#AGENDA" at line 37, column 20] ---- 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 sData = dataI [in template "10901#10934#AGENDA" at line 37, column 5] ----
1<#assign geniusGroupId=6200569>
2<#assign id = .vars['reserved-article-id'].data>
3<#assign friendlyURLNormalizer=staticUtil["com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil"]>
4
5<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
6
7<#assign articles = journalArticleLocalService.getStructureArticles(groupId, "BIBLIOTECA", 0,1,null)>
8
9<#assign groupUtil = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")>
10
11<#assign group=groupUtil.getGroup(groupId)>
12
13<#assign journalArticle = journalArticleLocalService.getArticle(groupId,id)>
14
15<#assign assetEntryService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
16<#assign assetEntry = assetEntryService.getEntry("com.liferay.journal.model.JournalArticle",journalArticle.getResourcePrimKey())>
17<#assign assetCategoryService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
18<#assign categorias=assetCategoryService.getEntryCategories(assetEntry.getEntryId())>
19
20<#assign Data_Inici_Data = getterUtil.getString(Data_Inici.getData())>
21
22<#if validator.isNotNull(Data_Inici_Data)>
23 <#assign Data_Inici_DateObj = dateUtil.parseDate("yyyy-MM-dd", Data_Inici_Data, locale)>
24
25 <#assign dataI=dateUtil.getDate(Data_Inici_DateObj, "dd/MM/yyyy", locale)>
26</#if>
27
28<#assign Data_Fi_Data = getterUtil.getString(Data_Fi.getData())>
29
30<#if validator.isNotNull(Data_Fi_Data)>
31 <#assign Data_Fi_DateObj = dateUtil.parseDate("yyyy-MM-dd", Data_Fi_Data, locale)>
32
33 <#assign dataF=dateUtil.getDate(Data_Fi_DateObj, "dd/MM/yyyy", locale)>
34</#if>
35
36<#if (Data_Inici.getData() ==Data_Fi.getData())>
37 <#assign sData=dataI>
38<#else >
39 <#assign sData = dataI + " - " + dataF>
40</#if>
41
42<#assign themedisplayscopeid=themeDisplay.getScopeGroupId()>
43
44<#if (getterUtil.getInteger(themedisplayscopeid) != getterUtil.getInteger(geniusGroupId))>
45<h2 class="titol"><@liferay.language key="activities"/></h2>
46</#if>
47<#assign tipusActivitat="">
48<#assign tipusPublic="">
49<#assign periodicitat="">
50<#assign dies="">
51<#assign biblioLab="">
52 <#list categorias as categoria>
53 <!-- Tipus d'activitat-->
54 <#if (categoria.getVocabularyId()==57984278)>
55 <#if (tipusActivitat=="")>
56 <#assign tipusActivitat=categoria.getTitle(locale,true)>
57 <#else>
58 <#assign tipusActivitat=tipusActivitat + " | " + categoria.getTitle(locale,true)>
59 </#if>
60 </#if>
61 <!--## Tipus de públic-->
62 <#if (categoria.getVocabularyId()==57984246)>
63 <#if (tipusPublic=="")>
64 <#assign tipusPublic=categoria.getTitle(locale,true)>
65 <#else>
66 <#assign tipusPublic=tipusPublic + " | " + categoria.getTitle(locale,true)>
67 </#if>
68 </#if>
69 <!--##Periodicitat-->
70 <#if (categoria.getVocabularyId()==64158317)>
71 <#if (periodicitat=="")>
72 <#assign periodicitat=categoria.getTitle(locale,true)>
73 <#else>
74 <#assign periodicitat=periodicitat + "," + categoria.getTitle(locale,true)>
75 </#if>
76 </#if>
77 <!--##Dies de la setmana que es fa-->
78 <#if (categoria.getVocabularyId()==64158372)>
79 <#if (dies=="")>
80 <#assign dies=categoria.getTitle(locale,true)>
81 <#else>
82 <#assign dies=dies + ", " + categoria.getTitle(locale,true)>
83 </#if>
84 </#if>
85 <!--##BIBLIOLAB-->
86 <#if (categoria.getVocabularyId()==341097)>
87 <#if (categoria.getTitle(locale,true)=="BiblioLab")>
88 <#assign bibliolab="1">
89 </#if>
90 </#if>
91 </#list>
92 <#assign descripcioBiblio="">
93 <#assign latitudBiblio = "">
94 <#assign longitudBiblio = "">
95 <#assign adressBiblio = "">
96 <#assign phoneBiblio = "">
97 <#assign emailBiblio = "">
98 <#assign urlBiblio="">
99 <#assign bibliolab="">
100
101
102
103<div class="detalleEvento" style="clear:both">
104 <div class="seccionTitulo">
105 <#if (scopeGroupId != geniusGroupId)>
106 <div class="titulo" style="float:left !important; margin-left:5px">
107 <span style="float:left !important; margin-left:5px">${titol.getData()}</span>
108 <#if ((bibliolab=="1"))>
109 <div class="logoBiblioLab" style="float:right !important; margin-left:5px"></div>
110 </#if>
111 </div>
112 <#else>
113 <div class="titulo" style="float:left !important; margin-left:5px">
114 <span style="float:left !important; margin-left:5px">${titol.getData()}</span>
115 <#if ((bibliolab=="1"))>
116 <div class="logoBiblioLab" style="float:right !important; margin-left:5px"></div>
117 </#if>
118 </div>
119 </#if>
120 </div>
121
122 <#if (imatge.getData()!="")>
123 <#assign imagenURL=imatge.getData()>
124 <#if (validator.isNull(imagenURL) || imagenURL?length?long == 0 )>
125 <#assign imagenURL= imatge.urlExterna.getData()>
126 </#if>
127 <div class="flotantesquerra" style="max-width:200px">
128
129 <#if (validator.isNotNull(imagenURL) && imagenURL?length?long gte 4 && imagenURL?substring(0,4) != "http")>
130 <#assign imagenURL=themeDisplay.getPortalURL()+imagenURL>
131 </#if>
132 <meta property="og:url" content="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"/>
133 <meta property="og:type" content="article" />
134 <meta property="og:description" content="${stringUtil.shorten(htmlUtil.stripHtml(descripcio.getData()),350)}" />
135 <meta property="og:title" content="${titol.getData()}" />
136 <meta property="og:image" content="${imagenURL}" />
137 <meta property="og:image:width" content="250" />
138 <meta property="og:image:height" content="200" />
139 <meta name="twitter:card" content="summary_large_image" />
140 <meta name="twitter:card" content="summary" />
141 <meta name="twitter:title" content="${titol.getData()}" />
142 <meta name="twitter:description" content="${stringUtil.shorten(htmlUtil.stripHtml(descripcio.getData()),350)}" />
143 <meta name="twitter:url" content="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"/>
144 <meta name="twitter:image" content="${imagenURL}" />
145
146 <img alt="" src="${imagenURL}" style="max-width:200px"/>
147 <#if (peuImatge.getData()!="")>
148 <span> ${peuImatge.getData()}</span>
149 </#if>
150 </div>
151 </#if>
152
153 ${descripcio.getData()}
154
155 <div class="seccionDatos">
156 <div class="fechaHora">
157 <div class="fecha">
158 <@liferay.language key="date"/>
159 </div>
160 <div class="datoFecha">
161 ${sData}
162 <#if (periodicitat!="")>
163 <br/><@liferay.language key="periodicidad"/>: ${periodicitat}
164 <#if (dies!="")>
165 <br/><@liferay.language key="periodicidad.texto.dias"/>: ${dies}
166 </#if>
167 </#if>
168 </div>
169 <div class="fecha">
170 <@liferay.language key="time"/>
171 </div>
172 <#if (validator.isNotNull(horaInici.getData()))>
173 <div class="datoFecha">
174 ${horaInici.getData()}
175 </div>
176 </#if>
177 <#if (validator.isNotNull(duracio.getData()))>
178 <div class="fecha">
179 <@liferay.language key="agenda.duracio"/>
180 </div>
181 <div class="datoFecha">
182 ${duracio.getData()}
183 </div>
184 </#if>
185 <#if (tipusPublic!="")>
186 <div class="fecha">
187 <@liferay.language key="agenda.tipuspublic"/>
188 </div>
189 <div class="datoFecha">
190 ${tipusPublic}
191 </div>
192 </#if>
193 </div>
194 <div class="lugares">
195 <div class="lugar">
196 <@liferay.language key="place"/>
197 </div>
198 <div class="lugarEvento">
199 <#if (validator.isNotNull(articles))>
200 <#list articles as art>
201 <#assign contentArticle = art.getContentByLocale(languageUtil.getLanguageId(locale))>
202 <#assign doc = saxReaderUtil.read(contentArticle)>
203 <#assign root = doc.getRootElement()>
204 <#assign latitudBiblio = root.selectSingleNode("dynamic-element[@name='latitude']/dynamic-content").getText()>
205 <#assign longitudBiblio = root.selectSingleNode("dynamic-element[@name='longitude']/dynamic-content").getText()>
206 <#assign adressBiblio = root.selectSingleNode("dynamic-element[@name='address']/dynamic-content").getText()>
207 <#assign phoneBiblio = root.selectSingleNode("dynamic-element[@name='phone']/dynamic-content").getText()>
208 <#assign emailBiblio = root.selectSingleNode("dynamic-element[@name='email']/dynamic-content").getText()>
209 <#if (latitud.getData()!="")>
210 <#assign latitudBiblio=latitud.getData().trim()>
211 </#if>
212 <#if (longitud.getData()!="")>
213 <#assign longitudBiblio=longitud.getData().trim()>
214 </#if>
215
216 <#assign urlBiblio=friendlyURLNormalizer.normalize(group.getDescriptiveName())>
217 <#assign urlBiblio=urlBiblio?replace(".","")>
218 <#assign urlBiblio=urlBiblio?replace("-–-","-")>
219 <#assign lang=languageUtil.getLanguageId(locale)>
220
221 <strong><a href="/${urlBiblio}">${group.getDescriptiveName()}</a></strong>
222 <br/><a href="https://www.google.es/maps/place/${latitudBiblio},${longitudBiblio}?hl=${lang?substring(0,2)}" target="_blank">${languageUtil.get(locale, 'agenda.indicacions')}</a>
223 <br/>${adressBiblio}
224
225 <#if (validator.isNotNull(phoneBiblio))>
226 Tel: ${phoneBiblio}
227 </#if>
228 <#if (validator.isNotNull(emailBiblio))>
229 <br/><a href="mailto:${emailBiblio }">${emailBiblio}</a>
230 </#if>
231 </#list>
232 <#else>
233 <a href="/${friendlyURLNormalizer.normalize(group.getDescriptiveName())}">${group.getDescriptiveName()}</a>
234 </#if>
235 </div>
236
237 <#if (validator.isNotNull(preu.getData()))>
238 <div class="lugar">
239 <@liferay.language key="price"/>
240 </div>
241 <div class="lugarEvento">
242 ${preu.getData()}
243 </div>
244 </#if>
245 <#if (tipusActivitat!="")>
246 <div class="lugar">
247 <@liferay.language key="agenda.tipusactivitat"/>
248 </div>
249 <div class="lugarEvento">
250 ${tipusActivitat}
251 </div>
252 </#if>
253 <#if urlInscripcions?? && urlInscripcions.getData()?has_content>
254 <a href="${urlInscripcions.getData()}" target="_blank" class="btn btn-default">
255 <@liferay.language key="agenda.inscriurem"/>
256 </a>
257 </#if>
258 </div>
259 </div>
260</div>
261<div style="clear:both"></div>
262
263<div class="a2a_kit a2a_kit_size_32 a2a_default_style" data-a2a-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}" data-a2a-title="${titol.getData()}" style="background-color: #e6e6e6;display: inline-block;" data-a2a-icon-color="#e6e6e6,#000000">
264
265<div class="a2a_kit a2a_kit_size_32 a2a_default_style">
266<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
267<a class="a2a_button_email"></a>
268<a class="a2a_button_print"></a>
269</div>
270
271<div style="clear:both"></div>
272
273<script>
274var a2a_config = a2a_config || {};
275a2a_config.onclick = false;
276a2a_config.locale = "es";
277
278</script>
279
280<script async src="https://static.addtoany.com/menu/page.js"></script>