Histórico Comunicados Prensa:

2020

An error occurred while processing the template.
The following has evaluated to null or missing:
==> doc  [in template "42020#42061#119950709" at line 149, column 84]

----
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: ${doc}  [in template "42020#42061#119950709" at line 149, column 82]
----
1<#assign anioMayor = 0 > 
2<#if entries?has_content> 
3	<div class="todayNews"> 
4		<div class="tab-content"> 
5			<div class="tab-pane fade active in"> 
6				<ul> 
7					<#list entries as curEntry> 
8						<#-- estan ordenados por fecha, asi que me quedo con la primer fecha --> 
9						<#-- HISTORICO / AÑOS --> 
10						<#assign categories = curEntry.getCategories()> 
11						<#list categories as category> 
12							<#assign anio = category.getName() > 
13						</#list> 
14                        <#assign article=curEntry.getAssetRenderer().getArticle() />         
15						<#assign docXml = saxReaderUtil.read(curEntry.getAssetRenderer().getArticle().getContentByLocale(locale)) /> 
16                        <#assign document = saxReaderUtil.read(article.getContent())>                 
17                        <#assign rootElement = document.getRootElement()> 
18						<#assign Fecha = docXml.valueOf("//dynamic-element[@name='Fecha6n65']/dynamic-content/text()") /> 
19						<#if Fecha?has_content> 
20							<#assign entryDate = Fecha?date.xs> 
21						<#else> 
22							<#assign entryDate =  .now> 
23						</#if> 
24						 
25						<#assign anio = entryDate?string.yyyy >						 
26						<#if (anioMayor!?html == "0") > 
27							<#assign anioMayor = anio > 
28						</#if> 
29						<#if anioMayor == anio> 
30							<li class="col-magic">								 
31								<#assign Noticia = docXml.valueOf("//dynamic-element[@name='Noticia1']/dynamic-content/text()") /> 
32								<#assign TextoEnlace = docXml.valueOf("//dynamic-element[@name='TextoEnlace']/dynamic-content/text()") /> 
33								<#assign Link = docXml.valueOf("//dynamic-element[@name='Link']/dynamic-content/text()") /> 
34								<#assign Ventana = docXml.valueOf("//dynamic-element[@name='Ventana']/dynamic-content/text()") /> 
35								<#assign TextoPDF = docXml.valueOf("//dynamic-element[@name='Texto1m5v']/dynamic-content/text()") /> 
36								<#assign LinkPDF = docXml.valueOf("//dynamic-element[@name='linkPDF']/dynamic-content/text()") /> 
37								<#assign FilePDF = docXml.valueOf("//dynamic-element[@name='DocumentosYMultimedia3hv2']/dynamic-content/text()") /> 
38								<#assign VentanaPDF = docXml.valueOf("//dynamic-element[@name='VentanaPDF']/dynamic-content/text()") /> 
39								<#assign videoExterno = docXml.valueOf("//dynamic-element[@name='videoExterno']/dynamic-content/text()") /> 
40								<#assign VideoInterno = docXml.valueOf("//dynamic-element[@name='VideoInterno']/dynamic-content/text()") /> 
41								 
42 
43                                 <#attempt> 
44                                    <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='Imagen']")> 
45                                    <#assign img = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
46                                    <#if isJson(img)> 
47                                        <#assign imgJson = jsonFactoryUtil.createJSONObject(img)> 
48                                        <#assign Imagen = "/documents/" + imgJson.groupId + "/" + imgJson.uuid > 
49                                    </#if> 
50                                <#recover> 
51                                    <#assign Imagen = ""> 
52                                </#attempt> 
53                                 <#attempt> 
54                                    <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='imagenVideo']")> 
55                                    <#assign img = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
56                                    <#if isJson(img)> 
57                                        <#assign imgJson = jsonFactoryUtil.createJSONObject(img)> 
58                                        <#assign imagenVideo = "/documents/" + imgJson.groupId + "/" + imgJson.uuid > 
59                                    </#if> 
60                                <#recover> 
61                                    <#assign imagenVideo = ""> 
62                                </#attempt> 
63								<#-- IMAGEN --> 
64								<h4>${curEntry.getTitle(locale)}</h4> 
65 
66 
67								<#-- VIDEO --> 
68								<#if (videoExterno?has_content && videoExterno != "") || (VideoInterno?has_content && VideoInterno != "" && VideoInterno != "{}")> 
69								    <div class="row"> 
70    									<#if Imagen?has_content> 
71        									<div class="col-md-6"> 
72        									    <div class="imgNews"> 
73        										    <img src="${Imagen}" alt="${curEntry.getTitle(locale)}" class="cornerBR" /> 
74        										    <div class="dateNews"> 
75        											    <div class="calendar"></div> 
76        											    <span>${entryDate?string["dd/MM/yyyy"]}</span> 
77        										    </div> 
78                                                </div> 
79        									</div> 
80        								</#if> 
81        								<div class="col-md-6"> 
82        								    <#if videoExterno?has_content> 
83        										<div class="embed-responsive embed-responsive-16by9"> 
84        											<iframe class="embed-responsive-item" src="${videoExterno}" allowfullscreen="allowfullscreen"></iframe> 
85        										</div> 
86        								    <#elseif VideoInterno?has_content && VideoInterno != "" && VideoInterno != "{}"> 
87        										<div class="embed-responsive embed-responsive-16by9"> 
88        											<div class="embed-responsive embed-responsive-16by9"> 
89														<#if imagenVideo?? && imagenVideo?has_content> 
90															<#if imagenVideo?has_content> 
91																<video controls poster="${imagenVideo}" preload="metadata"> 
92																	<source src="${VideoInterno}" type="video/mp4"> 
93																	<source src="${VideoInterno}" type="video/ogg" /> 
94																	<source src="${VideoInterno}" type="video/webm" /> 
95																</video> 
96															<#else> 
97																<video controls preload="metadata"> 
98																	<source src="${VideoInterno}#t=1" type="video/mp4"> 
99																	<source src="${VideoInterno}#t=1" type="video/ogg" /> 
100																	<source src="${VideoInterno}#t=1" type="video/webm" /> 
101																</video> 
102															</#if> 
103														<#else> 
104															<video controls preload="metadata"> 
105																<source src="${VideoInterno}#t=1" type="video/mp4"> 
106																<source src="${VideoInterno}#t=1" type="video/ogg" /> 
107																<source src="${VideoInterno}#t=1" type="video/webm" /> 
108															</video> 
109														</#if> 
110													</div> 
111        										</div> 
112        								    </#if> 
113    									</div> 
114                                    </div> 
115    							<#elseif Imagen?has_content> 
116    								<div class="imgNews float-left"> 
117    									<img src="${Imagen}" alt="${curEntry.getTitle(locale)}" class="cornerBR" /> 
118    									<div class="dateNews"> 
119    										<div class="calendar"></div> 
120    										<span>${entryDate?string["dd/MM/yyyy"]}</span> 
121    									</div> 
122    								</div> 
123    							</#if> 
124 
125 
126								<#-- TEXTO --> 
127								<div class="textNews"> 
128									${Noticia} 
129								</div> 
130								<#-- ENLACE --> 
131								<#if TextoEnlace?has_content> 
132									 <#if isJson(link)> 
133                                            <#assign docJson = jsonFactoryUtil.createJSONObject(link)> 
134                                            <#assign doc = "/documents/" + docJson.groupId + "/" + docJson.uuid > 
135                                     </#if> 
136									<a href="${doc}" title="${TextoEnlace}" class="button-primary" target="${Ventana}">${TextoEnlace}</a> 
137								</#if> 
138								<#-- PDF --> 
139								<#if TextoPDF?has_content> 
140									<#if LinkPDF?has_content> 
141										<#assign link=LinkPDF> 
142									<#else> 
143										<#assign link=FilePDF> 
144									</#if> 
145									<#if isJson(link)> 
146                                        <#assign docJson = jsonFactoryUtil.createJSONObject(link)> 
147                                        <#assign doc = "/documents/" + docJson.groupId + "/" + docJson.uuid > 
148                                    </#if> 
149									<a href="${doc}" title="${TextoPDF}" class="button-primary" target="${VentanaPDF}"> 
150										${TextoPDF} 
151										<span class="icon-downloadFile"></span> 
152									</a> 
153								</#if> 
154							</li> 
155						</#if> 
156					</#list> 
157				</ul> 
158			</div> 
159		</div> 
160	</div> 
161<#else> 
162<div class="journal-content-article text-center"> 
163    <br><br> 
164    <p>No se han encontrado resultados.</p> 
165</div> 
166</#if> 
167 
168 
169<#function isJson json> 
170    <#local value = json?trim> 
171    <#return value?has_content && value?starts_with("{") && value?ends_with("}")> 
172</#function> 

This website uses its own and third-party cookies to improve the user experience and analyze their behavior in order to improve the service offered.
You can consult additional information about the cookies installed on our Cookies policy.

Cookie Settings

Cookie declaration

TECHNICAL

These cookies are exempt from compliance with article 22.2 of the LSSI in accordance with the recommendations indicated by the European authority on privacy and cookies. In accordance with the above and although configuration, acceptance or denial is not possible, the editor of this website offers information about them in an exercise of transparency with the user.

  • Name: LFR_Session_STATE_*, Provider: Liferay, Purpose: Manages the session as a registered user , Expiration: Session, Type: HTTP

  • Name: GUEST_LANGUAGE_ID, Provider: Liferay, Purpose: Determines the language with which you access , to show the same in the next session, Expiration: 1 year, Type: HTTP

  • Name: ANONYMOUS_USER_ID, Provider: Liferay, Purpose: Manages the session as an unregistered user , Expiration: 1 year, Type: HTTP

  • Name: COOKIE_SUPPORT, Provider: Liferay, Purpose: Identifies that the use of cookies for the operation of the portal, Expiration: 1 year, Type: HTTP

  • Name: JSessionID, Provider: Liferay, Purpose: Manages login and indicates who is using the site, Expiry: Session, Type: HTTP

  • Name: SACYRGDPR, Supplier: Sacyr, Purpose: Used to manage the cookie policy , Expiration: Session, Type: HTTP