An error occurred while processing the template.
The following has evaluated to null or missing: ==> DOCUMENT.BOTON_DOCUMENT_TITLE [in template "20155#20195#199096" at line 155, 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: #if DOCUMENT.BOTON_DOCUMENT_TITLE.get... [in template "20155#20195#199096" at line 155, column 41] ----
1<#--
2Application display templates can be used to modify the look of a
3specific application.
4
5Please use the left panel to quickly add commonly used variables.
6Autocomplete is also available and can be invoked by typing "${".
7-->
8
9<#--init template-->
10<#include "${templatesPath}/250833" />
11
12<#--functions template-->
13<#include "${templatesPath}/250837" />
14
15
16<#assign displayDate = getDisplayDateFormat( .vars['reserved-article-display-date'].data, "MMMM yyyy")>
17
18
19<#assign display="">
20<div class="container-fluid article-content article-custom-style-ot" id="content-wrapper">
21
22 <#assign mostar = TITLE.getSiblings()?size>
23 <#if TITLE.getSiblings()?has_content && mostar != 1>
24 <div class="col-md-1 col-sm-1 col-xs-1 navbar-container">
25 <aside id='scroll-nav' class=" article-aside hidden-sm hidden-xs" style="top: 0px;"><!-- reports -->
26
27 <ul class="scroll-list">
28 <li class="arrow up"><a href="#section1"><span class="fa fa-angle-up"></span></a></li>
29 <#assign lastSection = "1">
30 <#assign j = 0>
31 <#list TITLE.getSiblings() as item >
32 <#if j == 0>
33 <li data-toggle="tooltip" data-placement="right" title="" data-original-title='${Titulo.getData()}' class=""><a href='#section${j}'><span class="fa fa-circle-o"></span></a></li>
34 <#else>
35 <li data-toggle="tooltip" data-placement="right" title="" data-original-title='${j}. ${item.getData()}' class=""><a href='#section${j}'><span class="fa fa-circle-o"></span></a></li>
36 </#if>
37
38 <#assign lastSection = j>
39 <#assign j = j+1>
40 </#list>
41 <li class="arrow down"><a href="#section${lastSection}"><span class="fa fa-angle-down"></span></a></li>
42 </ul>
43 </aside><!-- /article -->
44 </div>
45 </#if>
46
47 <div class="col-md-12 col-sm-12 col-xs-12 cos-article">
48 <section class="article" >
49 <article class="scroll-nav__section row" id="section0">
50 <#-- cabecera-->
51 <#if GENERALIMAGENEW??>
52 <#if GENERALIMAGENEW.getData()?has_content >
53 <div class="banner-image" id="detail-header-img">
54 <img src="${GENERALIMAGENEW.getData()}" alt=""/>
55 </div>
56 <#else>
57 <#if GENERALIMAGE.getData()?has_content >
58 <div class="banner-image back-compability" id="detail-header-img-back">
59 <img src="${GENERALIMAGE.getData()}" alt=""/>
60 </div>
61 </#if>
62 </#if>
63 <#else>
64 <#if GENERALIMAGE.getData()?has_content >
65 <div class="banner-image back-compability" id="detail-header-img-back">
66 <img src="${GENERALIMAGE.getData()}" alt=""/>
67 </div>
68 </#if>
69 </#if>
70 <div class="header-content" id="detail-header" style="">
71 <section class="row page_content_title_observatori">
72 <div class="jumbotron document-adjunt">
73 <div class="row main">
74 <div class="col-md-8 col-sm-12 col-xs-12">
75 <div class="index-and-title">
76 <div class="category">
77 <#assign categories = entry.getCategories() />
78 <#list categories as category >
79 <#assign vocabularyId = 46723>
80 <#assign vocabularyId = propsUtil.get("vocabulary.tipo.contenido")>
81 <#if category.getVocabularyId() == vocabularyId?number>
82 <p class="category">
83 ${category.getTitle(locale)}
84 </p>
85 </#if>
86 </#list>
87 </div>
88 </div>
89 <p class="description">
90 ${Titulo.getData()}
91 </p>
92 <#assign pathThemeImage = themeDisplay.getPathThemeImages() />
93 <section class="date-content">
94 <span class="posted-on">
95 <time datetime="${displayDate?cap_first}">${displayDate?cap_first}</time>
96 </span>
97 <div class="print-action hidden-sm hidden-xs">
98 <span class="">
99 <a href="#" onclick="window.print();" class=" taglib-icon">
100 <img id="bhfa__column1__0" src="${pathThemeImage}/spacer.png">
101 </a>
102 </span>
103 </div>
104 </section>
105
106
107
108 </div>
109 </div>
110 </div>
111
112 </section>
113
114 </div>
115 <#-- contenido -->
116 <div class="col-xl-9 col-md-12 col-sm-12 col-xs-12 columna-esquerra">
117 <#if Subtitol.getData()?has_content >
118 <div class="subtitulo-content">
119 <h2>${Subtitol.getData()}</h2>
120 </div>
121 </#if>
122 <#if Autor.getSiblings()?has_content && Autor.getSiblings()[0].getData() != "">
123 <section class="autors clean-padding col-md-12 col-sm-12 col-xs-12">
124 <#assign descripcio_autor="">
125 <#list Autor.getSiblings() as autor>
126 <#if autor.Descripcio_Autor.getData()?has_content>
127 <#assign descripcio_autor= descripcio_autor + autor.getData() + ", " + autor.Descripcio_Autor.getData() + "; "/>
128 <#else>
129 <#assign descripcio_autor= descripcio_autor + autor.getData() + "; "/>
130 </#if>
131 </#list>
132 <div class="autors-content">
133 <div class="autor">
134 ${descripcio_autor?substring(0, (descripcio_autor?length) -2)}
135 </div>
136 </div>
137 </section>
138 </#if>
139
140 <#if TituloConvosWin?has_content && TituloConvosWin.getData()!="">
141 <section class="autors clean-padding col-md-12 col-sm-12 col-xs-12" style=" margin-bottom: 0px;">
142 <div class="autor convo-winer">
143 ${TituloConvosWin.getData()}
144 </div>
145 </section>
146 </#if>
147
148 <#if DOCUMENT.getData()?has_content >
149 <section class="clean-padding col-md-12 col-sm-12 col-xs-12">
150 <div class="last-downloads">
151 <#assign classFile=getButtonStyles(DOCUMENT.getData())>
152 <#assign targetFile="target=\"_blank\""/>
153 <a ${targetFile} href="${DOCUMENT.getData()}" title="${TITLE.getData()}" class="btn btn-download pushtag-download">
154 <div class="text">
155 <#if DOCUMENT.BOTON_DOCUMENT_TITLE.getData()?has_content>
156 ${DOCUMENT.BOTON_DOCUMENT_TITLE.getData()}
157 <#else>
158 <@liferay.language key="observatoriosocial-download"/>
159 </#if>
160 </div>
161 <div class="icon fa fa-2x ${classFile}"></div>
162 </a>
163 </div>
164 </section>
165 </#if>
166
167 <#-- PREVIEW -->
168 <#if RESUM_PREVI??>
169 <#if getterUtil.getBoolean(RESUM_PREVI.getData())>
170 <div class="previ">
171 <h1 class="titol-previ">
172 ${RESUM_PREVI.get("SUBTITULO_PUNTOS_CLAVE").getData()}
173 </h1>
174
175 <div class="microresum-previ">
176 ${RESUM_PREVI.get("MICRORESUMEN_PUNTOS_CLAVE").getData()}
177 </div>
178
179 <div class="puntsclau-previ">
180 <@liferay.language key="observatoriosocial.puntos.clave"/>
181 </div>
182 <#assign style="col-md-12 col-sm-12 col-xs-12 row-previpunts">
183 <#-- flex no es necesario <#if RESUM_PREVI.get("PUNTO_CLAVE_IZQ")?has_content && RESUM_PREVI.get("PUNTO_CLAVE_DER")?has_content>
184 <#assign style="col-md-6 col-sm-6 col-xs-12 row">
185 </#if>-->
186 <#assign i=1>
187 <#if RESUM_PREVI.get("PUNTO_CLAVE_IZQ")?has_content>
188 <ul class="${style}">
189
190 <#list RESUM_PREVI.get("PUNTO_CLAVE_IZQ").getSiblings() as izq >
191 <li>
192 <div class="numberCircle">${i}</div>
193 ${izq.getData()}
194 </li>
195 <#assign i=i+1>
196 </#list>
197 </ul>
198 </#if>
199 <#if RESUM_PREVI.get("PUNTO_CLAVE_DER")?has_content>
200 <ul class="${style}">
201 <#list RESUM_PREVI.get("PUNTO_CLAVE_DER").getSiblings() as der >
202 <li>
203 <div class="numberCircle">${i}</div>
204 ${der.getData()}
205 </li>
206 <#assign i=i+1>
207 </#list>
208 </ul>
209 </#if>
210 <#if RESUM_PREVI.get("TITULO_GRAFICO_ITEM_PREVI")?has_content>
211 <#list RESUM_PREVI.get("TITULO_GRAFICO_ITEM_PREVI").getSiblings() as resum >
212 <div class="col-md-12 col-sm-12 col-xs-12 resum-previ">
213 <#if resum.get("GRAFICO_ITEM_PREVI").getData()?has_content>
214 <div class="resum-previ-text">
215 <div class="titol-resum">${resum.getData()}</div>
216 </div>
217 <div class="resum-previ-imatge">
218 <img src="${resum.get("GRAFICO_ITEM_PREVI").getData()}" alt="${resum.getData()}"/>
219 </div>
220 <div class="text-resum">
221 ${resum.get("TEXTO_GRAFICO_ITEM_PREVI").getData()}
222 </div>
223 <#else>
224 <div class="resum-previ-text">
225 <div class="titol-resum">${resum.getData()}</div>
226 </div>
227 <div class="text-resum">
228 ${resum.get("TEXTO_GRAFICO_ITEM_PREVI").getData()}
229 </div>
230 </#if>
231 </div>
232 </#list>
233 </#if>
234 </div>
235 <#-- TODO:: RESTA de camps de previ -->
236
237 <#-- INICI BOTONS VEURE TOT i VEURE RESUM -->
238 <#assign mostrarBoton = languageUtil.get(locale, "veure-tot")>
239 <#assign ocultarBoton = languageUtil.get(locale, "veure-resum-previ")>
240
241 <#if RESUM_PREVI_TEXT_BOTO_MOSTRAR??>
242 <#if RESUM_PREVI_TEXT_BOTO_MOSTRAR.getData()?has_content>
243 <#assign mostrarBoton = RESUM_PREVI_TEXT_BOTO_MOSTRAR.getData()>
244 </#if>
245 </#if>
246
247 <#if RESUM_PREVI_TEXT_BOTO_OCULTAR??>
248 <#if RESUM_PREVI_TEXT_BOTO_OCULTAR.getData()?has_content>
249 <#assign ocultarBoton = RESUM_PREVI_TEXT_BOTO_OCULTAR.getData()>
250 </#if>
251 </#if>
252
253 <div class="veure-tot-botons">
254 <span class="boto-veure-tot" id="boto-veure-tot-header">
255 <a id="veure-tot-header" title="${mostrarBoton}" href="#">
256 ${mostrarBoton}
257 </a>
258 </span>
259 <span class="boto-resum-previ" id="boto-resum-previ-header">
260 <a id="veure-resum-previ-header" title="${ocultarBoton}" href="#">
261 ${ocultarBoton}
262 </a>
263 </span>
264 </div>
265 <#-- FI BOTONS VEURE TOT i VEURE RESUM -->
266 <#assign display="display:none;">
267 </#if>
268 </#if>
269
270 <div id="article-total" style="display:none;">
271 <#-- - END PREVIEW -->
272 <#assign i = 0>
273 <#list TITLE.getSiblings() as item >
274 <section class="article" ><!-- reports -->
275 <article class="scroll-nav__section" id="section${i}"><!-- col-md-6 col-xs-12 -->
276 <#if item.getData()?has_content >
277 <#if i == 0>
278 <h1 class="col-md-12 col-sm-12 main-h1">${item.getData()}</h1>
279 <#else>
280 <h1 class="col-md-12 col-sm-12 main-h1">${i}. ${item.getData()}</h1>
281 </#if>
282 </#if>
283 <#list item.SUBTITLE.getSiblings() as subitem >
284 <#if subitem.getData()?has_content>
285 <h2 class="col-md-12 col-sm-12 col-xs-12">${subitem.getData()}</h2>
286 </#if>
287 <div class="article-contents col-md-12 col-sm-12 col-xs-12 row">
288 <!-- bloque 1 -->
289 <#if subitem.IMAGE.getData()?has_content >
290 <div class="col-md-12 col-sm-12 col-xs-12 row">
291 <img src="${subitem.IMAGE.getData()}" class="img-responsive image-1-columna" alt="${subitem.getData()}"/>
292 </div>
293 </#if>
294 <#if subitem.CITE.getData()?has_content>
295 <div class="col-md-12 col-sm-12 col-xs-12 row">
296 <cite class="col-md-12 col-sm-12 col-xs-12 cita-1-columna">${subitem.CITE.getData()}</cite>
297 </div>
298 </#if>
299 <#if subitem.CONTENT.getData()?has_content>
300 <div class="col-md-12 col-sm-12 col-xs-12 row"><p>${subitem.CONTENT.getData()}</p></div>
301 </#if>
302 <#if subitem.VIDEO.getData()?has_content>
303 <div class="col-md-12 col-sm-12 col-xs-12 row"><p>${subitem.VIDEO.getData()}</p></div>
304 </#if>
305 </div>
306 </#list>
307 </article><!-- /col-md-6 col-xs-12 -->
308 </section>
309 <#assign i = i+1>
310 </#list>
311
312 <#if (PeuPagina.getSiblings()?size > 1) >
313 <section class="article peu-pagina" ><!-- reports -->
314 <article class="scroll-nav__section" id=""><!-- col-md-6 col-xs-12 -->
315 <#list PeuPagina.getSiblings() as cur_PeuPagina>
316 <div class="peu-content">
317 <#if cur_PeuPagina.get("Num")?has_content >
318 <p id='${cur_PeuPagina.get("Num").getData()}' class="num-peu">
319 ${cur_PeuPagina.get("Num").getData()}. ${cur_PeuPagina.getData()}
320 <a href="#ancora-#${cur_PeuPagina.get("Num").getData()}" class="tornar-ancora">↵</a>
321 </p>
322 </#if>
323 </div>
324 </#list>
325 </article>
326 </section>
327 </#if>
328 </div>
329 <#if RESUM_PREVI??>
330 <#if getterUtil.getBoolean(RESUM_PREVI.getData())>
331 <div class="veure-tot-botons">
332 <span class="boto-resum-previ" id="boto-resum-previ-footer">
333 <a id="veure-resum-previ-footer" title="${ocultarBoton}" href="#">
334 ${ocultarBoton}
335 </a>
336 </span>
337 </div>
338 </#if>
339 </#if>
340
341 </div>
342 <#-- columna derecha -->
343 <div class="col-xl-3 col-md-12 col-sm-12 col-xs-12 columna-dreta">
344 <#--classification template-->
345 <#include "${templatesPath}/250841" />
346
347 <#--related-content template-->
348 <#include "${templatesPath}/250845" />
349 </div>
350
351 </article>
352 </section>
353
354
355 </div>
356
357</div>
358<#--interested-content template-->
359<#include "${templatesPath}/250849" />
360
361
362<script type="text/javascript">
363 $( document ).ready(function() {
364
365 $("#boto-resum-previ-footer").hide();
366 $("#boto-resum-previ-header").hide();
367 $("#scroll-nav").hide();
368 $("#article-total").show();
369 <#if RESUM_PREVI??>
370 <#if getterUtil.getBoolean(RESUM_PREVI.getData())>
371 $("#article-total").hide();
372 <#else>
373 $("#article-total").show();
374 $("#scroll-nav").show();
375 </#if>
376 </#if>
377
378 if ($("#detail-header-img img").length >0){
379 $(".main-header-aux").html($("#detail-header-img"))
380 }
381
382 if ($("#detail-header-img-back img").length >0){
383 $(".main-header-aux").html($("#detail-header-img-back"))
384 }
385
386 $(".header-content-home").html($("#detail-header"));
387
388 $("#veure-tot-header").click(function(event) {
389 $("#boto-resum-previ-footer").show();
390 $("#boto-veure-tot-header").hide();
391 $("#boto-resum-previ-header").show();
392 $("#article-total").show();
393 $("#scroll-nav").show();
394 scrollNav();
395 event.preventDefault();
396 });
397
398 $("#veure-resum-previ-header").click(function(event) {
399 $("#boto-resum-previ-footer").hide();
400 $("#boto-veure-tot-header").show();
401 $("#boto-resum-previ-header").hide();
402 $("#article-total").hide();
403 $("#scroll-nav").hide();
404 event.preventDefault();
405 });
406
407 $("#veure-resum-previ-footer").click(function(event) {
408 $("#boto-veure-tot-header").show();
409 $("#boto-resum-previ-header").hide();
410 $("#boto-resum-previ-footer").hide();
411 $("#article-total").hide();
412 $("#scroll-nav").hide();
413 $(window).scrollTop(0);
414 event.preventDefault();
415 });
416
417 $('.cos-article a[href^="#"]').each(function() {
418 $(this).addClass( "ancora" );
419 $(this).attr("id","ancora-"+$(this).attr("href"));
420 });
421
422 $(".tornar-ancora").click(function(event){
423 var idElement = $(this).attr("href");
424 $('.ancora').each(function() {
425 if(idElement == "#"+$(this).attr("id")){
426 $('html, body').animate({
427 scrollTop: $(this).offset().top
428 }, 500);
429 }
430 });
431 event.preventDefault();
432 });
433 });
434</script>