AYUDAS Y SUBVENCIONES JCYL Y OTROS

Une erreur s'est produite en traitant le calibre.
Expression xPathSelector.selectSingleNode(rootElement) is undefined on line 139, column 63 in 10154#10194#431451.
1<style> 
2 
3#bloqueSubvenciones{ 
4	height:850px; 
5
6#bloqueSubvenciones .conjunto{ 
7	width:100%; 
8	display:none; 
9
10#bloqueSubvenciones .tablaSubvenciones{ 
11	background: #f3f3f2; 
12	height:850px; 
13	margin-bottom: -74px; 
14    margin-top: -5px; 
15
16 
17#bloqueSubvenciones .destacadoRotativo p{ 
18	padding: 5px; 
19    font-weight: 700; 
20	text-transform:none; 
21	text-align: justify; 
22
23#bloqueSubvenciones .destacadoRotativo{ 
24	box-shadow: 0 0 10px 0 #aaa; 
25	background: white; 
26	height:180px; 
27	margin-bottom: 15px; 
28	margin-left:0px; 
29	margin-right:0px; 
30	position:relative; 
31	display:none; 
32    text-align: center; 
33	width:100%; 
34
35 
36 
37#bloqueSubvenciones span.tituloOfertas { 
38	position: relative; 
39    display: block; 
40	padding: 5px; 
41    font-weight: 700; 
42	text-transform:uppercase; 
43	font-size: 15px; 
44
45 
46#bloqueSubvenciones .fechas { 
47	width:30%; 
48	display:inline-block; 
49	float:left; 
50    /*background: darkcyan;*/ 
51    color: white; 
52	height:180px; 
53    position: relative; 
54    border-top-left-radius: 5px; 
55    border-top-right-radius: 5px; 
56    border: 10px groove; 
57    padding-right: 0 !important; 
58    box-sizing: border-box; 
59
60 
61#bloqueSubvenciones .contenedorInformacion{ 
62	width:68%; 
63	height:180px; 
64	display:inline-block; 
65
66#bloqueSubvenciones .fechaOferta, .finPlazo{ 
67	font-size:25px; 
68	padding: 10px !important; 
69	width:40%; 
70	text-align:left !important; 
71	display:inline-block; 
72	line-height: 28px; 
73
74#bloqueSubvenciones .fechaOferta + p, .finPlazo + p{ 
75	font-size:25px; 
76	font-style:italic; 
77	width:48%; 
78	text-align:right; 
79	display:inline-block; 
80
81#bloqueSubvenciones .titulo { 
82	width: calc(100% - 10px); 
83    text-align: center; 
84    padding: 5px!important; 
85	font-size: 25px; 
86    line-height: 30px; 
87 
88
89 
90#bloqueSubvenciones .convoca{ 
91	border-radius: 0px; 
92	text-align:center; 
93	background: white; 
94	font-size: 1.5vw; 
95	padding-top: 5px !important; 
96
97#bloqueSubvenciones .convocante{ 
98	border-bottom:1px solid black; 
99	font-size: 25px; 
100    padding-bottom: 5px !important; 
101    font-style: italic; 
102    color: darkcyan; 
103    font-weight: 600 !important; 
104
105 
106#bloqueSubvenciones .destacadoRotativo div { 
107	padding:0; 
108	margin:0; 
109
110#bloqueSubvenciones .destacadoRotativo > div > p{ 
111	padding:0; 
112
113 
114 
115</style> 
116 
117<#if entries?has_content> 
118 
119<div id="bloqueSubvenciones" class="row-fluid"> 
120	 
121	<div class="tablaSubvenciones span12"> 
122		<#assign contador = 1 > 
123		<#assign contador2 = 1 > 
124		<#assign agrupacion = 1 > 
125		<#assign fechaFinOferta = ""> 
126		<#assign diaFinOferta = ""> 
127		<#assign mesFinOferta = ""> 
128		<#assign anioFinOferta = ""> 
129		<#assign fechaHoy = .now?long> 
130		<div class="${agrupacion} conjunto"> 
131		 
132	<#list entries as curEntry> 
133		<#assign renderer = curEntry.getAssetRenderer() > 
134            			<#assign className = renderer.getClassName() > 
135            				<#assign journalArticle = renderer.getArticle() > 
136            				<#assign document = saxReaderUtil.read(journalArticle.getContent()) > 
137            				<#assign rootElement = document.getRootElement() > 
138        						<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='titulo']/dynamic-content[@language-id='${themeDisplay.getLocale()}']")> 
139			                    <#assign titulo = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
140            					 
141								<#if titulo?length gt 140>			 
142								<#assign corte = titulo[0..140]?last_index_of(" ")> 
143								<#assign resumen = titulo[0..corte] + '...'> 
144								<#else> 
145								<#assign resumen = titulo> 
146								</#if> 
147								<#-- ********************** DEJO COMENTADA LA PARTE DE INFORMACION PORQUE EN PRINCIPIO CON EL TITULO ES SUFICIENTE 
148								 
149								 
150								<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='informacion']/dynamic-content[@language-id='${themeDisplay.getLocale()}']")> 
151								<#if xPathSelector.selectSingleNode(rootElement)??> 
152			                    <#assign informacion = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
153            					 <#else> 
154								<#assign informacion = ""> 
155								</#if> 
156								<#if informacion?length gt 320>			 
157								<#assign corte = informacion[0..320]?last_index_of(" ")> 
158								<#assign resumenInfo = informacion[0..corte] + '...'> 
159								<#else> 
160								<#assign resumenInfo = informacion> 
161								</#if> 
162								--> 
163								 
164								 
165								 
166								<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='convoca']/dynamic-content[@language-id='${themeDisplay.getLocale()}']")> 
167			                    <#assign convoca = xPathSelector.selectSingleNode(rootElement).getStringValue()>  
168								 
169								 
170								 
171            					<#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='aperturaPlazo']/dynamic-content[@language-id='${themeDisplay.getLocale()}']")> 
172								<#if xPathSelector.selectSingleNode(rootElement)??> 
173			                    <#assign aperturaPlazo = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
174			                    <#else> 
175								<#assign aperturaPlazo = ""> 
176								</#if> 
177								 
178								 
179			                    <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='finPlazo']/dynamic-content[@language-id='${themeDisplay.getLocale()}']")>	 
180								<#if xPathSelector.selectSingleNode(rootElement)??> 
181			                    <#assign finPlazo = xPathSelector.selectSingleNode(rootElement).getStringValue()> 
182								<#else> 
183								<#assign finPlazo = ""> 
184								</#if> 
185								 
186 
187			 
188			 
189			 <#if aperturaPlazo?has_content> 
190			<#assign fechaOferta = aperturaPlazo?number?number_to_date> 
191			<#assign diaOferta = fechaOferta?string["dd"]?number> 
192			<#if diaOferta?string?length == 1> 
193			<#assign diaOferta = 0 + diaOferta?string> 
194			</#if> 
195			<#assign mesOferta = fechaOferta?string["MM"]?number> 
196			<#if mesOferta?length == 1> 
197			<#assign mesOferta = 0 + mesOferta?string> 
198			</#if> 
199			<#assign anioOferta = fechaOferta?string["yyyy"]?number> 
200			<#else> 
201			<#assign fechaOferta = ""> 
202			<#assign diaOferta = ""> 
203			<#assign mesOferta = ""> 
204			<#assign anioOferta = ""> 
205			</#if> 
206			 
207			 
208			<#assign comprobarPlazo = "false" > 
209		 
210			 
211			<#if finPlazo?has_content> 
212			<#assign fechaFinOferta = finPlazo?number?number_to_date> 
213			<#assign diaFinOferta = fechaFinOferta?string["dd"]?number> 
214			<#if diaFinOferta?length == 1> 
215			<#assign diaFinOferta = 0 + diaFinOferta?string> 
216			</#if> 
217			<#assign mesFinOferta = fechaFinOferta?string["MM"]?number> 
218			<#if mesFinOferta?length == 1> 
219			<#assign mesFinOferta = 0 + mesFinOferta?string> 
220			</#if> 
221			<#assign anioFinOferta = fechaFinOferta?string["yyyy"]?number> 
222			 
223			<#if fechaHoy lte finPlazo?number> 
224			<#assign comprobarPlazo = "true" > 
225			</#if> 
226			 
227			</#if> 
228			 
229			 
230			 
231				 
232				 
233					 
234				<#if comprobarPlazo == "true"> 
235					<#if contador % 2 = 0> 
236					<div id="${contador}" class="destacadoRotativo " style="background:#EFECEC;"> 
237					<div class="contenedorInformacion"> 
238					<p class="convoca" style="background:#EFECEC;">Convoca</p> 
239					<p class="convocante" style="background:#EFECEC;">${convoca}</p> 
240					<p class="titulo" style="background:#EFECEC;">${resumen}</p> 
241					<#-- <p class="resumenInfo" style="background:#EFECEC;">${resumenInfo}</p> --> 
242					</div> 
243					<#else> 
244					 
245					<div id="${contador}" class="destacadoRotativo"> 
246					<div class="contenedorInformacion"> 
247					<p class="convoca" >Convoca</p> 
248					<p class="convocante">${convoca}</p> 
249					<p class="titulo">${resumen}</p> 
250					<#-- <p class="resumenInfo" style="background:#EFECEC;">${resumenInfo}</p> --> 
251					</div> 
252					</#if> 
253					 
254					 
255					<div class="fechas "<#if contador2 == 1 >style="background:#c53ba6;"<#elseif contador2==2>style="background:#ea620d;"<#elseif contador2 == 3>style="background:#97bf0d;"<#elseif contador2==4>style="background:#0e72b5;"<#else>style="background:red;"</#if>> 
256					<#if fechaOferta?has_content> 
257					<div class="" > 
258						<p class="fechaOferta">Fecha de inicio:</p> 
259						<p> ${diaOferta}/${mesOferta}/${anioOferta}</p> 
260					</div>	 
261					<#else> 
262					<div class=" " > 
263						<p class="fechaOferta">Fecha de inicio:</p> 
264						<p>No disponible</p> 
265					</div> 
266					</#if>	 
267					<#if fechaFinOferta?has_content> 
268					<div class=" " > 
269						<p class="finPlazo">Fecha fin de plazo:</p> 
270						<p>${diaFinOferta}/${mesFinOferta}/${anioFinOferta}</p> 
271					</div> 
272					<#else> 
273					<div> 
274					<p class="finPlazo">Fecha fin de plazo:</p> 
275					<p>No disponible</p> 
276					</div> 
277					</#if> 
278					</div> 
279					</div> 
280					<#if contador%4 == 0> 
281					 
282					</div> 
283					<#assign agrupacion = agrupacion + 1 > 
284					<div class="${agrupacion} conjunto" style="display:none;"> 
285					</#if> 
286				<#assign contador = contador + 1 > 
287				<#assign contador2 = contador2 + 1 > 
288				<#if contador2 gt 4> 
289				<#assign contador2 = 1 > 
290				</#if> 
291				 
292		</#if> 
293	</#list> 
294	 
295	</div> 
296	 
297		 
298	</div> 
299</div>	 
300</#if> 
301 
302<script> 
303	var contadorUnidad=1; 
304	var agrupacion=1; 
305	irMostrandoUnitariamente(); 
306function irMostrandoUnitariamente(){ 
307 
308	if( (contadorUnidad>1) && ((contadorUnidad - 1)  % 4 == 0)){	 
309		$('.conjunto').hide(); 
310		agrupacion = agrupacion +1; 
311		$('.'+agrupacion).show(); 
312		$('#'+contadorUnidad).css('display','block'); 
313		contadorUnidad = contadorUnidad +1; 
314
315	else{ 
316	$('.'+agrupacion).show(); 
317	$('#'+contadorUnidad).css('display','block'); 
318	contadorUnidad = contadorUnidad +1; 
319
320	 
321 
322 
323if(contadorUnidad >=  ${contador} ){ 
324	$('.destacadoRotativo').css('display','none'); 
325	 contadorUnidad=1; 
326	 agrupacion=1; 
327
328 
329	 
330setTimeout("irMostrandoUnitariamente()",5000); 
331
332 
333 
334	/*irMostrando(); 
335	var contador=1; 
336	function irMostrando(){ 
337	if(contador < ${agrupacion}){ 
338		$('.conjunto').hide(); 
339		$('.'+contador).show(); 
340		contador = contador +1; 
341	}else{ 
342		contador = 1; 
343 
344
345	setTimeout("irMostrando()",12000); 
346	}*/ 
347</script>