An error occurred while processing the template.
The following has evaluated to null or missing: ==> imagen.BajaResolucionFieldSet.urlExterna3 [in template "10132#10165#PLANTILLA_NOTAS_PRENSA" at line 161, column 46] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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 imgBajaURL = imagen.BajaResol... [in template "10132#10165#PLANTILLA_NOTAS_PRENSA" at line 161, column 25] ----
1<#assign paginalistado="noticies">
2
3 <#assign paginaboletin="el-diari-de-la-diputacio">
4
5 <#assign vocabularioCategoriasTematicas="Tema_notes_premsa">
6
7 <#assign groupUtil= serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")>
8 <#assign group= groupUtil.getGroup( groupId)>
9
10 <#assign listadoURL="/web/sala-de-premsa/"+ paginalistado>
11
12 <#assign DLFileEntryUtil= serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
13 <#assign assetCategoryPropertyLocalService= serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService")>
14
15 <#--Datos obtenidos del Journal-->
16 <#assign display_date=dateUtil.parseDate("EEE,dd MMM yyyy HH:mm:ss Z", .vars["reserved-article-display-date"].data, languageUtil.getLocale("ca"))>
17 <#assign fecha=dateUtil.getDate( display_date,"dd/MM/yyyy HH:mm ", languageUtil.getLocale("ca"), company.getTimeZone())+"h.">
18 <div id="actualidad" class="notasPrensa">
19
20 <#--Obtener categorías temáticas-->
21
22 <#assign journalArticleLocalService= serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
23 <#assign journalArticle= journalArticleLocalService.getArticle( groupId, .vars["reserved-article-id"].data)>
24
25
26 <#assign assetEntryService= serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")>
27 <#assign assetEntry= assetEntryService.getEntry("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey())>
28
29
30 <#assign assetCategoryService= serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
31 <#assign categorias= assetCategoryService.getEntryCategories( assetEntry.getEntryId())>
32 <#assign hasOds=false>
33
34
35 <#assign assetVocabularyService= serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")>
36
37
38 <p>
39 <#list categorias as categoria>
40 <#assign assetVocabulary= assetVocabularyService.getAssetVocabulary( categoria.getVocabularyId())>
41
42 <#if stringUtil.equals(assetVocabulary.getName(),vocabularioCategoriasTematicas)&&groupId==assetVocabulary.getGroupId()>
43 ${categoria.getName()} -
44 </#if>
45 <#if categoria.getVocabularyId()==308057240>
46 <#assign hasOds=true>
47 </#if>
48 <#break>
49 </#list>
50
51
52 <#--FIN Obtener categorías temáticas-->
53
54
55 ${fecha} -
56 <#assign autorText= .vars["reserved-article-author-name"].data>
57 <#assign emailContacte= .vars["reserved-article-author-email-address"].data>
58 <#if Autor?? && Autor.getData()?has_content>
59 <#assign splitAutor= stringUtil.split(Autor.getData(),"|")>
60 <#if splitAutor?size gt 1>
61 <#assign autorText= splitAutor[0]>
62 <#assign emailContacte= splitAutor[1]>
63 </#if>
64 </#if>
65
66
67 <a href="mailto:${emailContacte}">${autorText}</a></p>
68 <strong> ${Antetitulo.getData()} </strong>
69 <#if hasOds>
70 <div class="row">
71 <#assign assetCategoryPropertyLocalService= serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService")>
72
73 <div class="col-fluid">
74 <a id="titolOds" class="btn" data-toggle="collapse" href="#categoryOds" role="button" aria-expanded="true" aria-controls="collapseExample" title="ODS">
75 <img src="/documents/167993676/170794330/sdgs-circle.jpg/ea64b0d5-7bfd-4147-a3f1-69156340b53b?t=1528792056902"/><i class="icon-large icon-chevron-right"></i>
76 </a>
77 </div>
78 <div class="col collapse show" id="categoryOds">
79 <#list categorias as categoria>
80 <#if categoria.getVocabularyId()==308057240>
81 <#assign icon= assetCategoryPropertyLocalService.getCategoryProperty(categoria.getCategoryId(),"icon")>
82 <#assign url= assetCategoryPropertyLocalService.getCategoryProperty(categoria.getCategoryId(),"url")>
83 <#if icon?has_content && url?has_content>
84 <#assign imageOds="/documents/167993676/170793813/"+ icon.getValue()+".jpg">
85 <#assign urlOds="https://www.diba.cat/web/ods/"+ url.getValue()>
86 <a href="${urlOds}" title="${categoria.getDescription(locale, true)}" target="_blank">
87 <img src=${imageOds} alt="${categoria.getDescription(locale, true)}" class="mb-2">
88 </a>
89 </#if>
90 </#if>
91 </#list>
92 </div>
93 <br />
94
95 </div>
96 </#if>
97 <h2>${Titulo.getData()}</h2>
98
99 <#-- AddToAny Button BEGIN-->
100 <div class="row">
101 <div class="col-12">
102 <div id="socialShare" class="btn-group share-group pull-right">
103 <a data-toggle="dropdown" class="btn btn-default">
104 <img src="/o/DibaMenuVertical-theme/images/recursos/share.png" class="no-lazy" alt="Comparteix" style="margin:0;width:16px"/>
105 </a>
106 <button href="#" data-toggle="dropdown" class="btn btn-default dropdown-toggle">
107 <span class="caret" style="margin:0;"></span>
108 </button>
109 <div class="a2a_kit a2a_kit_size_32 a2a_default_style dropdown-menu dropdown-menu-right" data-a2a-url="${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}" data-a2a-title="${htmlUtil.escape(.vars["reserved-article-title"].data)}">
110 <a class="a2a_button_facebook"></a>
111 <a class="a2a_button_x"></a>
112 <a class="a2a_button_whatsapp"></a>
113 <a class="a2a_button_linkedin"></a>
114 </div>
115 <script>
116 var a2a_config = a2a_config || {};
117 a2a_config.locale = "es";
118 </script>
119 <script async src="https://static.addtoany.com/menu/page.js"></script>
120 <script data-senna-track="temporary">
121 Liferay.on("beforeNavigate", function(event) { location.href=event.path; });
122 </script>
123 <style>
124 .a2a_svg, .a2a_count { border-radius: 16px !important; }
125 .a2a_kit.show {display:inline-flex}
126 </style>
127 </div>
128 </div>
129 </div>
130 <#-- AddToAny Button END -->
131 <#assign descripcio=" ">
132 <#if Entradilla?? && Entradilla.getData()?has_content>
133 <#assign descripcio=htmlUtil.escape(htmlUtil.stripHtml(stringUtil.trim(Entradilla.getData())))>
134 </#if>
135 <meta property="og:title" content="${htmlUtil.escape(Titulo.getData())}" />
136 <meta property="og:description" content="${descripcio}" />
137 <meta name="twitter:title" content="${htmlUtil.escape(Titulo.getData())}" />
138 <meta name="twitter:description" content="${descripcio}" />
139 <#assign metaImgs=false>
140 <#if ImagenPortada?? && ImagenPortada.getData()?has_content>
141 <#assign metaImgs=true>
142 <meta property="og:image" content="https://www.diba.cat${ImagenPortada.getData()}" />
143 <meta name="twitter:image" content="https://www.diba.cat${ImagenPortada.getData()}" />
144 <meta name="twitter:card" content="summary_large_image" />
145 </#if>
146
147 ${Entradilla.getData()}
148 ${Cuerpo.getData()}
149
150
151 <div id="galeriaPremsa">
152
153 <#list ListaImagenesFieldSet.ImagenFieldSet.getSiblings() as imagen>
154
155 <#assign imgAltaURL= imagen.AltaResolucionFieldSet.AltaResolucion.getData()!"">
156 <#if imagen.AltaResolucionFieldSet.urlExterna2?? && (!imgAltaURL?has_content || imgAltaURL?length ==0)>
157 <#assign imgAltaURL= imagen.AltaResolucionFieldSet.urlExterna2.getData()>
158 </#if>
159 <#assign imgBajaURL= imagen.BajaResolucionFieldSet.BajaResolucion.getData()!"">
160 <#if !imgBajaURL?has_content || imgBajaURL?length ==0>
161 <#assign imgBajaURL= imagen.BajaResolucionFieldSet.urlExterna3.getData()>
162 </#if>
163
164 <#assign titol="">
165 <#assign dlFileEntryId=-1>
166 <#if imagen.BajaResolucionFieldSet.BajaResolucion.getData()?has_content && imagen.BajaResolucionFieldSet.BajaResolucion.getData()?length gt 0>
167 <#assign jsonImatge= stringUtil.trim(imagen.BajaResolucionFieldSet.BajaResolucion.get("data"))>
168 <#if jsonImatge?has_content && jsonImatge?has_content && stringUtil.startsWith(jsonImatge,"{")>
169 <#assign dlFileEntryId= jsonFactoryUtil.createJSONObject( jsonImatge).getLong("fileEntryId")>
170 <#if dlFileEntryId == 0>
171 <#assign dlFileEntryId= jsonFactoryUtil.createJSONObject( jsonImatge).getLong("classPK")>
172 </#if>
173 <#attempt>
174 <#assign imagenIGImage= DLFileEntryUtil.fetchDLFileEntry(dlFileEntryId)!"">
175 <#recover>
176 <#assign imagenIGImage= "">
177 </#recover>
178 <#if imagenIGImage?has_content && imagenIGImage.getDescription()?has_content>
179 <#assign titol= htmlUtil.escape(imagenIGImage.getDescription())>
180 </#if>
181 </#if>
182 </#if>
183
184
185
186 <#if imgAltaURL?has_content>
187 <#if !metaImgs>
188 <#assign metaImgs=true>
189 <meta property="og:image" content="https://www.diba.cat${imgAltaURL}" />
190 <meta property="twitter:image" content="https://www.diba.cat${imgAltaURL}" />
191 <meta name="twitter:card" content="summary_large_image" />
192 </#if>
193 <a href="${imgAltaURL}" title="${titol}">
194 <#else> <#if !metaImgs>
195 <#assign metaImgs=true>
196 <meta property="og:image" content="https://www.diba.cat${imgBajaURL}" />
197 <meta property="twitter:image" content="https://www.diba.cat${imgBajaURL}" />
198 <meta name="twitter:card" content="summary_large_image" />
199 </#if>
200 <a href="${imgBajaURL}" title="${titol}">
201 </#if>
202 <img <#if dlFileEntryId gt 0> data-fileentryid="${dlFileEntryId}" </#if> src="${imgBajaURL}" style="width:120px" alt="${titol}" title="${titol}" data-toggle="tooltip" data-placement="top" data-html="true" />
203 </a>
204
205
206 </#list>
207
208
209 <script type="text/javascript">
210 AUI().ready("aui-image-viewer", function(A) {
211 var galeriaImatges= new A.ImageViewer({
212 links: "#galeriaPremsa a",
213 caption: "",
214 captionFromTitle: true,
215 infoTemplate: '<@liferay.language key="image"/> {current} <@liferay.language key="of"/> {total}',
216 intervalTime: 2,
217 zIndex: 1
218 }).render();
219
220 $(function () {
221 $('#galeriaPremsa img[data-toggle="tooltip"]').tooltip();
222 });
223 });
224 </script>
225 </div>
226
227
228 <#if Documento?? && (Documento.getData()?has_content || Documento.urlExterna.getData()?has_content)>
229 <div id="documentsAdjunts">
230 <h4>Documents adjunts</h4>
231
232 <ul>
233 <#list Documento.getSiblings() as doc>
234 <#if doc.getData()?has_content && doc.getData()?length gt 0>
235
236 <#assign splitName= stringUtil.split(doc.getData(),"/")>
237 <#assign ultimo= splitName?size>
238 <#if splitName?size lt 6>
239 <#--LR 6.0 SP1-->
240 <#assign ultimo= ultimo-1>
241 <#else> <#--LR 6.1-->
242 <#assign ultimo= ultimo-2>
243 </#if>
244 <#if splitName?size gt 2>
245
246 <#assign docgroupid= getterUtil.getLong( splitName[2])>
247 <#assign docfolderid= getterUtil.getLong( splitName[3])>
248 <#assign docnombre= staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].decodeURL( splitName[ultimo])>
249
250
251 <li><a href="${doc.getData()}">${staticUtil['com.liferay.portal.kernel.util.HttpComponentsUtil'].decodeURL(splitName[ultimo])}</a></li>
252
253 </#if>
254 <#elseif doc.urlExterna.getData()?has_content && doc.urlExterna.getData()?length gt 0 >
255 <li><a href="${doc.urlExterna.getData()}">${doc.urlExterna.getData()}</a></li>
256 </#if>
257
258 </#list>
259 </ul>
260 </div>
261 </#if>
262
263 <p class="text-right"><a href="${listadoURL}"><< Tornar al llistat de notes de premsa</a></p>
264
265 <p>Desitgeu rebre les notes de premsa a la vostra adreça electrònica?<a href="/web/sala-de-premsa/${paginaboletin}/-/butlleti/suscripcio"> Subscriviu-vos-hi</a></p>
266
267 </div>
Cedim les imatges (vídeo i fotografies) als mitjans de comunicació que vulguin fer-ne ús, sempre que se'n citi la font i exclusivament per a contextualitzar aquesta notícia.