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