null The situation in Spain

An error occurred while processing the template.
The following has evaluated to null or missing:
==> DOCUMENT_SECOND  [in template "20155#20195#199144" at line 121, column 46]

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