Catálogos provinciales de Paisaje de Andalucía

| Media: 1.0 | Votos: 3
Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy869.getLatestArticle(long)" threw an exception when invoked on com.sun.proxy.$Proxy869 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@7d157dc8"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign articleImgVinculada = journal...  [in template "20115#20151#1583006" at line 630, column 41]
----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
2<#assign dlFileEntryService = serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService')/> 
3<#assign dlFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
4<#assign assentEntryLocalService = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService')/> 
5<#assign commonServiceApiService = serviceLocator.findService("es.juntadeandalucia.cma.global.common.services.api.CommonServiceApi")/> 
6<#assign formaterDate = commonServiceApiService.getFormatDate() /> 
7<#assign formatos = ['.epub','.zip','.torrent','.pdf','.xlsx'] /> 
8<#--  <#assign formaterDate = "dd 'de' MMMM 'de' yyyy" />  --> 
9<#assign enlace = "" /> 
10<#assign noText = true> 
11<#assign noImg = true> 
12<#assign noImgApartado = true> 
13 
14<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
15<#assign httpServletRequest = serviceContext.getRequest()> 
16<#assign pvGroupId = ""> 
17<#assign pvArticleId = ""> 
18<#assign pvStatus = ""> 
19 
20<#assign stringURL = "${themeDisplay.getURLCurrent()}" /> 
21<#--<h1>CurrentURL. ${stringURL}</h1> 
22<h1>valueParamURL. ${valueParamURL[1]}</h1> 
23<#assign url = themeDisplay.getURLCurrent()>--> 
24<#if stringURL?contains("?groupId=")> 
25<#assign pvGroupId ="${(httpServletRequest.getParameter('groupId'))}"> 
26 
27<#else> 
28<#assign pvGroupId = ""> 
29</#if> 
30 
31<#if stringURL?contains("&articleId=")> 
32<#assign pvArticleId ="${(httpServletRequest.getParameter('articleId'))}"> 
33 
34<#else> 
35<#assign pvArticleId = ""> 
36</#if> 
37 
38<#if stringURL?contains("&status=")> 
39<#assign pvStatus ="${(httpServletRequest.getParameter('status'))}"> 
40 
41<#else> 
42<#assign pvStatus = ""> 
43</#if> 
44 
45<#if pvGroupId?has_content && pvArticleId?has_content && pvStatus?has_content> 
46<#assign jCurEntry = journalArticleLocalService.fetchLatestArticle(pvGroupId?number, pvArticleId?string, pvStatus?number)> 
47<#assign aArticleXML = saxReaderUtil.read(jCurEntry.getContentByLocale(locale)) /> 
48<#assign tituloXML = jCurEntry.getTitle(locale)> 
49<#assign fechaMostrar = aArticleXML.selectSingleNode("//dynamic-element[@name='Fecha2ehn']//dynamic-content/text()") > 
50<#assign listadoImagenes = commonServiceApiService.getImgIndice(aArticleXML)> 
51 
52<div class="evr-detalle evr-wysiwyg"> 
53 
54		<#if fechaMostrar.getText() != ""> 
55			<#assign fechaMostrarEstructuraBasico_Data = getterUtil.getString(fechaMostrar.getText())> 
56			<#if validator.isNotNull(fechaMostrarEstructuraBasico_Data)> 
57				<#assign fechaMostrarEstructuraBasico_DateObj = dateUtil.parseDate("yyyy-MM-dd", fechaMostrarEstructuraBasico_Data, locale)> 
58				<p class="evr-normativa-detalle__date-color">${dateUtil.getDate(fechaMostrarEstructuraBasico_DateObj, formaterDate, locale)}</p> 
59			</#if> 
60		</#if> 
61 
62		<#assign listadoSubtitulosEstructuraBasico =aArticleXML.selectSingleNode("//dynamic-element[@name='subtitulosEstructuraBasicoFieldSet']") > 
63		<#assign ficheroSubtituloEstructuraBasico = listadoSubtitulosEstructuraBasico.selectNodes("//dynamic-element[@name='subtituloEstructuraBasico']//dynamic-content/text()") > 
64		<#list ficheroSubtituloEstructuraBasico as ficheroSub> 
65			<#if ficheroSub.getText()?has_content> 
66				<p class="evr-subtitle">${ficheroSub.getText()}</p> 
67			</#if> 
68		</#list> 
69 
70		<#assign textoEstructuraBasicoX = aArticleXML.selectSingleNode("//dynamic-element[@name='textoEstructuraBasico']//dynamic-content/text()") > 
71		<#if textoEstructuraBasicoX?has_content && textoEstructuraBasicoX.getText() != ""> 
72			<#assign noText = false> 
73		</#if> 
74		<#assign imagenEstructuraIndiceX = aArticleXML.selectNodes("//dynamic-element[@name='imagenEstructuraIndice']//dynamic-content/text()") > 
75		<#assign textoAlternativoImagen = "" > 
76		<#assign pos = "" > 
77		<#assign imgR = "" > 
78		<#assign piex = "" > 
79		<#assign ficherox = "" > 
80		<#assign i = 1 > 
81		<#list imagenEstructuraIndiceX as ficheroImagen> 
82			<#if ficheroImagen.getText()?has_content> 
83				<#if i == 1> 
84					<#assign ficherox = ficheroImagen.getText() > 
85				</#if> 
86				<#if i == 2> 
87					<#assign pos = ficheroImagen.getText() > 
88				</#if> 
89				<#if i == 3> 
90					<#assign imgR = ficheroImagen.getText() > 
91				</#if> 
92				<#if i == 4> 
93					<#assign piex = ficheroImagen.getText() > 
94				</#if> 
95				<#if i == 5> 
96					<#assign textoAlternativoImagen = ficheroImagen.getText() > 
97				</#if> 
98			</#if> 
99			<#assign i = i+1 > 
100		</#list> 
101 
102		<#if ficherox?has_content && ficherox != "Izquierda" && ficherox != "CentroDeBajo" && ficherox != "CentroEncima " && ficherox != "Derecha"> 
103			<#assign listadoImagenes = commonServiceApiService.getImgIndice(aArticleXML)> 
104			<#if listadoImagenes?? && listadoImagenes?has_content> 
105				<#list 0 ..< listadoImagenes.length() as k> 
106					<#assign ficheroImagenEstructuraIndiceXML = listadoImagenes.get(k).ficheroImagenEstructuraIndiceXML> 
107					<#assign idImagenVinculadaXML = listadoImagenes.get(k).idImagenVinculadaXML> 
108					<#if (ficheroImagenEstructuraIndiceXML?? && ficheroImagenEstructuraIndiceXML?has_content) || (idImagenVinculadaXML?? && idImagenVinculadaXML?has_content)> 
109						<#assign noImg = false> 
110					</#if> 
111				</#list> 
112			</#if> 
113		</#if> 
114 
115 
116		<#assign textoEstructuraBasicoX = aArticleXML.selectSingleNode("//dynamic-element[@name='textoEstructuraBasico']//dynamic-content/text()") > 
117		<div class="evr-detalle__box-text evr-detalle__txt <#if noText == true> evr-detalle__no-text </#if> <#if noImg == true> evr-detalle__no-img </#if> <#if noText == false && noImg == false> evr-detalle-complete</#if>"> 
118			<#if textoEstructuraBasicoX?has_content  && textoEstructuraBasicoX.getText() != ""> 
119			<div class="evr-detalle__box-text  evr-detalle__txt  <#if noText == false && (imagenEstructuraIndice.ficheroImagenEstructuraIndice?? && imagenEstructuraIndice.ficheroImagenEstructuraIndice.getData()?has_content) || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content)> evr-detalle__box-text--primary evr-detalle__flex--column</#if>"> 
120				<div class="evr-detalle__carr"> 
121 
122					<#if listadoImagenes?? && listadoImagenes?has_content> 
123						<#list 0 ..< listadoImagenes.length() as k> 
124							<#assign ficheroImagenEstructuraIndiceXML = listadoImagenes.get(k).ficheroImagenEstructuraIndiceXML> 
125							<#assign idPosicionImagenXML = listadoImagenes.get(k).idPosicionImagenXML> 
126							<#assign idImagenVinculadaXML = listadoImagenes.get(k).idImagenVinculadaXML> 
127							<#assign textoPieImagenEstructuraIndiceXML = listadoImagenes.get(k).textoPieImagenEstructuraIndiceXML> 
128							<#assign textoAlternativoImagenEstructuraIndiceXML = listadoImagenes.get(k).textoAlternativoImagenEstructuraIndiceXML> 
129 
130							<#if (ficheroImagenEstructuraIndiceXML?? && ficheroImagenEstructuraIndiceXML?has_content) || (idImagenVinculadaXML?? && idImagenVinculadaXML?has_content)> 
131								<#assign posicion = idPosicionImagenXML /> 
132								<#if posicion=="Izquierda"> 
133									<#assign clase = "evr-detalle__box  evr-detalle__box--flex-left"/> 
134								<#elseif posicion=="Derecha"> 
135									<#assign clase = "evr-detalle__box  evr-detalle__box--flex"/> 
136								<#elseif posicion="CentroDeBajo"> 
137									<#assign clase = "evr-detalle__box  evr-detalle__box--flex-down"/> 
138								<#elseif posicion="CentroEncima"> 
139									<#assign clase = "evr-detalle__box  evr-detalle__box--flex-top"/> 
140								</#if> 
141							</#if> 
142							<div class="<#if clase?has_content>${clase}</#if>"> 
143								<#if (ficheroImagenEstructuraIndiceXML?? && ficheroImagenEstructuraIndiceXML?has_content) || (idImagenVinculadaXML?? && idImagenVinculadaXML?has_content)> 
144									<div class="evr-detalle__box-figure"> 
145										<#if ficheroImagenEstructuraIndiceXML?? && ficheroImagenEstructuraIndiceXML?has_content > 
146											<figure class="evr-detalle__fig "> 
147												<img class="evr-detalle__img" <#if textoAlternativoImagenEstructuraIndiceXML?has_content> alt='${textoAlternativoImagenEstructuraIndiceXML}' <#else> alt='${ficheroImagenEstructuraIndiceXML}' </#if> src="${ficheroImagenEstructuraIndiceXML}" /> 
148												<#if textoPieImagenEstructuraIndiceXML?? && textoPieImagenEstructuraIndiceXML?has_content> 
149													<p class="evr-detalle__figcaption"><#if textoPieImagenEstructuraIndiceXML?has_content>${textoPieImagenEstructuraIndiceXML}</#if></p> 
150												</#if> 
151											</figure> 
152										<#elseif idImagenVinculadaXML?? && idImagenVinculadaXML?has_content> 
153											<#assign imgVinculada = idImagenVinculadaXML?eval /> 
154											<#assign classPKImgVinculada = imgVinculada.classPK?number /> 
155											<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
156											<#assign articleImgVinculada = journalArticleLocalService.getLatestArticle(classPKImgVinculada) /> 
157											<#assign aArticleXMLImgVinculada = saxReaderUtil.read(articleImgVinculada.getContent()) /> 
158											<#assign ficheroEstructuraImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
159											<#assign titulo = articleImgVinculada.getTitle(locale) /> 
160											<#assign descripcion = articleImgVinculada.getDescription(locale) /> 
161											<#if ficheroEstructuraImagen?has_content> 
162												<figure class="evr-detalle__fig playimagevinc " style="position: relative;"> 
163													<img  class="evr-detalle__img"  <#if cur_item.textoAlternativoImagenEstructuraIndice?has_content> alt='${cur_item.textoAlternativoImagenEstructuraIndice.getData()}' <#else> alt='${titulo}' </#if>  src="${ficheroEstructuraImagen?ensure_starts_with("/medioambiente/portal")}" data-descripcion="${descripcion}" data-titulo="${titulo}" /> 
164													<#if cur_item.textoPieImagenEstructuraIndice.getData()?has_content> 
165														<p class="evr-detalle__figcaption"><#if cur_item.textoPieImagenEstructuraIndice?has_content>${cur_item.textoPieImagenEstructuraIndice.getData()}</#if></p> 
166													</#if> 
167												</figure> 
168											</#if> 
169										</#if> 
170									</div> 
171								</#if> 
172							</div> 
173						</#list> 
174					</#if> 
175 
176					<#--  GALERIA IMAGEN PRINCIPAL  --> 
177					<#assign idGaleriaVinculadaXML = aArticleXML.selectSingleNode("//dynamic-element[@name='idGaleriaVinculada']//dynamic-content/text()") > 
178					<#if idGaleriaVinculadaXML?? && idGaleriaVinculadaXML.getText()?has_content> 
179					<#assign idGale = idGaleriaVinculadaXML.getText()?eval /> 
180					<#assign classPKGaleria = idGale.classPK?number /> 
181					<#assign gal = journalArticleLocalService.getLatestArticle(classPKGaleria) /> 
182					<#assign aArticleXMLGaleria = saxReaderUtil.read(gal.getContent()) /> 
183					<#assign staticfile = aArticleXMLGaleria.selectNodes("//dynamic-element[@name='IdImagenEstructuraGaleria']//dynamic-content") /> 
184					<#assign tituloG = gal.getTitle(locale) /> 
185					<#assign descripcion = gal.getDescription(locale) /> 
186					<#assign entryId = gal.getArticleId()/> 
187					<#--  Obtener enlace Galeria Imagenes  --> 
188					<#assign assetEntryLocalServiceUtilG = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
189					<#assign jaPrimKey = gal.getResourcePrimKey()/> 
190					<#assign assetEntry = assetEntryLocalServiceUtilG.fetchEntry("com.liferay.journal.model.JournalArticle",jaPrimKey?number) /> 
191					<#assign enlace = commonServiceApiService.getEnlace(themeDisplay,assetEntry.getClassPK(),assetEntry.getEntryId())> 
192					<#assign webCont = aArticleXMLGaleria.selectNodes("//dynamic-element[@name='idContenidoWebGaleria']//dynamic-content")!"" /> 
193					<#if staticfile?has_content || webCont?has_content && webCont != ""> 
194					<div class="evr-detalle__margin"> 
195						<p class="evr-galery__subtitle">${tituloG}</p> 
196						<div class="evr-galery__carrousel evr-detailsnews__carousel " data-detail-carrousel='initial'> 
197							<#if staticfile?has_content> 
198								<#list staticfile as i> 
199									<#if i?? && i?has_content> 
200										<#assign selectValue = i.getText() /> 
201										<figure class="evr-galery__carrousel-fig evr-modal-selector  playimag" data-toggle='modal' > 
202											<img class="evr-galery__carrousel-img" src="${selectValue}" data-title="${tituloG}" data-desc="${descripcion}" data-galery="${enlace}" /> 
203										</figure> 
204									</#if> 
205								</#list> 
206							</#if> 
207							<#if webCont?has_content> 
208								<#list webCont as i> 
209									<#if i?? && i?has_content> 
210										<#assign selectValue = i.getText() /> 
211										<#if selectValue?has_content> 
212											<#assign jSData = i.getData()?eval /> 
213											<#assign classPKImg = jSData.classPK?number /> 
214											<#assign articleImgVinculada = journalArticleLocalService.getLatestArticle(classPKImg) /> 
215											<#assign aArticleXMLImgVinculada = saxReaderUtil.read(articleImgVinculada.getContent()) /> 
216											<#assign ficheroEstructuraImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
217											<#assign ficheroEstructuraImagen = ficheroEstructuraImagen?replace("/medioambiente", "")/> 
218											<#assign altImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='textoAlternativoEstructuraImagen']/dynamic-content/text()") /> 
219											<figure class="evr-galery__carrousel-fig evr-modal-selector  playimag" data-toggle='modal'> 
220												<img class="evr-galery__carrousel-img" src="${ficheroEstructuraImagen?ensure_starts_with('/medioambiente/portal')}" alt="${altImagen}" data-title="${tituloG}" data-galery="${enlace}" data-desc="${descripcion}"/> 
221											</figure> 
222										</#if> 
223									</#if> 
224								</#list> 
225							</#if> 
226						</div> 
227						<div class="evr-galery__carrousel evr-galery__carrousel--small" data-detail-carr-nav='initial'> 
228							<#if staticfile?has_content> 
229								<#list staticfile as i> 
230									<#if i?? && i?has_content> 
231										<#assign selectValue = i.getText() /> 
232										<figure class="evr-galery__carrousel-fig " > 
233											<img class="evr-galery__carrousel-img" src="${selectValue}" alt="${tituloG}"> 
234										</figure> 
235									</#if> 
236								</#list> 
237							</#if> 
238							<#if webCont?has_content> 
239								<#list webCont as i> 
240									<#if i?? && i?has_content> 
241										<#assign selectValue = i.getText() /> 
242										<#if selectValue?has_content> 
243											<#assign jSData = i.getData()?eval /> 
244											<#assign classPKImg = jSData.classPK?number /> 
245											<#assign articleImgVinculada = journalArticleLocalService.getLatestArticle(classPKImg) /> 
246											<#assign aArticleXMLImgVinculada = saxReaderUtil.read(articleImgVinculada.getContent()) /> 
247											<#assign ficheroEstructuraImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
248											<#assign ficheroEstructuraImagen = ficheroEstructuraImagen?replace("/medioambiente", "")/> 
249											<#assign altImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='textoAlternativoEstructuraImagen']/dynamic-content/text()") /> 
250											<figure class="evr-galery__carrousel-fig"> 
251												<img class="evr-galery__carrousel-img" src="${ficheroEstructuraImagen?ensure_starts_with('/medioambiente/portal')}" alt="${altImagen}"/> 
252											</figure> 
253										</#if> 
254									</#if> 
255								</#list> 
256							</#if> 
257						</div> 
258						<div> 
259							</#if> 
260							</#if> 
261							<#--  FIN GALERIA IMAGEN PRINCIPAL  --> 
262						</div> 
263						${textoEstructuraBasicoX.getText()} 
264					</div> 
265					</#if> 
266 
267 
268						<#if apartadoEstructuraIndice?? && apartadoEstructuraIndice?has_content> 
269							<div class="evr-lis_lista_top_description"> 
270							<#assign listaIndicesOrdenada = []> 
271							<#assign listaIndicesOrdenada = commonServiceApiService.getApartadoIndiceOrdenadoXML(aArticleXML) /> 
272							<#assign index = 0> 
273							<#assign counter = 0> 
274							<#assign lastIndex = -999999> 
275							<#if listaIndicesOrdenada?? && listaIndicesOrdenada?has_content> 
276								<#list listaIndicesOrdenada as cur> 
277									<#assign class = ""> 
278									<#if cur.getIndice()?has_content> 
279										<#assign class = "nivelindice"> 
280										<#assign class = class + (cur.getIndice()?split(".")?size-1)?string> 
281									</#if> 
282									<#assign index = index + 1> 
283									<#assign indexString = (index)?string> 
284									<div class="${class}"> 
285									<#--  TITULO  --> 
286									<#if cur.getTitulo()?has_content> 
287										<a class="evr-detalle__subtitle evr-detalle__subtitle--primary evr-desple " data-despleg data-toggle="collapse" href="#collapseService${indexString}" role="button" aria-expanded="false" aria-controls="collapseService"> 
288											${cur.getTitulo()} 
289										</a> 
290									</#if> 
291									<#if (cur.getDescripcion()?? && cur.getDescripcion()?has_content) || (cur.getFicheroAdjunto()?? && cur.getFicheroAdjunto()?has_content && cur.getFicheroAdjunto() != "") || (cur.getEnlaces()?? && cur.getEnlaces()?has_content && cur.getTextoEnlace()?? && cur.getTextoEnlace()?has_content)> 
292										<#--  IMAGEN --> 
293										<#assign imgMostrar = "" /> 
294										<#assign src = "" /> 
295										<#if cur.getAlt()?has_content> 
296											<#assign alt = cur.getAlt()> 
297										<#else> 
298											<#assign alt = .vars['reserved-article-title'].data> 
299										</#if> 
300										<#if cur.getImagen()?has_content> 
301											<#assign src = cur.getImagen() /> 
302										<#elseif cur.getImagenVinculada()?has_content> 
303											<#assign vImagen = cur.getImagenVinculada() /> 
304											<#assign data = vImagen?eval /> 
305											<#assign classPK2 = data.classPK?number> 
306											<#assign className = data.className /> 
307											<#assign obj = journalArticleLocalService.getLatestArticle(classPK2) /> 
308											<#assign structure = obj.getDDMStructure() /> 
309											<#assign structureName = structure.getName(locale) /> 
310											<#if structureName == "Imagen" > 
311												<#assign aArticleXML= saxReaderUtil.read(obj.getContent()) /> 
312												<#if obj.getTitle(locale)?has_content> 
313												<#-- <script> 
314														var tituloVIMG = '${obj.getTitle(locale)}'; 
315														var descripcionVIMG = '${obj.getDescription(locale)}'; 
316													</script>--> 
317												</#if> 
318												<#assign objContentImagen = aArticleXML.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
319												<#assign alt = aArticleXML.valueOf("//dynamic-element[@name='textoAlternativoEstructuraImagen']/dynamic-content/text()") /> 
320												<#assign titulo = obj.getTitle(locale) /> 
321												<#assign tituloVIMG = obj.getTitle(locale) /> 
322												<#assign descripcionVIMG = obj.getDescription(locale) /> 
323												<#if objContentImagen?has_content> 
324													<#assign imgMostrar = objContentImagen?ensure_starts_with("/medioambiente/portal") /> 
325													<#if !alt?has_content || alt==""> 
326														<#assign alt = titulo/> 
327													</#if> 
328												</#if> 
329											</#if> 
330										</#if> 
331										<div class="evr-detalle__box collapse" id="collapseService${indexString}" > 
332											<div class="evr-detalle__box-text <#if src == '' && imgMostrar == ''> evr-detalle__box-no-img-apartado <#else> evr-detalle__txt evr-detalle__box-text--primary </#if>"> 
333												<#--  DESCRIPCION  --> 
334												<#if cur.getDescripcion()?has_content> 
335													<div class="evr-detalle__txt"> 
336														<#if src?? && src?has_content> 
337															<div class="evr-detalle__box-figure evr-detalle__box-figure--primary"> 
338																<figure class=" "> 
339																	<img class="evr-detalle__img-lateral" src="${src}" <#if alt?has_content> alt="${alt}"</#if> <#if cur.getAlt()?has_content></#if> /> 
340																	<p class="evr-detailsnews__details-figure"><#if cur.getPieImagen()?has_content>${cur.getPieImagen()}</#if></p> 
341																</figure> 
342															</div> 
343														<#elseif imgMostrar?? && imgMostrar?has_content> 
344															<div class="evr-detalle__box-figure evr-detalle__box-figure--primary"> 
345																<figure class="playimagevinc "> 
346																	<img class="evr-detalle__img-lateral " data-titulo="${titulo}" data-descripcion="${descripcionVIMG}" src="${imgMostrar}" <#if alt?has_content> alt="${alt}"</#if> <#if cur.getAlt()?has_content></#if> /> 
347																	<p class="evr-detailsnews__details-figure"><#if cur.getPieImagen()?has_content>${cur.getPieImagen()}</#if></p> 
348																</figure> 
349															</div> 
350														</#if> 
351														${cur.getDescripcion()} 
352													</div> 
353												</#if> 
354												<#--  ENLACE DESCARGA  --> 
355												<#if cur.getFicheroAdjunto()?? && cur.getFicheroAdjunto()?has_content && cur.getFicheroAdjunto() != ""> 
356													<#assign uuId = cur.getFicheroAdjunto()?split("/")?last?split("?")[0] /> 
357													<#assign scope = cur.getFicheroAdjunto()?split("/documents/")?last?split("/")?first> 
358													<#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(uuId, scope?number)> 
359													<#assign tamanoMb = tFichero(file.getSize()) /> 
360													<#if file.getTitle()?contains(".")> 
361														<#assign nombreFMod = file.getTitle()?split(".")[0] /> 
362													<#else> 
363														<#assign nombreFMod = file.getTitle() /> 
364													</#if> 
365													<#if file.getTitle()?split(".")[1]??> 
366													<#--  <#assign tamañoMb = tFichero(file.getSize()) />  --> 
367														<#assign fFormato = file.getTitle()?split(".")[1]?upper_case /> 
368														<#assign archivoAdjuntoA = cur.getFicheroAdjunto() /> 
369													</#if> 
370													<#if cur.getTextoEnlace()?has_content> 
371														<#assign titleA = cur.getTextoEnlace()/> 
372													<#else> 
373														<#assign titleA = cur.getFicheroAdjunto()?split("/")?last?split("?")[0] /> 
374													</#if> 
375													<#if fFormato?? && fFormato?has_content> 
376														<a class="evr-detalle__link evr-detalle__link--download" download="" href="${cur.getFicheroAdjunto()}"> 
377															<span class=""><@liferay.language key="descargar"/> ${fFormato} (${tamanoMb}MB)</span> 
378														</a> 
379													</#if> 
380												</#if> 
381												<#if cur.getEnlaces()?has_content && cur.getTextoEnlace()?has_content> 
382													<p class="evr-normativa-descarga"> 
383														<a class="evr-detalle__link" href="${cur.getEnlaces()}" <#if cur.getTextoEnlace()?has_content></#if>> 
384															<#--  <img alt="<@liferay.language key='incono.download.svg'/>" class="evr-normativa-detalle__boja-style" src="${themeDisplay.getPathThemeImages()}/iconos_portal_SVG/Grupo 1326.svg"> ${cur.getTextoEnlace()}  --> 
385															<span class="">${cur.getTextoEnlace()}</span> 
386														</a> 
387													</p> 
388												</#if> 
389											</div> 
390										</div> 
391									</#if> 
392									<#assign currentIndex = (cur.getIndice()?split(".")?size-1)> 
393									<#assign total = listaIndicesOrdenada?size> 
394									<#if counter + 1 < total> 
395										<#assign nextElement = listaIndicesOrdenada[counter + 1]> 
396										<#assign nextIndex = (nextElement.getIndice()?split(".")?size-1)> 
397									<#else> 
398										<#assign nextIndex = 0> 
399									</#if> 
400									<#if currentIndex < nextIndex> 
401									<#elseif currentIndex == nextIndex > 
402									</div> 
403							<#else> 
404								<#assign total_number = currentIndex - nextIndex> 
405								<#list 0..total_number as i> 
406									</div> 
407								</#list> 
408							</#if> 
409						<#assign counter = counter + 1> 
410						</#list> 
411						</#if> 
412						</div> 
413						</#if> 
414				<div> 
415					<div> 
416						<#function tFichero fichero> 
417							<#assign tamanoF = (fichero/1024)/1024 /> 
418							<#if tamanoF?split(".")[0]?number == 0 > 
419								<#assign tamanoF = 0.01 /> 
420							</#if> 
421							<#return (tamanoF?string["0.##"]) /> 
422						</#function> 
423						<script> 
424							$( document ).ready(function() { 
425var lateralPics = $(".evr-detalle__img-lateral").length; 
426var detallePics = $(".evr-detalle__img").length; 
427var loadedLateral = 0; 
428var loadedDetalle = 0; 
429$(".evr-detalle__img-lateral").each(function() { 
430let foto = new Image() 
431foto.onload = () => { 
432let ancho=foto.naturalWidth; 
433let parentElem = $(this).closest('figure').length > 0 ? $(this).closest('figure') : $(this).parent(); 
434if(ancho>740){ 
435if(!$(parentElem).hasClass("playimagevinc")){ 
436$(parentElem).addClass("playimag"); 
437$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
438}else{ 
439$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
440
441									}else{ 
442$(parentElem).removeClass("playimagevinc"); 
443$(parentElem).removeClass("evr-imagen-detalle__icon-ampliacion"); 
444
445									loadedLateral++; 
446									if(loadedDetalle === detallePics && loadedLateral === lateralPics)  poPupEmergenteImagenesVideos(); 
447
448								foto.src=$(this).attr("src"); 
449							}); 
450							$(".evr-detalle__img").each(function() { 
451let foto = new Image() 
452foto.onload = () => { 
453let ancho=foto.naturalWidth; 
454let parentElem = $(this).closest('figure').length > 0 ? $(this).closest('figure') : $(this).parent(); 
455if(ancho>740){ 
456if(!$(parentElem).hasClass("playimagevinc")){ 
457$(parentElem).addClass("playimag"); 
458$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
459}else{ 
460$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
461
462									}else{ 
463$(parentElem).removeClass("playimagevinc"); 
464$(parentElem).removeClass("evr-imagen-detalle__icon-ampliacion"); 
465 
466
467									loadedDetalle++; 
468									if(loadedDetalle === detallePics && loadedLateral === lateralPics)  poPupEmergenteImagenesVideos(); 
469
470								foto.src=$(this).attr("src"); 
471							}) 
472								//poPupEmergenteImagenesVideos(); 
473							}); 
474							$('.evr-galery__carrousel-fig').parent().on('afterChange', function(event, slick, currentSlide){ 
475let $el = $(".evr-galery__carrousel-fig.slick-slide.slick-current.slick-active").first(); 
476$('[data-showpieimg="true"]').addClass('hidden'); 
477$('[data-showpieimg="true"][data-pieimg="'+$el.attr("data-pieimg")+'"]').removeClass("hidden"); 
478}); 
479							$('.evr-detalle__subtitle.evr-detalle__subtitle--primary.evr-desple').click( 
480								function(){ $(this).toggleClass('poser') }, 
481								function(){ $(this).toggleClass('poser') } 
482							); 
483							$('.evr-detalle__subtitle.evr-detalle__subtitle--primary.evr-desple').click( 
484								function(){ $(this).focus() }, 
485								function(){ $(this).blur() } 
486							); 
487						</script> 
488						<style> 
489.evr-detalle__subtitle{ 
490width: auto; 
491
492.evr-detalle__link{ 
493display: inline; 
494
495.evr-lis_lista_top{ 
496position: relative; 
497top: 10px; 
498width: 100% !important; 
499
500.evr-lis_lista_top_img{ 
501position: relative; 
502top: 10px; 
503width: 68% !important; 
504
505.evr-lis_lista_top_description{ 
506position: relative; 
507width: 68% !important; 
508
509@media only screen and (max-width: 768px){ 
510.evr-lis_lista_top_img{ 
511position: relative; 
512top: 10px; 
513width: 100% !important; 
514
515.evr-lis_lista_top_description{ 
516width: 100% !important; 
517
518.evr-detalle__txt img { 
519margin: 0; 
520
521.evr-detalle__box-text--primary { 
522width: 100%!important; 
523
524.nivelindice0 .evr-detalle__box-text { 
525width: 100%; 
526
527.evr-detalle__box-figure--primary{ 
528width: 100%!important; 
529margin-right:0px; 
530display: inline-block; 
531
532.nivelindice0 .evr-detalle__box-text { 
533width: 100%!important; 
534
535
536.evr-detalle__txt { 
537overflow: initial; 
538
539 
540.evr-detalle__no-text { 
541display: flex; 
542flex-wrap: wrap; 
543flex-direction: row-reverse; 
544width:100%; 
545
546 
547.evr-detalle-complete { 
548display: flex; 
549flex-wrap: wrap; 
550
551.nivelindice0 .evr-detalle__box-text { 
552width: 75%; 
553
554.evr-detalle__box-text--primary { 
555width: 100%; 
556
557.evr-detalle__box-figure--primary{ 
558width: 25%; 
559margin-right:100px; 
560display: inline-block; 
561
562.evr-detalle__no-img .evr-lis_lista_top_description { 
563width: 100%!important; 
564
565.evr-detalle__no-img .evr-detalle__box-figure--primary { 
566margin-right: 0; 
567
568.evr-detalle__no-img { 
569padding-right: 0; 
570
571.evr-detalle-complete .evr-lis_lista_top_description { 
572width: 100% !important; 
573
574.nivelindice0 .evr-detalle__box-text.evr-detalle__box-no-img-apartado { 
575width: 100%; 
576
577</style> 
578<#else> 
579<div class="evr-detalle evr-wysiwyg"> 
580		<#if (imagenEstructuraIndice.ficheroImagenEstructuraIndice?? && imagenEstructuraIndice.ficheroImagenEstructuraIndice.getData()?has_content) || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content)> 
581			<#assign posicion = imagenEstructuraIndice.idPosicionImagen.getData() /> 
582			<#if posicion=="Izquierda"> 
583				<#assign clase = "evr-detalle__box  evr-detalle__box--flex-left"/> 
584			<#elseif posicion=="Derecha"> 
585				<#assign clase = "evr-detalle__box  evr-detalle__box--flex"/> 
586			<#elseif posicion="CentroDeBajo"> 
587				<#assign clase = "evr-detalle__box  evr-detalle__box--flex-down"/> 
588			<#elseif posicion="CentroEncima"> 
589				<#assign clase = "evr-detalle__box  evr-detalle__box--flex-top"/> 
590			</#if> 
591		</#if> 
592		<#if parentStructureFieldSet1582845.Fecha2ehn?? && parentStructureFieldSet1582845.Fecha2ehn.getData()?has_content> 
593			<#assign fechaMostrarEstructuraBasico_Data = getterUtil.getString(parentStructureFieldSet1582845.Fecha2ehn.getData())> 
594			<#if validator.isNotNull(fechaMostrarEstructuraBasico_Data)> 
595				<#assign fechaMostrarEstructuraBasico_DateObj = dateUtil.parseDate("yyyy-MM-dd", fechaMostrarEstructuraBasico_Data, locale)> 
596				<p class="evr-normativa-detalle__date-color">${dateUtil.getDate(fechaMostrarEstructuraBasico_DateObj, formaterDate, locale)}</p> 
597			</#if> 
598		</#if> 
599		<#if parentStructureFieldSet1582845.subtitulosEstructuraBasicoFieldSet.subtituloEstructuraBasico.getSiblings()?has_content> 
600			<#list parentStructureFieldSet1582845.subtitulosEstructuraBasicoFieldSet.subtituloEstructuraBasico.getSiblings() as cur_parentStructureFieldSet1582845_subtitulosEstructuraBasicoFieldSet_subtituloEstructuraBasico> 
601				<#if (cur_parentStructureFieldSet1582845_subtitulosEstructuraBasicoFieldSet_subtituloEstructuraBasico.getData())??> 
602					<p class="evr-subtitle">${cur_parentStructureFieldSet1582845_subtitulosEstructuraBasicoFieldSet_subtituloEstructuraBasico.getData()}</p> 
603				</#if> 
604			</#list> 
605		</#if> 
606		<#if (parentStructureFieldSet1582845.textoEstructuraBasico.getData())??> 
607			<#assign noText = false> 
608		</#if> 
609		<#if (apartadoEstructuraIndiceFieldSet.ficheroImagenApartadoEstructuraIndice.getData()?? && apartadoEstructuraIndiceFieldSet.ficheroImagenApartadoEstructuraIndice.getData() != "") || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content) || (imagenEstructuraIndiceFieldSet.ficheroImagenEstructuraIndice?? && imagenEstructuraIndiceFieldSet.ficheroImagenEstructuraIndice.getData()?has_content)> 
610			<#assign noImg = false> 
611		</#if> 
612		<div class="evr-detalle__box-text evr-detalle__txt <#if noText == false && noImg == false>evr-detalle-complete</#if> <#if noText == true>evr-detalle__no-text</#if><#if noImg == true>evr-detalle__no-img</#if>"> 
613            <div class="evr-detalle__box-text  evr-detalle__txt  <#if noText == false && (imagenEstructuraIndice.ficheroImagenEstructuraIndice?? && imagenEstructuraIndice.ficheroImagenEstructuraIndice.getData()?has_content) || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content)> evr-detalle__box-text--primary evr-detalle__flex--column</#if>"> 
614                <div class="evr-detalle__carr"> 
615                    <div class="<#if clase?has_content>${clase}</#if>"> 
616                        <#if (imagenEstructuraIndice.ficheroImagenEstructuraIndice?? && imagenEstructuraIndice.ficheroImagenEstructuraIndice.getData()?has_content) || (imagenEstructuraIndice.idImagenVinculada?? && imagenEstructuraIndice.idImagenVinculada.getData()?has_content)> 
617                            <div class="evr-detalle__box-figure"> 
618                                <#list imagenEstructuraIndice.getSiblings() as cur_item> 
619                                    <#if cur_item.ficheroImagenEstructuraIndice.getData()?? && cur_item.ficheroImagenEstructuraIndice.getData()?has_content > 
620                                        <figure class="evr-detalle__fig "> 
621                                            <img class="evr-detalle__img" <#if cur_item.textoAlternativoImagenEstructuraIndice.getData()?has_content> alt='${cur_item.textoAlternativoImagenEstructuraIndice.getData()}' <#else> alt='${cur_item.ficheroImagenEstructuraIndice.getData()}' </#if> src="${cur_item.ficheroImagenEstructuraIndice.getData()}" /> 
622                                            <#if cur_item.textoPieImagenEstructuraIndice?? && cur_item.textoPieImagenEstructuraIndice.getData()?? && cur_item.textoPieImagenEstructuraIndice.getData()?has_content> 
623                                                <p class="evr-detalle__figcaption"><#if cur_item.textoPieImagenEstructuraIndice?has_content>${cur_item.textoPieImagenEstructuraIndice.getData()}</#if></p> 
624                                            </#if> 
625                                        </figure> 
626                                    <#elseif cur_item.idImagenVinculada?? && cur_item.idImagenVinculada.getData()?has_content> 
627                                        <#assign imgVinculada = cur_item.idImagenVinculada.getData()?eval /> 
628                                        <#assign classPKImgVinculada = imgVinculada.classPK?number /> 
629                                        <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
630                                        <#assign articleImgVinculada = journalArticleLocalService.getLatestArticle(classPKImgVinculada) /> 
631                                        <#assign aArticleXMLImgVinculada = saxReaderUtil.read(articleImgVinculada.getContent()) /> 
632                                        <#assign ficheroEstructuraImagen = aArticleXMLImgVinculada.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
633                                        <#assign titulo = articleImgVinculada.getTitle(locale) /> 
634                                        <#assign descripcion = articleImgVinculada.getDescription(locale) /> 
635                                        <#if ficheroEstructuraImagen?has_content> 
636                                            <figure class="evr-detalle__fig playimagevinc " style="position: relative;"> 
637                                                <#if ficheroEstructuraImagen??> 
638                                                    <#assign jsonObject=ficheroEstructuraImagen?eval> 
639                                                    <#assign entryUuid=jsonObject.uuid /> 
640                                                    <#assign entryGroupId=getterUtil.getLong(jsonObject.groupId) /> 
641                                                    <#assign dlFileEntry=dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
642                                                    <#assign 
643                                                    assetEntry=assentEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", 
644                                                    dlFileEntry.fileEntryId) 
645                                                    /> 
646                                                    <#assign assetRenderer=assetEntry.assetRenderer /> 
647                                                    <#assign foto=assetRenderer.getURLDownload(themeDisplay) /> 
648                                                </#if> 
649                                                <img  class="evr-detalle__img"  <#if cur_item.textoAlternativoImagenEstructuraIndice?has_content> alt='${cur_item.textoAlternativoImagenEstructuraIndice.getData()}' <#else> alt='${titulo}' </#if>  src="${foto}" data-descripcion="${descripcion}" data-titulo="${titulo}" /> 
650                                                <#if cur_item.textoPieImagenEstructuraIndice.getData()?has_content> 
651                                                    <p class="evr-detalle__figcaption"><#if cur_item.textoPieImagenEstructuraIndice?has_content>${cur_item.textoPieImagenEstructuraIndice.getData()}</#if></p> 
652                                                </#if> 
653                                            </figure> 
654                                        </#if> 
655                                    </#if> 
656                                </#list> 
657                            </div> 
658                        </#if> 
659                    </div> 
660                    <#--  GALERIA IMAGEN PRINCIPAL  --> 
661                    <#if idGaleriaVinculada?? && idGaleriaVinculada.getData()?has_content> 
662                        <#assign idGale = idGaleriaVinculada.getData()?eval /> 
663                        <#assign classPKGaleria = idGale.classPK?number /> 
664                        <#assign gal = journalArticleLocalService.getLatestArticle(classPKGaleria) /> 
665                        <#assign aArticleXMLGaleria = saxReaderUtil.read(gal.getContent()) /> 
666                        <#assign staticfile = aArticleXMLGaleria.selectNodes("//dynamic-element[@name='IdImagenEstructuraGaleria']//dynamic-content") /> 
667                        <#assign tituloG = gal.getTitle(locale) /> 
668                        <#assign descripcion = gal.getDescription(locale) /> 
669                        <#assign entryId = gal.getArticleId()/> 
670                        <#--  Obtener enlace Galeria Imagenes  --> 
671                        <#assign assetEntryLocalServiceUtilG = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
672                        <#assign jaPrimKey = gal.getResourcePrimKey()/> 
673                        <#assign assetEntry = assetEntryLocalServiceUtilG.fetchEntry("com.liferay.journal.model.JournalArticle",jaPrimKey?number) /> 
674                        <#assign enlace = commonServiceApiService.getEnlace(themeDisplay,assetEntry.getClassPK(),assetEntry.getEntryId())> 
675                        <#assign assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService")> 
676                        <#--    --> 
677                        <#assign webCont = aArticleXMLGaleria.selectNodes("//dynamic-element[@name='idContenidoWebGaleria']//dynamic-content") /> 
678                        <#if staticfile?has_content || webCont?has_content && webCont != ""> 
679                            <div class="evr-detalle__margin"> 
680                                <p class="evr-galery__subtitle">${tituloG}</p> 
681                                <div class="evr-galery__carrousel evr-detailsnews__carousel " data-detail-carrousel='initial'> 
682                                    <#if staticfile?has_content> 
683                                        <#list staticfile as i> 
684                                            <#if i?? && i?has_content> 
685                                                <#assign selectValue = i.getText() /> 
686                                                <#if selectValue?has_content> 
687                                                    <#assign jsonObject=selectValue?eval> 
688                                                    <#assign entryUuid=jsonObject.uuid /> 
689                                                    <#assign entryGroupId=getterUtil.getLong(jsonObject.groupId) /> 
690                                                    <#assign dlFileEntry=dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
691                                                    <#assign 
692                                                    assetEntry=assentEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", 
693                                                    dlFileEntry.fileEntryId) 
694                                                    /> 
695                                                    <#assign assetRenderer=assetEntry.assetRenderer /> 
696                                                    <#assign selectValue=assetRenderer.getURLDownload(themeDisplay) /> 
697                                                </#if> 
698                                                <figure class="evr-galery__carrousel-fig evr-modal-selector  playimag" data-toggle='modal' > 
699                                                    <img class="evr-galery__carrousel-img" src="${selectValue}" data-title="${tituloG}" data-desc="${descripcion}" data-galery="${enlace}" /> 
700                                                </figure> 
701                                            </#if> 
702                                        </#list> 
703                                    </#if> 
704                                </div> 
705                                <div class="evr-galery__carrousel evr-galery__carrousel--small" data-detail-carr-nav='initial'> 
706                                    <#if staticfile?has_content> 
707                                        <#list staticfile as i> 
708                                            <#if i?? && i?has_content> 
709                                                <#assign selectValue = i.getText() /> 
710                                                <#if selectValue?has_content> 
711                                                    <#assign jsonObject=selectValue?eval> 
712                                                    <#assign entryUuid=jsonObject.uuid /> 
713                                                    <#assign entryGroupId=getterUtil.getLong(jsonObject.groupId) /> 
714                                                    <#assign dlFileEntry=dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
715                                                    <#assign 
716                                                    assetEntry=assentEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", 
717                                                    dlFileEntry.fileEntryId) 
718                                                    /> 
719                                                    <#assign assetRenderer=assetEntry.assetRenderer /> 
720                                                    <#assign selectValue=assetRenderer.getURLDownload(themeDisplay) /> 
721                                                </#if> 
722                                                <figure class="evr-galery__carrousel-fig " > 
723                                                    <img class="evr-galery__carrousel-img" src="${selectValue}" alt="${tituloG}"> 
724                                                </figure> 
725                                            </#if> 
726                                        </#list> 
727                                    </#if> 
728                                </div> 
729                            </div> 
730                        </#if> 
731                    </#if> 
732                    <#--  FIN GALERIA IMAGEN PRINCIPAL  --> 
733                </div> 
734                <#if (parentStructureFieldSet1582845.textoEstructuraBasico.getData())?? && parentStructureFieldSet1582845.textoEstructuraBasico.getData() != ""> 
735                    ${parentStructureFieldSet1582845.textoEstructuraBasico.getData()} 
736                </#if> 
737            </div> 
738 
739            <#if apartadoEstructuraIndice?? && apartadoEstructuraIndice?has_content> 
740                <div class="evr-lis_lista_top_description"> 
741                <#assign listadoIndices = apartadoEstructuraIndice.getSiblings() /> 
742                <#assign listaIndicesOrdenada = []> 
743                <#assign listaIndicesOrdenada = commonServiceApiService.getApartadoIndiceOrdenado(listadoIndices) /> 
744                <#assign index = 0> 
745                <#assign counter = 0> 
746                <#assign lastIndex = -999999> 
747                <#if listaIndicesOrdenada?? && listaIndicesOrdenada?has_content> 
748                    <#list listaIndicesOrdenada as cur> 
749                        <#assign class = ""> 
750                        <#if cur.getIndice()?has_content> 
751                            <#assign class = "nivelindice"> 
752                            <#assign class = class + (cur.getIndice()?split(".")?size-1)?string> 
753                        </#if> 
754                        <#assign index = index + 1> 
755                        <#assign indexString = (index)?string> 
756                        <div class="${class}"> 
757                            <#--  TITULO  --> 
758                            <#if cur.getTitulo()?has_content> 
759                                <a class="evr-detalle__subtitle evr-detalle__subtitle--primary evr-desple " data-despleg data-toggle="collapse" href="#collapseService${indexString}" role="button" aria-expanded="false" aria-controls="collapseService"> 
760                                    ${cur.getTitulo()} 
761                                </a> 
762                            </#if> 
763                            <#if (cur.getDescripcion()?? && cur.getDescripcion()?has_content) || (cur.getFicheroAdjunto()?? && cur.getFicheroAdjunto()?has_content && cur.getFicheroAdjunto() != "") || (cur.getEnlaces()?? && cur.getEnlaces()?has_content && cur.getTextoEnlace()?? && cur.getTextoEnlace()?has_content)> 
764                                <#--  IMAGEN --> 
765                                <#assign imgMostrar = "" /> 
766                                <#assign src = "" /> 
767                                <#if cur.getAlt()?has_content> 
768                                    <#assign alt = cur.getAlt()> 
769                                <#else> 
770                                    <#assign alt = .vars['reserved-article-title'].data> 
771                                </#if> 
772                                <#if cur.getImagen()?has_content> 
773                                    <#assign src = cur.getImagen() /> 
774                                <#elseif cur.getImagenVinculada()?has_content> 
775                                    <#assign vImagen = cur.getImagenVinculada() /> 
776                                    <#assign data = vImagen?eval /> 
777                                    <#assign classPK2 = data.classPK?number> 
778                                    <#assign className = data.className /> 
779                                    <#assign obj = journalArticleLocalService.getLatestArticle(classPK2) /> 
780                                    <#assign structure = obj.getDDMStructure() /> 
781                                    <#assign structureName = structure.getName(locale) /> 
782                                    <#if structureName == "Imagen" > 
783                                        <#assign aArticleXML= saxReaderUtil.read(obj.getContent()) /> 
784                                        <#assign objContentImagen = aArticleXML.valueOf("//dynamic-element[@name='ficheroEstructuraImagen']/dynamic-content/text()") /> 
785                                        <#assign alt = aArticleXML.valueOf("//dynamic-element[@name='textoAlternativoEstructuraImagen']/dynamic-content/text()") /> 
786                                        <#assign titulo = obj.getTitle(locale) /> 
787                                        <#assign tituloVIMG = obj.getTitle(locale) /> 
788                                        <#assign descripcionVIMG = obj.getDescription(locale) /> 
789                                        <#if objContentImagen?has_content> 
790                                            <#if objContentImagen??> 
791                                                <#assign jsonObject=objContentImagen?eval> 
792                                                <#assign entryUuid=jsonObject.uuid /> 
793                                                <#assign entryGroupId=getterUtil.getLong(jsonObject.groupId) /> 
794                                                <#assign dlFileEntry=dlFileEntryLocalService.fetchDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) /> 
795                                                <#assign 
796                                                assetEntry=assentEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", 
797                                                dlFileEntry.fileEntryId) 
798                                                /> 
799                                                <#assign assetRenderer=assetEntry.assetRenderer /> 
800                                                <#assign foto=assetRenderer.getURLDownload(themeDisplay) /> 
801                                                <#assign imgMostrar = foto /> 
802                                            </#if> 
803                                            <#if !alt?has_content || alt==""> 
804                                                <#assign alt = titulo/> 
805                                            </#if> 
806                                        </#if> 
807                                    </#if> 
808                                </#if> 
809                                <div class="evr-detalle__box collapse" id="collapseService${indexString}" > 
810                                    <div class="evr-detalle__box-text <#if src == '' && imgMostrar == ''> evr-detalle__box-no-img-apartado <#else> evr-detalle__txt evr-detalle__box-text--primary </#if>"> 
811                                        <div class="evr-detalle__txt"> 
812                                            <#if src?? && src?has_content> 
813                                                <div class="evr-detalle__box-figure evr-detalle__box-figure--primary"> 
814                                                    <figure class=" "> 
815                                                        <img class="evr-detalle__img-lateral" src="${src}" <#if alt?has_content> alt="${alt}"</#if> <#if cur.getAlt()?has_content></#if> /> 
816                                                    <p class="evr-detailsnews__details-figure"><#if cur.getPieImagen()?has_content>${cur.getPieImagen()}</#if></p> 
817                                                    </figure> 
818                                                </div> 
819                                            <#elseif imgMostrar?? && imgMostrar?has_content> 
820                                                <div class="evr-detalle__box-figure evr-detalle__box-figure--primary"> 
821                                                    <figure class="playimagevinc "> 
822                                                        <img class="evr-detalle__img-lateral " data-titulo="${titulo}" data-descripcion="${descripcionVIMG}" src="${imgMostrar}" <#if alt?has_content> alt="${alt}"</#if> <#if cur.getAlt()?has_content></#if> /> 
823                                                        <p class="evr-detailsnews__details-figure"><#if cur.getPieImagen()?has_content>${cur.getPieImagen()}</#if></p> 
824                                                    </figure> 
825                                                </div> 
826                                            </#if> 
827                                            <#--  DESCRIPCION  --> 
828                                            <#if cur.getDescripcion()?has_content> 
829                                                ${cur.getDescripcion()} 
830                                            </#if> 
831                                        </div> 
832                                        <#--  ENLACE DESCARGA  --> 
833                                        <#if cur.getFicheroAdjunto()?? && cur.getFicheroAdjunto()?has_content && cur.getFicheroAdjunto() != ""> 
834                                            <#assign uuId = cur.getFicheroAdjunto()?split("/")?last?split("?")[0] /> 
835                                            <#assign scope = cur.getFicheroAdjunto()?split("/documents/")?last?split("/")?first> 
836                                            <#assign file = dlFileEntryService.getFileEntryByUuidAndGroupId(uuId, scope?number)> 
837                                            <#assign tamanoMb = tFichero(file.getSize()) /> 
838                                            <#if file.getTitle()?contains(".")> 
839                                                <#assign nombreFMod = file.getTitle()?split(".")[0] /> 
840                                            <#else> 
841                                                <#assign nombreFMod = file.getTitle() /> 
842                                            </#if> 
843                                            <#if file.getTitle()?split(".")[1]??> 
844                                                <#assign fFormato = file.getTitle()?split(".")[1]?upper_case /> 
845                                                <#assign archivoAdjuntoA = cur.getFicheroAdjunto() /> 
846                                            </#if> 
847                                            <#if cur.getTextoEnlace()?has_content> 
848                                                <#assign titleA = cur.getTextoEnlace()/> 
849                                            <#else> 
850                                                <#assign titleA = cur.getFicheroAdjunto()?split("/")?last?split("?")[0] /> 
851                                            </#if> 
852                                            <#if fFormato?? && fFormato?has_content> 
853                                                <a  class="evr-detalle__link evr-detalle__link--download" download="" href="${cur.getFicheroAdjunto()}"> 
854                                                    <span class=""><@liferay.language key="descargar"/> ${fFormato} (${tamanoMb}MB)</span> 
855                                                </a> 
856                                            <#else> 
857                                                <a  class="evr-detalle__link evr-detalle__link--download" download="" href="${cur.getFicheroAdjunto()}"> 
858                                                    <span class=""><@liferay.language key="descargar"/> (${tamanoMb}MB)</span> 
859                                                </a> 
860                                            </#if> 
861                                        </#if> 
862                                        <#if cur.getEnlaces()?has_content && cur.getTextoEnlace()?has_content> 
863                                            <p class="evr-normativa-descarga"> 
864                                                <a class="evr-detalle__link" href="${cur.getEnlaces()}"> 
865                                                    <span class="">${cur.getTextoEnlace()}</span> 
866                                                </a> 
867                                            </p> 
868                                        </#if> 
869                                    </div> 
870                                </div> 
871                            </#if> 
872                            <#assign currentIndex = (cur.getIndice()?split(".")?size-1)> 
873                            <#assign total = listaIndicesOrdenada?size> 
874                            <#if counter + 1 lt total> 
875                                <#assign nextElement = listaIndicesOrdenada[counter + 1]> 
876                                <#assign nextIndex = (nextElement.getIndice()?split(".")?size-1)> 
877                            <#else> 
878                                <#assign nextIndex = 0> 
879                            </#if> 
880                            <#if currentIndex lt nextIndex> 
881                            <#elseif currentIndex == nextIndex > 
882                                </div> 
883                            <#else> 
884                                <#assign total_number = currentIndex - nextIndex> 
885                                <#list 0..total_number as i> 
886                                    </div> 
887                                </#list> 
888                            </#if> 
889                        <#assign counter = counter + 1> 
890                    </#list> 
891                </#if> 
892                </div> 
893            </#if> 
894		</div> 
895	</div> 
896 
897	<#function tFichero fichero> 
898		<#assign tamanoF = (fichero/1024)/1024 /> 
899		<#if tamanoF?split(".")[0]?number == 0 > 
900			<#assign tamanoF = 0.01 /> 
901		</#if> 
902		<#return (tamanoF?string["0.##"]) /> 
903	</#function> 
904 
905	<script> 
906		$( document ).ready(function() { 
907var lateralPics = $(".evr-detalle__img-lateral").length; 
908var detallePics = $(".evr-detalle__img").length; 
909var loadedLateral = 0; 
910var loadedDetalle = 0; 
911$(".evr-detalle__img-lateral").each(function() { 
912let foto = new Image() 
913foto.onload = () => { 
914let ancho=foto.naturalWidth; 
915let parentElem = $(this).closest('figure').length > 0 ? $(this).closest('figure') : $(this).parent(); 
916if(ancho>740){ 
917if(!$(parentElem).hasClass("playimagevinc")){ 
918$(parentElem).addClass("playimag"); 
919$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
920}else{ 
921$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
922
923					}else{ 
924$(parentElem).removeClass("playimagevinc"); 
925$(parentElem).removeClass("evr-imagen-detalle__icon-ampliacion"); 
926
927					loadedLateral++; 
928					if(loadedDetalle === detallePics && loadedLateral === lateralPics)  poPupEmergenteImagenesVideos(); 
929
930				foto.src=$(this).attr("src"); 
931			}); 
932			$(".evr-detalle__img").each(function() { 
933let foto = new Image() 
934foto.onload = () => { 
935let ancho=foto.naturalWidth; 
936let parentElem = $(this).closest('figure').length > 0 ? $(this).closest('figure') : $(this).parent(); 
937if(ancho>740){ 
938if(!$(parentElem).hasClass("playimagevinc")){ 
939$(parentElem).addClass("playimag"); 
940$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
941}else{ 
942$(parentElem).addClass("evr-imagen-detalle__icon-ampliacion"); 
943
944					}else{ 
945$(parentElem).removeClass("playimagevinc"); 
946$(parentElem).removeClass("evr-imagen-detalle__icon-ampliacion"); 
947 
948
949					loadedDetalle++; 
950					if(loadedDetalle === detallePics && loadedLateral === lateralPics)  poPupEmergenteImagenesVideos(); 
951
952				foto.src=$(this).attr("src"); 
953			}) 
954			//poPupEmergenteImagenesVideos(); 
955		}); 
956		$('.evr-galery__carrousel-fig').parent().on('afterChange', function(event, slick, currentSlide){ 
957let $el = $(".evr-galery__carrousel-fig.slick-slide.slick-current.slick-active").first(); 
958$('[data-showpieimg="true"]').addClass('hidden'); 
959$('[data-showpieimg="true"][data-pieimg="'+$el.attr("data-pieimg")+'"]').removeClass("hidden"); 
960}); 
961		$('.evr-detalle__subtitle.evr-detalle__subtitle--primary.evr-desple').click( 
962			function(){ $(this).toggleClass('poser') }, 
963			function(){ $(this).toggleClass('poser') } 
964		); 
965		$('.evr-detalle__subtitle.evr-detalle__subtitle--primary.evr-desple').click( 
966			function(){ $(this).focus() }, 
967			function(){ $(this).blur() } 
968		); 
969	</script> 
970 
971	<style> 
972.evr-detalle__subtitle{ 
973width: auto; 
974
975.evr-detalle__link{ 
976display: inline; 
977
978.evr-lis_lista_top{ 
979position: relative; 
980top: 10px; 
981width: 100% !important; 
982
983.evr-lis_lista_top_img{ 
984position: relative; 
985top: 10px; 
986width: 68% !important; 
987
988.evr-lis_lista_top_description{ 
989position: relative; 
990width: 68% !important; 
991
992@media only screen and (max-width: 768px){ 
993.evr-lis_lista_top_img{ 
994position: relative; 
995top: 10px; 
996width: 100% !important; 
997
998.evr-lis_lista_top_description{ 
999width: 100% !important; 
1000
1001.evr-detalle__txt img { 
1002margin: 0; 
1003
1004.evr-detalle__box-text--primary { 
1005width: 100%!important; 
1006
1007.evr-detalle__box-figure--primary{ 
1008width: 100%!important; 
1009margin-right:0px; 
1010display: inline-block; 
1011
1012.nivelindice0 .evr-detalle__box-text { 
1013width: 100%!important; 
1014
1015
1016.evr-detalle__txt { 
1017overflow: initial; 
1018
1019 
1020.evr-detalle__no-text { 
1021display: flex; 
1022flex-wrap: wrap; 
1023flex-direction: row-reverse; 
1024width:100%; 
1025
1026 
1027.evr-detalle-complete { 
1028display: flex; 
1029flex-wrap: wrap; 
1030
1031.nivelindice0 .evr-detalle__box-text { 
1032width: 75%; 
1033
1034.evr-detalle__box-text--primary { 
1035width: 100%; 
1036
1037.evr-detalle__box-figure--primary{ 
1038width: 25%; 
1039margin-right:100px; 
1040display: inline-block; 
1041
1042.evr-detalle__no-img .evr-lis_lista_top_description { 
1043width: 100%!important; 
1044
1045.evr-detalle__no-img .evr-detalle__box-figure--primary { 
1046margin-right: 0; 
1047
1048.evr-detalle__no-img { 
1049padding-right: 0; 
1050
1051.evr-detalle-complete .evr-lis_lista_top_description { 
1052width: 100% !important; 
1053
1054.nivelindice0 .evr-detalle__box-text.evr-detalle__box-no-img-apartado { 
1055width: 100%; 
1056
1057</style> 
1058 
1059<script> 
1060procesarContenido(); 
1061eliminarMarginBottom(); 
1062</script> 
1063</#if> 

Contenidos relacionados