1<#assign preferences = {"provincia": "Sevilla"} />
2<#assign preferences = {"municipio": "Sevilla"} />
3
4<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
5<#assign assetLinkLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetLinkLocalService") />
6<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
7<#assign AssetCategoryPropertyLocalService = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") />
8<#assign AssetCategoryLocalServiceUtil = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
9<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") />
10<#assign assentEntryLocalService = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService')/>
11<#assign jsonFactoryUtil = serviceLocator.findService('com.liferay.portal.kernel.json.JSONFactoryUtil') />
12<#assign ventanaCommonService = serviceLocator.findService("es.juntadeandalucia.cma.ventana.common.services.api.VentanaCommonServiceApi")/>
13<#assign getDDMStructureService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMStructureLocalService")/>
14<#assign propertyLocalService = serviceLocator.findService("com.liferay.asset.entry.rel.service.AssetEntryAssetCategoryRelLocalService") />
15<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") />
16<#assign layoutLocalService = serviceLocator.findService('com.liferay.portal.kernel.service.LayoutLocalService') />
17<#assign currentArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) />
18<#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() />
19<#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) />
20<#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() />
21<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) />
22<#assign relatedAssetEntries = [] />
23<#assign categoriasPadre = [] />
24<#assign srcIframe = ventanaCommonService.getSrcIframeGrammaMapEspacioNatural()/>
25<#-- Procesamiento para getDirectLinks -->
26<#list currentArticleRelatedLinks as element>
27<#assign relatedAssetEntryId = element.getEntryId2() />
28<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) />
29<#if relatedAssetEntry.getExpirationDate()??>
30<#assign dateExpiration = relatedAssetEntry.getExpirationDate()/>
31<#assign dateActual = .now />
32<#if dateExpiration?date gt dateActual?date >
33<#assign relatedAssetEntries = relatedAssetEntries + [ relatedAssetEntry ] />
34</#if>
35<#else>
36<#assign relatedAssetEntries = relatedAssetEntries + [ relatedAssetEntry ] />
37</#if>
38</#list>
39
40<#assign url = themeDisplay.getURLCurrent()>
41<#assign titulo = .vars['reserved-article-title'].data >
42<#assign nameEspacio = titulo?replace("Ú","U")>
43<#assign figuras = 0 />
44<#assign numeroNoticias = 0/>
45<#assign figurasProteccion = false/>
46<#assign descripcionEspacioNatural = ""/>
47<#assign instrumentosPla = ""/>
48<#assign buenaspracticas = "" />
49<#assign actividades = "" />
50<#assign descripcionActividad = "" />
51<#assign actividadesRelacionadas = "false" />
52<#assign empresas = "" />
53<#assign noticias = "" />
54<#assign agenda = "" />
55<#assign publicaciones = ""/>
56<#assign enlacesDeInteres = "" />
57<#assign listadoEquipamientos = [] />
58<#assign listadoEspacios = [] />
59<#assign listadoMedallas = [] />
60<#assign listadoVideos = [] />
61<#assign listEmpresas = [] />
62<#assign listadoNTVS = [] />
63
64<#assign tabs_list = []>
65<#assign tabs_list = [languageUtil.get(locale, "datos.interes")] + [languageUtil.get(locale, "mapa")] + [languageUtil.get(locale, "noticias.avisos")] + [languageUtil.get(locale,"espacio.natural.actividades")] +[languageUtil.get(locale,"subTipoB")]+ [languageUtil.get(locale, "mapa")] + [languageUtil.get(locale,"agenda")] + [languageUtil.get(locale,"espacio.natural.empresas")] + [languageUtil.get(locale, "buenas.practicas")] + [languageUtil.get(locale, "publicaciones")] + [languageUtil.get(locale, "multimedia")] + [languageUtil.get(locale,"fiestasytradiciones")]>
66<#assign mapa = ""/>
67<#assign multimedia = ""/>
68<#assign fiestasYTradiciones = ""/>
69<#assign mostrarNTVS = "false"/>
70
71<#assign journalArticleId = .vars['reserved-article-id'].data>
72<#assign curEntry = journalArticleLocalService.fetchArticle(groupId, journalArticleId) />
73<#assign articleResourcePK = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", curEntry.getResourcePrimKey())/>
74<#assign AssetEntryAssetCategoryRelLocalService = serviceLocator.findService("com.liferay.asset.entry.rel.service.AssetEntryAssetCategoryRelLocalService") />
75<#assign categoryList = AssetEntryAssetCategoryRelLocalService.getAssetEntryAssetCategoryRelsByAssetEntryId(articleResourcePK.getEntryId())/>
76
77<#assign idStructureActividadesGenerales = ventanaCommonService.getStructureIdActividad() />
78<#assign idStructureActEspecEspNat = ventanaCommonService.getStructureIdActEspecEspNat() />
79
80<#assign structureActividadesGenerales = getDDMStructureService.getStructure(idStructureActividadesGenerales?number) />
81<#assign structureActEspecEspNat = getDDMStructureService.getStructure(idStructureActEspecEspNat?number) />
82
83<#assign structureKeyActividadesGenerales = structureActividadesGenerales.getStructureKey()/>
84<#assign structureKeyActEspecEspNat = structureActEspecEspNat.getStructureKey()/>
85<#assign actividadGenerales = ventanaCommonService.getActividadesVV(journalArticleId, themeDisplay, locale, structureKeyActividadesGenerales?string, structureKeyActEspecEspNat?string)>
86
87<#assign idStructureBuenasPracticas = ventanaCommonService.getStructureIdSystemSettings() />
88<#assign structureBuenasPracticas = getDDMStructureService.getStructure(idStructureBuenasPracticas?number) />
89<#assign structureKeyBuenasPracticas = structureBuenasPracticas.getStructureKey()/>
90<#assign buenaspracticas = "" >
91<#assign contenidosBuenasPracticas = ventanaCommonService.getBuenasPracticas(categoryList,groupId,structureKeyBuenasPracticas?string) />
92<#if contenidosBuenasPracticas?has_content && contenidosBuenasPracticas?size gt 0>
93<#assign buenaspracticas = languageUtil.get(locale,"buenas.practicas") + "," >
94</#if>
95
96
97<#-- Obtenemos la figura de proteccion la cual tenemos que mostrar -->
98<#if url?split("type=")[1]?has_content>
99<#assign tipoEspacio = url?split("type=")[1]>
100<#assign tipoEspacio = tipoEspacio?replace("%20", " ")?replace("%C3%A1", "á")?replace("%C3%A9","é")?replace("%C3%AD","í")?replace("%C3%B3", "ó")?replace("%C3%BA","ú")?replace("%C3%81", "Á")?replace("%C3%89","É")?replace("%C3%8D","Í")?replace("%C3%93", "Ó")?replace("%C3%9A","Ú")>
101<#else>
102<#assign tipoEspacio = "PARQUE NATURAL">
103<#if figuraProteccionSeparator.getSiblings()?has_content>
104<#list figuraProteccionSeparator.getSiblings() as cur_figuraProteccionSeparator>
105<#assign tipoEspacio = cur_figuraProteccionSeparator.TipoDeEspacioNatural.getData() />
106<#break>
107</#list>
108</#if>
109</#if>
110<#if figuraProteccionSeparator.getSiblings()?has_content>
111<#list figuraProteccionSeparator.getSiblings() as cur_figuraProteccionSeparator>
112<#-- descripcion generica -->
113<#if cur_figuraProteccionSeparator.descripcionEN.getData()?length gt 30 >
114<#assign descripcionEspacioNatural = cur_figuraProteccionSeparator.descripcionEN.getData() />
115</#if>
116<#-- FIN descripcion generica -->
117<#-- descripcion actividad -->
118<#if cur_figuraProteccionSeparator.descripcionActividad?? >
119<#if cur_figuraProteccionSeparator.descripcionActividad.getData() != "" && cur_figuraProteccionSeparator.descripcionActividad.getData()?index_of("null") == -1 >
120<#assign descripcionActividad = cur_figuraProteccionSeparator.descripcionActividad.getData() />
121</#if>
122</#if>
123<#list 0 ..< actividadGenerales.length() as i>
124<#list actividadGenerales.get(i) as element>
125<#assign nombreActividad = element.get("nombreActividad")>
126<#if descripcionActividad !="" || nombreActividad !="">
127<#assign actividades = languageUtil.get(locale,"espacio.natural.actividades") + "," >
128</#if>
129</#list>
130</#list>
131<#if cur_figuraProteccionSeparator.descripcionActividad.getData() ?has_content >
132<#assign actividades = languageUtil.get(locale,"espacio.natural.actividades") + "," >
133</#if>
134<#-- FIN descripcion actividad -->
135<#assign figuras = figuras + 1 />
136<#if figuras gt 1>
137<#assign figurasProteccion = true />
138</#if>
139</#list>
140</#if>
141
142<#-- FIN Obtenemos la figura de proteccion la cual tenemos que mostrar -->
143
144<#-- variables para las descargas cartograficas -->
145<#-- TODO: Cuando se anada el campo codigoRenpa en el contenido, acceder directamente a el -->
146<#assign nombreEspacio = .vars['reserved-article-title'].data />
147<#assign nombreEspacio2 = themeDisplay.getLayout().getFriendlyURL()?remove_beginning("/") />
148<#assign mostrarMapa = "true"/>
149<#assign tipoGIS = "espacioNatural"/>
150<#assign codigoEuropeo = "" />
151<#assign aArticleXML = saxReaderUtil.read(curEntry.getContentByLocale(locale)) />
152<#assign codigoEspacio = aArticleXML.valueOf("//dynamic-element[@name='codigoEspacioNatural']/dynamic-content/text()")!""/>
153
154
155<#assign urlReservaVisita = aArticleXML.valueOf("//dynamic-element[@name='urlReservaVisita']/dynamic-content/text()") />
156<#if !urlReservaVisita?has_content >
157<#assign urlReservaVisita = "https://www.reservatuvisita.es/" />
158
159</#if>
160<#assign curStruccture = currentArticle.getDDMStructure() />
161<#assign urlPlanificacion = aArticleXML.valueOf("//dynamic-element[@name='urlPlanificacion']/dynamic-content/text()") />
162<#assign idInstru = aArticleXML.valueOf("//dynamic-element[@name='idInstru']/dynamic-content/text()") />
163<#assign idTipob = aArticleXML.valueOf("//dynamic-element[@name='idTipob']/dynamic-content/text()") />
164<#assign boolReserva = aArticleXML.valueOf("//dynamic-element[@name='boolReserva']/dynamic-content/text()") />
165<#assign boolEcoturismo = aArticleXML.valueOf("//dynamic-element[@name='boolEcoturismo']/dynamic-content/text()") />
166
167<#if !urlPlanificacion?has_content >
168<#if (figuraProteccionSeparatorFieldSet.urlPlanificacion.getData())??>
169<#assign urlPlanificacion = figuraProteccionSeparatorFieldSet.urlPlanificacion.getData() />
170</#if>
171</#if>
172<#assign urlCartaEuropea = aArticleXML.valueOf("//dynamic-element[@name='urlCartaEuropea']/dynamic-content/text()") />
173<#if !urlCartaEuropea?has_content >
174<#assign fieldUrlCartaEuropea = curStruccture.getDDMFormField("urlCartaEuropea") />
175<#--<#assign urlCartaEuropea = fieldUrlCartaEuropea.getPredefinedValue().getString(locale) />-->
176</#if>
177
178<#if tipoEspacio=="GEOPARQUE" || tipoEspacio=="GEOPARK">
179<#assign tipoEspacio2 = "geoparques"/>
180<#assign tipoEspacioCod = "CODIGOESPA"/>
181<#assign tipoGIS = "geoparque"/>
182<#assign mostarMapa = "true"/>
183<#elseif tipoEspacio=="SITIO RAMSAR" || tipoEspacio=="RAMSAR SITE" || tipoEspacio=="SITE RAMSAR" || tipoEspacio=="RAMSAR-WEBSITE" || tipoEspacio=="DER PLATZ RAMSAR">
184<#assign tipoEspacio2 = "humedales_ramsar"/>
185<#assign tipoEspacioCod = "RAM_CODE"/>
186<#assign tipoGIS = "ramsar"/>
187<#assign mostrarMapa = "true"/>
188<#elseif tipoEspacio=="PATRIMONIO DE LA HUMANIDAD" || tipoEspacio=="PATRIMONIO DE LA HUMANIDAD" || tipoEspacio=="WORLD HERITAGE" || tipoEspacio=="PATRIMOINE DE L'HUMANITÉ" || tipoEspacio=="WELTKULTURERBE">
189<#assign tipoEspacio2 = "patrimonio_humanidad"/>
190<#assign tipoEspacioCod = "CODIGOESPA"/>
191<#assign tipoGIS = "patrimonio"/>
192<#assign mostrarMapa = "true"/>
193<#elseif tipoEspacio=="LUGAR DE IMPORTANCIA COMUNITARIA" || tipoEspacio=="Z.E.C." || tipoEspacio=="Z.E.C" || tipoEspacio=="Z.E.P.A." || tipoEspacio=="ZEC" || tipoEspacio=="ZEPA" || tipoEspacio=="L.I.C." || tipoEspacio=="LIC">
194<#assign tipoEspacio2 = "RedNatura2000"/>
195<#assign tipoEspacioCod = "CODIGOEURO"/>
196<#assign mostrarMapa = "true"/>
197<#assign tipoGIS = "redNatura"/>
198<#assign codigoEuropeo = aArticleXML.valueOf("//dynamic-element[@name='codigoRedNatura2000']/dynamic-content/text()")!""/>
199<#elseif tipoEspacio = "RESERVA DE LA BIOSFERA" || tipoEspacio=="BIOSPHERE RESERVE" || tipoEspacio=="RÉSERVE DE BIOSPHÈRE" || tipoEspacio=="BIOSPHÄRE RESERVE">
200<#assign tipoEspacio2 = "reservas_biosfera"/>
201<#assign tipoEspacioCod = "CODIGOESPA"/>
202<#assign tipoGIS = "reserva"/>
203<#assign mostrarMapa = "true"/>
204<#elseif tipoEspacio = "Z.E.P.I.M." || tipoEspacio=="ZEPIM">
205<#assign tipoEspacio2 = "ZEPIM"/>
206<#assign tipoGIS = "zepim"/>
207<#assign tipoEspacioCod = "CODIGOESPA"/>
208<#assign mostrarMapa = "true"/>
209<#else>
210<#assign tipoEspacio2 = "EENNPP"/>
211<#assign tipoEspacioCod = "CODIGOESPA"/>
212<#assign mostrarMapa = "true"/>
213</#if>
214
215<#if mostrarMapa == "true">
216<#assign mapa = languageUtil.get(locale,"mapa") + "," >
217</#if>
218
219<#-- Asignamos las url del componente descargas de las distintas capas cartograficas -->
220<#assign urlKML = "https://www.juntadeandalucia.es/medioambiente/mapwms/REDIAM_WFS_Patrimonio_Natural?service=WFS&version=1.0.0&request=GetFeature&typename="+tipoEspacio2+"%3A"+tipoEspacio2+"&outputFormat=application/vnd.google-earth.kml.xml&srsname=EPSG%3A25830&%20&Filter=%3CFilter%20xmlns=%22http://www.opengis.net/ogc%22%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3E"+ tipoEspacioCod +"%3C/PropertyName%3E%3CLiteral%3E"+ codigoEspacio+"%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E" />
221
222<#assign urlGML = "https://www.juntadeandalucia.es/medioambiente/mapwms/REDIAM_WFS_Patrimonio_Natural?service=WFS&version=1.0.0&request=GetFeature&typename="+tipoEspacio2+"%3A"+tipoEspacio2+"&outputFormat=gml3&srsname=EPSG%3A25830&%20&Filter=%3CFilter%20xmlns=%22http://www.opengis.net/ogc%22%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3E"+ tipoEspacioCod +"%3C/PropertyName%3E%3CLiteral%3E"+codigoEspacio +"%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E" />
223
224
225<#-- FIN variables para las descargas cartograficas -->
226<#assign sociales = "false">
227<#if twitterEspacioNatural??>
228<#if twitterEspacioNatural.getData() != "" >
229<#assign sociales = "true" />
230</#if>
231</#if>
232<#if fbEspacioNatural??>
233<#if fbEspacioNatural.getData() != "">
234<#assign sociales = "true" />
235</#if>
236</#if>
237
238<#-- Clasificacion de las pestanas que tengan contenido -->
239<#if ImagenPrincipal??>
240<#if ImagenPrincipal.getSiblings()?size gt 2>
241<#assign multimedia = languageUtil.get(locale,"multimedia") + "," >
242</#if>
243</#if>
244
245<#list currentArticleRelatedLinks as related_entry>
246<#assign relatedAssetEntryId = related_entry.getEntryId2() />
247<#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) />
248<#assign relatedAssetType = relatedAssetEntry.getClassName() />
249<#if relatedAssetType == "com.liferay.document.library.kernel.model.DLFileEntry">
250<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() />
251<#assign publicaciones = languageUtil.get(locale,"publicaciones") + "," >
252<#elseif relatedAssetType == "com.liferay.journal.model.JournalArticle">
253
254<#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() />
255<#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) />
256<#assign relatedArticleId = relatedArticle.getArticleId() />
257<#assign currentGroupSite = themeDisplay.getLayout().getGroup().getFriendlyURL() />
258<#assign structure = relatedArticle.getDDMStructure().getName("es_ES") />
259<#if themeDisplay.getLayout().getPrivateLayout() == true >
260<#assign state = themeDisplay.getPathFriendlyURLPrivateGroup()/>
261<#else>
262<#assign state = themeDisplay.getPathFriendlyURLPublic()/>
263</#if>
264<#assign URLDetalle = themeDisplay.getPortalURL() + state + currentGroupSite + "/-/" + relatedArticle.getUrlTitle() />
265
266
267<#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContentByLocale(locale)) />
268<!-- Elementos del contenido -->
269<#assign titulo = relatedArticle.getTitle(locale)>
270<!-- imagen del recurso -->
271<#if aArticleXML.valueOf("//dynamic-element[@name='IconoBP']/dynamic-content/text()")?has_content>
272<#assign contentImagen = aArticleXML.valueOf("//dynamic-element[@name='IconoBP']/dynamic-content/text()")/>
273<#else>
274<#assign contentImagen = "" />
275</#if>
276<#assign descripcionBP = aArticleXML.valueOf("//dynamic-element[@name='descripcionBP']/dynamic-content/text()")/>
277<#if (structure == "Buenas Prácticas") >
278<#assign buenaspracticas = languageUtil.get(locale,"buenas.practicas") + "," >
279</#if>
280<#if (structure == "Empresa asociada a la Marca Parque Natural") >
281<#assign empresas = languageUtil.get(locale,"espacio.natural.empresas") + "," >
282<#if !listEmpresas?seq_contains(relatedArticle)>
283<#assign listEmpresas = listEmpresas + [relatedArticle] />
284</#if>
285</#if>
286<#if (structure == "Actividad Específica") >
287<#assign actividadesRelacionadas = "true" >
288</#if>
289<#if (structure == "Contenido web básico") >
290<#assign descripcionActividadEN = aArticleXML.valueOf("//dynamic-element[@name='content']/dynamic-content/text()")>
291</#if>
292<#if (structure == "No te vayas sin") >
293<#assign mostrarNTVS = "true" />
294<#if !listadoNTVS?seq_contains(relatedArticle)>
295<#assign listadoNTVS = listadoNTVS + [relatedArticle] />
296</#if>
297</#if>
298<#if (structure == "Noticia") >
299<#assign noticias = languageUtil.get(locale,"noticias.avisos") + "," >
300</#if>
301<#if (structure == "Avisos") >
302<#assign noticias = languageUtil.get(locale,"noticias.avisos") + "," >
303</#if>
304<#if (structure == "Evento") >
305<#assign agenda = languageUtil.get(locale,"agenda") + "," >
306</#if>
307
308<#if (structure == "Fiestas y Tradiciones") >
309<#assign fiestasYTradiciones = languageUtil.get(locale,"fiestasytradiciones") + "," >
310</#if>
311<#if (structure == "Enlace")>
312<#assign enlacesDeInteres = languageUtil.get(locale,"espacio.natual.enlaceinteres.titulo.pestana")?upper_case + ", ">
313</#if>
314<#if (structure == "espacios naturales") >
315<#if !listadoEspacios?seq_contains(relatedArticle)>
316<#assign listadoEspacios = listadoEspacios + [relatedArticle] />
317<#assign figurasProteccion = true />
318</#if>
319</#if>
320<#if (structure == "Equipamiento de uso público")>
321<#if !listadoEquipamientos?seq_contains(relatedArticle)>
322<#assign listadoEquipamientos = listadoEquipamientos + [relatedArticle] />
323</#if>
324</#if>
325</#if>
326</#list>
327
328
329<#if medallas?? && medallas?has_content>
330<#list medallas.getSiblings() as medalla>
331<#if medalla?? && medalla?has_content>
332<#assign jsonMedalla = jsonFactoryUtil.createJSONObject(medalla.getData()) />
333<#if jsonMedalla?? && jsonMedalla.has("classPK") && jsonMedalla.getLong("classPK")?? && journalArticleLocalService.fetchLatestArticle(jsonMedalla.getLong("classPK"))?? >
334<#assign jaMedalla = journalArticleLocalService.fetchLatestArticle(jsonMedalla.getLong("classPK")) />
335<#assign listadoMedallas = listadoMedallas + [jaMedalla] />
336</#if>
337</#if>
338</#list>
339</#if>
340
341<#if videos?? && videos.getSiblings()?has_content>
342<#list videos.getSiblings() as cur_videos>
343<#assign jsonVideo = jsonFactoryUtil.createJSONObject(cur_videos.getData())/>
344<#if jsonVideo?? && jsonVideo.has("classPK") && jsonVideo.getLong("classPK")?? && journalArticleLocalService.fetchLatestArticle(jsonVideo.getLong("classPK"))?? >
345<#assign jaVideo = journalArticleLocalService.fetchLatestArticle(jsonVideo.getLong("classPK")) />
346<#assign listadoVideos = listadoVideos + [jaVideo] />
347</#if>
348</#list>
349</#if>
350
351<#assign datosInteres = languageUtil.get(locale,"datos.interes") + "," >
352
353<#assign jsonFiestasTradiciones = ventanaCommonService.getFiestasTradiciones(themeDisplay, groupId, journalArticleId) >
354<#if jsonFiestasTradiciones?? && jsonFiestasTradiciones?has_content && jsonFiestasTradiciones != "" && jsonFiestasTradiciones.length() != 0>
355<#assign fiestasYTradiciones = languageUtil.get(locale,"fiestasytradiciones") + "," >
356</#if>
357
358<#assign tabs = datosInteres + mapa + noticias + actividades + agenda + empresas + buenaspracticas + publicaciones + multimedia + fiestasYTradiciones + enlacesDeInteres />
359
360<#-- FIN coomprobacion de las pestanas -->
361
362<#-- Clasificacion de los equipamientos relacionados al espacio natural -->
363<#assign listCodesEquipamiento1 = [] />
364<#assign listCodesEquipamiento2 = [] />
365<#assign listCodesEquipamiento3 = [] />
366<#assign listContentEquipamiento1 = [] />
367<#assign listContentEquipamiento2 = [] />
368<#assign listContentEquipamiento3 = [] />
369
370
371<#list listadoEquipamientos as equipamiento>
372<#assign aArticleXML = saxReaderUtil.read(equipamiento.getContentByLocale(locale)) />
373<#assign tipoEquipamiento = aArticleXML.valueOf("/root/dynamic-element[@name='TipoEquipamiento']/dynamic-content/text()") >
374<#assign codeEquipamiento = aArticleXML.valueOf("/root/dynamic-element[@name='codigoEquipamiento']/dynamic-content/text()")/>
375<#if tipoEquipamiento=="SENDERO SEÑALIZADO" || tipoEquipamiento=="MARKED TRAIL" || tipoEquipamiento=="SENTIER MARQUÉ" || tipoEquipamiento=="MARKIERTER WEG"> <#-- primer caso -->
376<#assign listCodesEquipamiento1 = listCodesEquipamiento1 + ['{"tipo":"equipamiento","codigos":[${codeEquipamiento}]}'] />
377<#assign listContentEquipamiento1 = listContentEquipamiento1 + [equipamiento] />
378<#elseif tipoEquipamiento=="CARRIL CICLOTURISTA" || tipoEquipamiento=="CYCLING LANE" || tipoEquipamiento=="VOIE CYCLABLE" || tipoEquipamiento=="RADSPUR"> <#-- segundo caso -->
379<#assign listCodesEquipamiento2 = listCodesEquipamiento2 + ['{"tipo":"equipamiento","codigos":[${codeEquipamiento}]}'] />
380<#assign listContentEquipamiento2 = listContentEquipamiento2 + [equipamiento] />
381<#elseif tipoEquipamiento=="PUNTO DE INFORMACIÓN" || tipoEquipamiento=="CENTRO DE VISITANTES" || tipoEquipamiento=="ECOMUSEO" || tipoEquipamiento=="INFORMATION POINT" || tipoEquipamiento=="POINT D'INFORMATION" || tipoEquipamiento=="INFORMATIONSPUNKT" || tipoEquipamiento=="VISITORS CENTER" || tipoEquipamiento=="CENTRE DES VISITEURS" || tipoEquipamiento=="BESUCHER ZENTRUM" || tipoEquipamiento=="ECOMUSEUM" || tipoEquipamiento=="ECOMUSÉE"> <#-- tercer caso -->
382<#assign listCodesEquipamiento3 = listCodesEquipamiento3 + ['{"tipo":"equipamiento","codigos":[${codeEquipamiento}]}'] />
383<#assign listContentEquipamiento3 = listContentEquipamiento3 + [equipamiento] />
384</#if>
385</#list>
386<#-- FIN Clasificacion de los equipamientos relacionados al espacio natural -->
387
388<#-- NEW ---Clasificacion de los equipamientos relacionados al espacio natural -->
389<#if figuraProteccionSeparator.equipamiento1?? && figuraProteccionSeparator.equipamiento2?? && figuraProteccionSeparator.equipamiento3??>
390<#assign figuraProteccionSeparatorEquipamiento1 = figuraProteccionSeparator.equipamiento1.getData() />
391<#assign figuraProteccionSeparatorEquipamiento2 = figuraProteccionSeparator.equipamiento2.getData() />
392<#assign figuraProteccionSeparatorEquipamiento3 = figuraProteccionSeparator.equipamiento3.getData() />
393
394<#if figuraProteccionSeparatorEquipamiento1 == "SENDERO SEÑALIZADO">
395<#if locale == "en_GB" || locale == "en_US">
396<#assign figuraProteccionSeparatorEquipamiento1 = "MARKED TRAIL">
397<#elseif locale == "fr_FR">
398<#assign figuraProteccionSeparatorEquipamiento1 = "SENTIER MARQUÉ">
399<#elseif locale == "de_DE">
400<#assign figuraProteccionSeparatorEquipamiento1 = "MARKIERTER WEG">
401</#if>
402<#elseif figuraProteccionSeparatorEquipamiento1 == "CARRIL CICLOTURISTA">
403<#if locale == "en_GB" || locale == "en_US">
404<#assign figuraProteccionSeparatorEquipamiento1 = "CYCLING LANE">
405<#elseif locale == "fr_FR">
406<#assign figuraProteccionSeparatorEquipamiento1 = "VOIE CYCLABLE">
407<#elseif locale == "de_DE">
408<#assign figuraProteccionSeparatorEquipamiento1 = "RADSPUR">
409</#if>
410<#elseif figuraProteccionSeparatorEquipamiento1 == "PUNTO DE INFORMACIÓN">
411<#if locale == "en_GB" || locale == "en_US">
412<#assign figuraProteccionSeparatorEquipamiento1 = "INFORMATION POINT">
413<#elseif locale == "fr_FR">
414<#assign figuraProteccionSeparatorEquipamiento1 = "POINT D'INFORMATION">
415<#elseif locale == "de_DE">
416<#assign figuraProteccionSeparatorEquipamiento1 = "INFORMATIONSPUNKT">
417</#if>
418<#elseif figuraProteccionSeparatorEquipamiento1 == "CENTRO DE VISITANTES">
419<#if locale == "en_GB" || locale == "en_US">
420<#assign figuraProteccionSeparatorEquipamiento1 = "VISITORS CENTER">
421<#elseif locale == "fr_FR">
422<#assign figuraProteccionSeparatorEquipamiento1 = "CENTRE DES VISITEURS">
423<#elseif locale == "de_DE">
424<#assign figuraProteccionSeparatorEquipamiento1 = "BESUCHER ZENTRUM">
425</#if>
426<#elseif figuraProteccionSeparatorEquipamiento1 == "ECOMUSEO">
427<#if locale == "en_GB" || locale == "en_US" || locale == "de_DE">
428<#assign figuraProteccionSeparatorEquipamiento1 = "ECOMUSEUM">
429<#elseif locale == "fr_FR">
430<#assign figuraProteccionSeparatorEquipamiento1 = "ECOMUSÉE">
431</#if>
432</#if>
433
434<#if figuraProteccionSeparatorEquipamiento2 == "SENDERO SEÑALIZADO">
435<#if locale == "en_GB" || locale == "en_US">
436<#assign figuraProteccionSeparatorEquipamiento2 = "MARKED TRAIL">
437<#elseif locale == "fr_FR">
438<#assign figuraProteccionSeparatorEquipamiento2 = "SENTIER MARQUÉ">
439<#elseif locale == "de_DE">
440<#assign figuraProteccionSeparatorEquipamiento2 = "MARKIERTER WEG">
441</#if>
442<#elseif figuraProteccionSeparatorEquipamiento2 == "CARRIL CICLOTURISTA">
443<#if locale == "en_GB" || locale == "en_US">
444<#assign figuraProteccionSeparatorEquipamiento2 = "CYCLING LANE">
445<#elseif locale == "fr_FR">
446<#assign figuraProteccionSeparatorEquipamiento2 = "VOIE CYCLABLE">
447<#elseif locale == "de_DE">
448<#assign figuraProteccionSeparatorEquipamiento2 = "RADSPUR">
449</#if>
450<#elseif figuraProteccionSeparatorEquipamiento2 == "PUNTO DE INFORMACIÓN">
451<#if locale == "en_GB" || locale == "en_US">
452<#assign figuraProteccionSeparatorEquipamiento2 = "INFORMATION POINT">
453<#elseif locale == "fr_FR">
454<#assign figuraProteccionSeparatorEquipamiento2 = "POINT D'INFORMATION">
455<#elseif locale == "de_DE">
456<#assign figuraProteccionSeparatorEquipamiento2 = "INFORMATIONSPUNKT">
457</#if>
458<#elseif figuraProteccionSeparatorEquipamiento2 == "CENTRO DE VISITANTES">
459<#if locale == "en_GB" || locale == "en_US">
460<#assign figuraProteccionSeparatorEquipamiento2 = "VISITORS CENTER">
461<#elseif locale == "fr_FR">
462<#assign figuraProteccionSeparatorEquipamiento2 = "CENTRE DES VISITEURS">
463<#elseif locale == "de_DE">
464<#assign figuraProteccionSeparatorEquipamiento2 = "BESUCHER ZENTRUM">
465</#if>
466<#elseif figuraProteccionSeparatorEquipamiento2 == "ECOMUSEO">
467<#if locale == "en_GB" || locale == "en_US" || locale == "de_DE">
468<#assign figuraProteccionSeparatorEquipamiento2 = "ECOMUSEUM">
469<#elseif locale == "fr_FR">
470<#assign figuraProteccionSeparatorEquipamiento2 = "ECOMUSÉE">
471</#if>
472</#if>
473
474<#if figuraProteccionSeparatorEquipamiento3 == "SENDERO SEÑALIZADO">
475<#if locale == "en_GB" || locale == "en_US">
476<#assign figuraProteccionSeparatorEquipamiento3 = "MARKED TRAIL">
477<#elseif locale == "fr_FR">
478<#assign figuraProteccionSeparatorEquipamiento3 = "SENTIER MARQUÉ">
479<#elseif locale == "de_DE">
480<#assign figuraProteccionSeparatorEquipamiento3 = "MARKIERTER WEG">
481</#if>
482<#elseif figuraProteccionSeparatorEquipamiento3 == "CARRIL CICLOTURISTA">
483<#if locale == "en_GB" || locale == "en_US">
484<#assign figuraProteccionSeparatorEquipamiento3 = "CYCLING LANE">
485<#elseif locale == "fr_FR">
486<#assign figuraProteccionSeparatorEquipamiento3 = "VOIE CYCLABLE">
487<#elseif locale == "de_DE">
488<#assign figuraProteccionSeparatorEquipamiento3 = "RADSPUR">
489</#if>
490<#elseif figuraProteccionSeparatorEquipamiento3 == "PUNTO DE INFORMACIÓN">
491<#if locale == "en_GB" || locale == "en_US">
492<#assign figuraProteccionSeparatorEquipamiento3 = "INFORMATION POINT">
493<#elseif locale == "fr_FR">
494<#assign figuraProteccionSeparatorEquipamiento3 = "POINT D'INFORMATION">
495<#elseif locale == "de_DE">
496<#assign figuraProteccionSeparatorEquipamiento3 = "INFORMATIONSPUNKT">
497</#if>
498<#elseif figuraProteccionSeparatorEquipamiento3 == "CENTRO DE VISITANTES">
499<#if locale == "en_GB" || locale == "en_US">
500<#assign figuraProteccionSeparatorEquipamiento3 = "VISITORS CENTER">
501<#elseif locale == "fr_FR">
502<#assign figuraProteccionSeparatorEquipamiento3 = "CENTRE DES VISITEURS">
503<#elseif locale == "de_DE">
504<#assign figuraProteccionSeparatorEquipamiento3 = "BESUCHER ZENTRUM">
505</#if>
506<#elseif figuraProteccionSeparatorEquipamiento3 == "ECOMUSEO">
507<#if locale == "en_GB" || locale == "en_US" || locale == "de_DE">
508<#assign figuraProteccionSeparatorEquipamiento3 = "ECOMUSEUM">
509<#elseif locale == "fr_FR">
510<#assign figuraProteccionSeparatorEquipamiento3 = "ECOMUSÉE">
511</#if>
512</#if>
513<#--
514<#assign listCodesEquipamiento1 = [] />
515<#assign listCodesEquipamiento2 = [] />
516<#assign listCodesEquipamiento3 = [] />
517<#assign listContentEquipamiento1 = [] />
518<#assign listContentEquipamiento2 = [] />
519<#assign listContentEquipamiento3 = [] />-->
520
521
522<#--<#list listadoEquipamientos as equipamiento>
523<#assign aArticleXML = saxReaderUtil.read(equipamiento.getContentByLocale(locale)) />
524<#assign tipoEquipamiento = aArticleXML.valueOf("/root/dynamic-element[@name='TipoEquipamiento']/dynamic-content/text()") >
525<#assign codeEquipamiento = aArticleXML.valueOf("/root/dynamic-element[@name='codigoEquipamiento']/dynamic-content/text()")/>
526
527
528
529
530<#if tipoEquipamiento == figuraProteccionSeparatorEquipamiento1>
531<#assign listCodesEquipamiento1 = listCodesEquipamiento1 + ['{"tipo":"equipamiento","codigos":[${codeEquipamiento}]}'] />
532
533<#assign listContentEquipamiento1 = listContentEquipamiento1 + [equipamiento] />
534<#elseif tipoEquipamiento == figuraProteccionSeparatorEquipamiento2>
535<#assign listCodesEquipamiento2 = listCodesEquipamiento2 + ['{"tipo":"equipamiento","codigos":[${codeEquipamiento}]}'] />
536<#assign listContentEquipamiento2 = listContentEquipamiento2 + [equipamiento] />
537<#elseif tipoEquipamiento == figuraProteccionSeparatorEquipamiento3>
538<#assign listCodesEquipamiento3 = listCodesEquipamiento3 + ['{"tipo":"equipamiento","codigos":[${codeEquipamiento}]}'] />
539<#assign listContentEquipamiento3 = listContentEquipamiento3 + [equipamiento] />
540<#elseif figuraProteccionSeparatorEquipamiento1 == "RECEPCIÓN E INFORMACIÓN">
541<#if tipoEquipamiento == "PUNTO DE INFORMACIÓN" || tipoEquipamiento == "CENTRO DE VISITANTES" || tipoEquipamiento == "ECOMUSEO" || tipoEquipamiento == "ECOMUSEUM" || tipoEquipamiento == "ECOMUSÉE" || tipoEquipamiento == "VISITORS CENTER" || tipoEquipamiento == "CENTRE DES VISITEURS" || tipoEquipamiento == "BESUCHER ZENTRUM" || tipoEquipamiento == "INFORMATION POINT" || tipoEquipamiento == "POINT D'INFORMATION" || tipoEquipamiento == "INFORMATIONSPUNKT">
542<#assign listCodesEquipamiento1 = listCodesEquipamiento1 + ['{"tipo":"equipamiento","codigos":[${codeEquipamiento}]}'] />
543<#assign listContentEquipamiento1 = listContentEquipamiento1 + [equipamiento] />
544</#if>
545<#elseif figuraProteccionSeparatorEquipamiento2 == "RECEPCIÓN E INFORMACIÓN">
546<#if tipoEquipamiento == "PUNTO DE INFORMACIÓN" || tipoEquipamiento == "CENTRO DE VISITANTES" || tipoEquipamiento == "ECOMUSEO" || tipoEquipamiento == "ECOMUSEUM" || tipoEquipamiento == "ECOMUSÉE" || tipoEquipamiento == "VISITORS CENTER" || tipoEquipamiento == "CENTRE DES VISITEURS" || tipoEquipamiento == "BESUCHER ZENTRUM" || tipoEquipamiento == "INFORMATION POINT" || tipoEquipamiento == "POINT D'INFORMATION" || tipoEquipamiento == "INFORMATIONSPUNKT">
547<#assign listCodesEquipamiento2 = listCodesEquipamiento2 + ['{"tipo":"equipamiento","codigos":[${codeEquipamiento}]}'] />
548<#assign listContentEquipamiento2 = listContentEquipamiento2 + [equipamiento] />
549</#if>
550<#elseif figuraProteccionSeparatorEquipamiento3 == "RECEPCIÓN E INFORMACIÓN">
551<#if tipoEquipamiento == "PUNTO DE INFORMACIÓN" || tipoEquipamiento == "CENTRO DE VISITANTES" || tipoEquipamiento == "ECOMUSEO" || tipoEquipamiento == "ECOMUSEUM" || tipoEquipamiento == "ECOMUSÉE" || tipoEquipamiento == "VISITORS CENTER" || tipoEquipamiento == "CENTRE DES VISITEURS" || tipoEquipamiento == "BESUCHER ZENTRUM" || tipoEquipamiento == "INFORMATION POINT" || tipoEquipamiento == "POINT D'INFORMATION" || tipoEquipamiento == "INFORMATIONSPUNKT">
552<#assign listCodesEquipamiento3 = listCodesEquipamiento3 + ['{"tipo":"equipamiento","codigos":[${codeEquipamiento}]}'] />
553<#assign listContentEquipamiento3 = listContentEquipamiento3 + [equipamiento] />
554</#if>
555</#if>
556</#list>-->
557</#if>
558<#-- FIN Clasificacion de los equipamientos relacionados al espacio natural -->
559
560<div class="evr-wrapper content-espacio">
561<#--------------------------------- HEADER OF THE SECTION ------------------------>
562<#if figuraProteccionSeparator.getSiblings()?has_content>
563 <#list figuraProteccionSeparator.getSiblings() as cur_figuraProteccionSeparator>
564 <#if tipoEspacio = cur_figuraProteccionSeparator.TipoDeEspacioNatural.getData()>
565 <section class="evr-carrusel-banner">
566 <#-- iterator de figuras de proteccion + despues filtrar por la bandera -->
567 <#-- COMPONENTE LOGO -->
568
569 <div class="reflex-grid">
570 <div class="reflex-col-lg-4 reflex-col-md-4 reflex-col-sm-12 reflex-col-xs-12 reflex-col-bleed">
571 <div class="evr-carrusel-banner__logo-container">
572 <div class="evr-carrusel-banner__logo">
573 <#if cur_figuraProteccionSeparator.Logo?? && cur_figuraProteccionSeparator.Logo.getData()?? && cur_figuraProteccionSeparator.Logo.getData() != "">
574 <figure class="evr-carrusel-banner__fig">
575 <#assign logoImg = cur_figuraProteccionSeparator.Logo.getData() />
576 <#if logoImg != "">
577 <#if logoImg?contains("/medioambiente/portal")>
578 <#assign logoImg = logoImg />
579 <#elseif logoImg?contains("/medioambiente")>
580 <#assign logoImg = logoImg?replace("/medioambiente", "/medioambiente/portal") />
581 <#else>
582 <#assign logoImg = "/medioambiente/portal" + logoImg />
583 </#if>
584 </#if>
585 <img class="evr-carrusel-banner__img" alt="${cur_figuraProteccionSeparator.Logo.getAttribute("alt")}" data-fileentryid="${cur_figuraProteccionSeparator.Logo.getAttribute("fileEntryId")}" src="${logoImg}" style="float:left;" />
586 </figure>
587 </#if>
588 </div>
589 <div class="evr-carrusel-banner__text-container">
590 <span class="evr-carrusel-banner__title"><@liferay.language key="${cur_figuraProteccionSeparator.TipoDeEspacioNatural.getData()?replace(' ', '')}"/></span>
591
592 <#assign titulo = .vars['reserved-article-title'].data />
593 <#assign tituloAux = titulo?substring(0,5)/>
594 <#if tituloAux?matches("[a-zA-Z]{2}[0-9]{3}")>
595
596
597 <p class="evr-carrusel-banner__txt mayus">
598 ${titulo?substring(0,2)?upper_case}${titulo?substring(3,titulo?length)}
599 </p>
600 <#else>
601 <p class="evr-carrusel-banner__txt">
602 <span>${titulo}</span>
603 </p>
604 </#if>
605 </div>
606 </div>
607 </div>
608
609 <#-- COMPONENTE CARRUSEL -->
610 <input type="hidden" id="journalArticleId" value="${journalArticleId}" />
611 <div class="reflex-col-lg-8 reflex-col-md-8 reflex-col-sm-12 reflex-col-xs-12 reflex-col-bleed">
612 <div class="evr-carrusel">
613 <#assign enableCarruselButtons = "false" />
614 <#assign first = 0 />
615 <#if ImagenPrincipal?? >
616 <#if ImagenPrincipal.getSiblings()?has_content>
617 <#list ImagenPrincipal.getSiblings() as cur_ImagenPrincipal>
618
619 <#if cur_ImagenPrincipal.getAttribute("fileEntryId")?has_content>
620 <#assign imagenOk= dlFileEntryLocalService.fetchDLFileEntry(cur_ImagenPrincipal.getAttribute("fileEntryId")?number) ?? />
621 <#else>
622 <#assign imagenOk= false/>
623 </#if>
624
625 <#if cur_ImagenPrincipal?? && cur_ImagenPrincipal.getData() != "" && imagenOk>
626 <#assign imgPrincipal = cur_ImagenPrincipal.getData() />
627 <#if imgPrincipal != "">
628 <#if imgPrincipal?contains("/medioambiente/portal")>
629 <#assign imgPrincipal = imgPrincipal />
630 <#elseif imgPrincipal?contains("/medioambiente")>
631 <#assign imgPrincipal = imgPrincipal?replace("/medioambiente", "/medioambiente/portal") />
632 <#else>
633 <#assign imgPrincipal = "/medioambiente/portal" + imgPrincipal />
634 </#if>
635 <#assign descriptionFileEntry = "" />
636 <#if cur_ImagenPrincipal.getAttribute("fileEntryId")?? >
637 <#if dlFileEntryLocalService.fetchDLFileEntry(cur_ImagenPrincipal.getAttribute("fileEntryId")?number)?? >
638 <#assign descriptionFileEntry = dlFileEntryLocalService.fetchDLFileEntry(cur_ImagenPrincipal.getAttribute("fileEntryId")?number).getDescription() />
639 </#if>
640 </#if>
641 </#if>
642 <#if first == 0 >
643 <figure class="evr-carrusel__img-slide">
644 <img <#if descriptionFileEntry??>title="${descriptionFileEntry}"</#if> class="evr-carrusel__img" alt="${cur_ImagenPrincipal.getAttribute("alt")}" data-fileentryid="${cur_ImagenPrincipal.getAttribute("fileEntryId")}" src="${imgPrincipal}" />
645 </figure>
646 <#assign first = first + 1/>
647 <#else>
648 <figure class="evr-carrusel__img-slide evr-rest-content">
649 <img <#if descriptionFileEntry??>title="${descriptionFileEntry}"</#if> class="evr-carrusel__img" alt="${cur_ImagenPrincipal.getAttribute("alt")}" data-fileentryid="${cur_ImagenPrincipal.getAttribute("fileEntryId")}" src="${imgPrincipal}" />
650 </figure>
651 <#assign enableCarruselButtons = "true" />
652 </#if>
653 </#if>
654 </#list>
655 </#if>
656 </#if>
657 <#if first == 0>
658 <#-- Incluimos la imagen de ejemplo -->
659 <#assign imagenDefault = themeDisplay.getPathThemeImages() + "/fotoNoDisponible.jpg" />
660 <figure class="evr-carrusel__img-slide evr-rest-content">
661 <img class="evr-carrusel__img" alt="imagen no disponible" src="${imagenDefault}" />
662 </figure>
663 </#if>
664 </div>
665 <#-- COMPONENTE BOTONES PARA CARRUSEL -->
666 <#if ImagenPrincipal?? >
667 <#if ImagenPrincipal.getSiblings()?size gt 1 && enableCarruselButtons == "true">
668 <div class="evr-carrusel__player evr-rest-content">
669 <button aria-label="Last Picture" class="evr-carrusel__btn evr-carrusel__btn-last" data-button-state="deactive-mobile">
670 <figure>
671 <img aria-hidden="true" class="evr-carrusel__img-player" src="/medioambiente/portal/o/ventana-theme/images/componente_botones_carrusel/last.png">
672 </figure>
673 <span class="hide-accessible"><@liferay.language key="espacio.natural.ir.a.la.primera.imagen"/></span>
674 </button>
675 <button aria-label="Left" class="evr-carrusel__btn evr-carrusel__btn-left evr-carrusel__btn--margin evr-carrusel__btn--style">
676 <figure>
677 <img aria-hidden="true" class="evr-carrusel__img-player" src="/medioambiente/portal/o/ventana-theme/images/componente_botones_carrusel/left.png">
678 </figure>
679 <span class="hide-accessible"><@liferay.language key="espacio.natural.ir.a.la.anterior.imagen"/></span>
680 </button>
681 <button aria-label="Play" class="evr-carrusel__btn evr-carrusel__btn--deactive" data-button-state="deactive" data-button-type="play">
682 <figure>
683 <img aria-hidden="true" class="evr-carrusel__img-player" src="/medioambiente/portal/o/ventana-theme/images/componente_botones_carrusel/right.png">
684 </figure>
685 <span class="hide-accessible"><@liferay.language key="espacio.natural.seguir.la.reproduccion"/></span>
686 </button>
687 <button aria-label="Stop" class="evr-carrusel__btn" data-button-state="active" data-button-type="stop">
688 <figure>
689 <img aria-hidden="true" class="evr-carrusel__img-player" src="/medioambiente/portal/o/ventana-theme/images/componente_botones_carrusel/pause.png">
690 </figure>
691 <span class="hide-accessible"><@liferay.language key="espacio.natural.parar.la.reproduccion"/></span>
692 </button>
693 <button aria-label="Right" class="evr-carrusel__btn evr-carrusel__btn-right evr-carrusel__btn--style">
694 <figure>
695 <img aria-hidden="true" class="evr-carrusel__img-player" src="/medioambiente/portal/o/ventana-theme/images/componente_botones_carrusel/right.png">
696 </figure>
697 <span class="hide-accessible"><@liferay.language key="espacio.natural.ir.a.la.siguiente.imagen"/></span>
698 </button>
699 <button aria-label="Next Picture" class="evr-carrusel__btn evr-carrusel__btn-next" data-button-state="deactive-mobile">
700 <figure>
701 <img aria-hidden="true" class="evr-carrusel__img-player" src="/medioambiente/portal/o/ventana-theme/images/componente_botones_carrusel/next.png">
702 </figure>
703 <span class="hide-accessible"><@liferay.language key="espacio.natural.ir.a.la.ultima.imagen"/></span>
704 </button>
705 </div>
706 </#if>
707 </#if>
708 </div>
709 </div>
710
711 </section>
712
713
714<#----------------------------- jsSocialShare SHARE LINKS ------------------------>
715 <div class="evr-caminame__jssocials">
716 <div class="evr-social-network">
717 <div id="shareRoundIcons" style="width: max-content;"></div>
718 <div id="rrss-trigger" class="jssocials-share evr-social-network__jssocials-share">
719 <a class="jssocials-share-link evr-social-network__jssocials-share-link">
720 <i class="fa fa-share-alt jssocials-share-logo" aria-hidden="true"></i>
721 </a>
722 <div id="shareGenericButton" class="evr-social-network__inline"> </div>
723 </div>
724 </div>
725
726 <#-- COMPONENTE BLOQUES REQUIERE AUTORIZACIÓN Y APP CAMINAME -->
727 <section class="evr-caminame evr-caminame_web evr-seccion__privada" style="margin: 23px 0;">
728 <div class="evr-caminame__col">
729 <@liferay_portlet["runtime"]
730 instanceId="visitasmodule"
731 portletName="visitasmodule" />
732 </div>
733 <div class="evr-caminame__col">
734 <@liferay_portlet["runtime"]
735 instanceId="favoritosModule"
736 portletName="favoritosmodule" />
737
738
739
740
741 </div>
742 <div class="evr-caminame__col">
743 <@liferay_portlet["runtime"]
744 instanceId="PasaporteModule"
745 portletName="Pasaportemodule" />
746 </div>
747
748 </section>
749 </div>
750 <#-- COMPONENTE BLOQUES REQUIERE AUTORIZACIÓN Y APP CAMINAME
751 <section class="evr-caminame evr-caminame_mobile evr-cerrado" style="margin: 23px 0;">
752 <div class="evr-caminame__col evr-caminame__col--margin">
753 <#if estadoAbierto??>
754 <#if estadoAbierto.getData() == "Cerrado">
755 <span class="evr-caminame__span" style="color:red;">
756 <span class="evr-caminame__a-text" style="font-weight: bold;" ><@liferay.language key="equipamiento.uso.publico.cerrado.temporalmente"/></span>
757 </span>
758 </#if>
759 </#if>
760 </div>
761 </section> -->
762
763 <br>
764
765 <#if cur_figuraProteccionSeparator.equipamiento1?has_content && cur_figuraProteccionSeparator.equipamiento1.getData()?has_content>
766 <#assign equp1Val = cur_figuraProteccionSeparator.equipamiento1.getData() />
767 <#else>
768 <#assign equp1Val = "SENDERO SEÑALIZADO" />
769 </#if>
770
771 <#if cur_figuraProteccionSeparator.equipamiento2?has_content && cur_figuraProteccionSeparator.equipamiento2.getData()?has_content>
772 <#assign equp2Val = cur_figuraProteccionSeparator.equipamiento2.getData() />
773 <#else>
774 <#assign equp2Val = "CARRIL CICLOTURISTA" />
775 </#if>
776
777 <#if cur_figuraProteccionSeparator.equipamiento3?has_content && cur_figuraProteccionSeparator.equipamiento3.getData()?has_content>
778 <#assign equp3Val = cur_figuraProteccionSeparator.equipamiento3.getData() />
779 <#else>
780 <#assign equp3Val = "RECEPCIÓN E INFORMACIÓN" />
781 </#if>
782
783 <section class="evr-space-natural evr-rest-content">
784 <#if equp1Val != "VACÍO" && listCodesEquipamiento1?size gt 0>
785 <a onclick='verMapa("SENDERO SEÑALIZADO")' class="evr-space-natural__btn">
786 <#if equp1Val == "SENDERO SEÑALIZADO">
787 <figure class="evr-space-natural__fig">
788 <img src="/medioambiente/portal/o/ventana-theme/images/componente_espacios_referenciales/persona.png" alt="Icono persona">
789 </figure>
790 <span class="evr-space-natural__span"><@liferay.language key="espacio.natural.senderos"/></span>
791 <#else>
792 <figure class="evr-space-natural__fig">
793 <img src="/medioambiente/portal/o/ventana-theme/images/componente_espacios_referenciales/${equp1Val}.png" alt="Icono persona">
794 </figure>
795 <span class="evr-space-natural__span">${equp1Val?capitalize}</span>
796 </#if>
797 </a>
798 </#if>
799 <#if equp2Val != "VACÍO" && listCodesEquipamiento2?size gt 0>
800 <a onclick='verMapa("CARRIL CICLOTURISTA")' class="evr-space-natural__btn">
801 <#if equp2Val == "CARRIL CICLOTURISTA">
802 <figure class="evr-space-natural__fig">
803 <img src="/medioambiente/portal/o/ventana-theme/images/componente_espacios_referenciales/bicicleta.png" alt="Icono bicicleta">
804 </figure>
805 <span class="evr-space-natural__span"><@liferay.language key="espacio.natural.carriles.cicloturistas"/></span>
806 <#else>
807 <figure class="evr-space-natural__fig">
808 <img src="/medioambiente/portal/o/ventana-theme/images/componente_espacios_referenciales/${equp2Val}.png" alt="Icono persona">
809 </figure>
810 <span class="evr-space-natural__span">${equp2Val?capitalize}</span>
811 </#if>
812 </a>
813 </#if>
814 <#if equp3Val != "VACÍO" && listCodesEquipamiento3?size gt 0>
815 <a onclick='verMapa("CENTRO DE VISITANTES")' class="evr-space-natural__btn">
816 <#if equp3Val == "RECEPCIÓN E INFORMACIÓN">
817 <figure class="evr-space-natural__fig">
818 <img src="/medioambiente/portal/o/ventana-theme/images/componente_espacios_referenciales/info.png" alt="Icono información">
819 </figure>
820 <span class="evr-space-natural__span"><@liferay.language key="espacio.natural.recepcion.e.informacion"/></span>
821 <#else>
822 <figure class="evr-space-natural__fig">
823 <img src="/medioambiente/portal/o/ventana-theme/images/componente_espacios_referenciales/${equp3Val}.png" alt="Icono persona">
824 </figure>
825 <span class="evr-space-natural__span">${equp3Val?capitalize}</span>
826 </#if>
827 </a>
828 </#if>
829 </section>
830
831<#-------------------------------------- TABS SECTION ---------------------------->
832
833 <section class="evr-tabs">
834 <div class="evr-tabs-activity">
835 <@liferay_ui["tabs"]
836 names="${tabs}"
837 refresh=false
838 >
839
840 <div class="evr-panel-content tab-content">
841 <#-- Datos de interes subsection -->
842 <@liferay_ui["section"] >
843 <div class="evr-panel-content__container reflex-container-full tab-pane" >
844 <#if cur_figuraProteccionSeparator.descripcionEN.getData() != "" || descripcionEspacioNatural?? >
845 <#if descripcionEspacioNatural != "">
846 <div class="evr-panel-content__description">
847 <span class="evr-panel-content__title">
848 <@liferay.language key="espacio.natural.descripcion"/>
849 </span>
850 <div class="evr-natural-espace-paragraph" >
851 <#if cur_figuraProteccionSeparator.descripcionEN.getData()?length gt 30 >
852 <p class="evr-panel-content__paragraph">${cur_figuraProteccionSeparator.descripcionEN.getData()}</p>
853 <#else>
854 <p class="evr-panel-content__paragraph">${descripcionEspacioNatural}</p>
855 </#if>
856
857 </div>
858 </div>
859 </#if>
860 </#if>
861 </div>
862 <br>
863 <div class="evr-panel-protection evr-panel-content__container reflex-container-full tab-pane">
864 <#if listadoMedallas?size gt 0 >
865 <span class="evr-panel-content__title"><@liferay.language key="espacio.natural.otras.figuras.de.proteccion"/></span>
866
867 <#---- NUEVA FORMA DE OBTENER LAS FIGURAS DE PROTECCION -->
868 <ul class="evr-panel-protection__container-btn">
869 <#-- Ordenar las medallas de los espacios naturales segun se ha pedido Monumento Natural - Reserva Natural
870 - Paraje Natural - Parque Periurbano- Paisaje Protegido - Reserva Natural Concertada - Parque Natural - Parque Nacional - RedNatura2000
871 - Patrimonio de la Humanidad - Reserva de la Biosfera - Geoparque - Sitio Ramsar - ZEPIM -->
872 <#assign tableMedallas = ["MONUMENTO NATURAL", "NATURAL MONUMENT", "MONUMENT NATUREL", "NATÜRLICHES DENKMAL", "RESERVA NATURAL", "NATURAL RESERVE", "RÉSERVE NATURELLE", "NATURRESERVAT", "PARAJE NATURAL", "NATURAL AREA", "ZONE NATURELLE", "NATÜRLICHER BEREICH", "PARQUE PERIURBANO", "PERIURBAN PARK", "PARC PERIURBAIN", "PERIURBAN PARK", "PAISAJE PROTEGIDO", "PROTECTED LANDSCAPE", "PAYSAGE PROTÉGÉ", "GESCHÜTZTE LANDSCHAFT", "RESERVA NATURAL CONCERTADA", "CONCERTED NATURAL RESERVE", "RÉSERVE NATURELLE CONCERTÉE", "KONZERTIERTE NATÜRLICHE RESERVE", "PARQUE NATURAL", "NATURAL PARK", "PARC NATUREL", "NATURPARK", "PARQUE NACIONAL", "NATIONAL PARK", "PARC NATIONAL", "NATIONALPARK", "Z.E.C.", "ZEC", "Z.E.P.A.", "ZEPA", "LUGAR DE IMPORTANCIA COMUNITARIA", "L.I.C.", "LIC", "PATRIMONIO DE LA HUMANIDAD", "WORLD HERITAGE", "PATRIMOINE DE L'HUMANITÉ", "WELTKULTURERBE", "RESERVA DE LA BIOSFERA", "BIOSPHERE RESERVE", "RÉSERVE DE BIOSPHÈRE", "BIOSPHÄRE RESERVE", "GEOPARQUE", "GEOPARK", "SITIO RAMSAR", "RAMSAR SITE", "SITE RAMSAR", "DER PLATZ RAMSAR", "RAMSAR-WEBSITE", "Z.E.P.I.M.", "ZEPIM"] />
873 <#list tableMedallas as medalla>
874 <#assign espaciosAux = [] />
875 <#list listadoMedallas as relatedArticle>
876 <#assign foo={}>
877 <#assign relatedArticleId = relatedArticle.getArticleId() />
878 <#if !espaciosAux?seq_contains(relatedArticleId)>
879 <#assign espaciosAux = espaciosAux + [relatedArticleId]/>
880 <#assign currentGroupSite = themeDisplay.getLayout().getGroup().getFriendlyURL() />
881
882 <#assign groupIdArticle = relatedArticle.getGroupId() />
883 <#-- Inicio Get enlace -->
884 <#assign classNameWebContent = "com.liferay.journal.model.JournalArticle"/>
885 <#assign classPKWebContent = relatedArticle.getResourcePrimKey()?number/>
886 <#assign webContent = assentEntryLocalService.fetchEntry(classNameWebContent,classPKWebContent)/>
887 <#assign entryId = webContent.getEntryId()/>
888 <#assign entryClassPK = webContent.getClassPK()/>
889 <#assign enlace = ventanaCommonService.getEnlaceVentana(themeDisplay,entryClassPK,entryId)>
890 <#-- Fin get enlace -->
891 <#assign URLDetalle = "" />
892
893 <#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContentByLocale(locale)) />
894 <!-- Elementos del contenido -->
895 <#assign tituloEspacio = relatedArticle.getTitle(locale) />
896
897 <!-- imagen del recurso -->
898 <#if aArticleXML.valueOf("//dynamic-element[@name='figuraProteccionSeparatorFieldSet']")?has_content>
899 <#assign listadoFigurasProteccionNode = aArticleXML.selectSingleNode("//dynamic-element[@name='figuraProteccionSeparatorFieldSet']") >
900 <#assign listadoFigurasProteccion = listadoFigurasProteccionNode.selectNodes("//dynamic-element[@name='TipoDeEspacioNatural']//dynamic-content/text()") >
901 <#assign logosFigurasProteccion = listadoFigurasProteccionNode.selectNodes("//dynamic-element[@name='logoVerde']//dynamic-content/text()") >
902 <#assign i = 0 >
903 <#assign j = 0 >
904 <#list listadoFigurasProteccion as cur_figuraProteccion>
905 <#if cur_figuraProteccion.getText() == medalla>
906 <#if logosFigurasProteccion[i]??>
907 <#assign foo=foo+{cur_figuraProteccion.getText() : logosFigurasProteccion[i].getText()}>
908 <#else>
909 <#assign foo=foo+{cur_figuraProteccion.getText() : ""}>
910 </#if>
911 </#if>
912 <#assign i = i+1 >
913 </#list>
914 <#list foo?keys as k>
915 <li class="evr-panel-protection__btn">
916 <a href="${enlace}" class="evr-panel-protection__lnk">
917 <span class="hide-accessible"><@liferay.language key="equipamiento.uso.publico.accede.a.la.pagina" /> ${k} </span>
918 <figure class="evr-panel-protection__fig">
919 <#assign imgMedallas = foo[k] />
920 <#if imgMedallas != "">
921 <#if imgMedallas?contains("/medioambiente/portal")>
922 <#assign imgMedallas = "/medioambiente/portal/documents/" + imgMedallas?eval.groupId + "/" + imgMedallas?eval.fileEntryId + "/" + imgMedallas?eval.title + "/" + imgMedallas?eval.uuid>
923 <#elseif imgMedallas?contains("/medioambiente")>
924 <#assign imgMedallas = "/medioambiente/portal/documents/" + imgMedallas?eval.groupId + "/" + imgMedallas?eval.fileEntryId + "/" + imgMedallas?eval.title + "/" + imgMedallas?eval.uuid>
925 <#else>
926 <#assign imgMedallas = "/medioambiente/portal/documents/" + imgMedallas?eval.groupId + "/" + imgMedallas?eval.fileEntryId + "/" + imgMedallas?eval.title + "/" + imgMedallas?eval.uuid>
927 </#if>
928 </#if>
929 <img class="evr-panel-protection__img" alt="${imgMedallas}" data-fileentryid="${imgMedallas}" src="${imgMedallas}" />
930 </figure>
931 <#assign i = i + 1>
932 <div class="evr-panel-protection__text-container">
933 <span class="evr-panel-protection__btn-title"><span><@liferay.language key="${k?replace(' ', '')}" /></span></span>
934 <span class="evr-panel-protection__btn-span">${tituloEspacio}</span>
935 </div>
936 </a>
937 </li>
938 </#list>
939 </#if>
940 </#if>
941 </#list>
942 </#list>
943 </ul>
944 <#---- FIN NUEVA FORMA DE OBTENER LAS FIGURAS DE PROTECCION -->
945 </#if>
946 </div>
947 <br>
948 <div class="evr-panel-data-sheet evr-panel-content__container reflex-container-full tab-pane">
949 <#if cur_figuraProteccionSeparator.datoTecnico??>
950
951
952
953 <span class="evr-panel-content__title"><@liferay.language key="espacio.natural.ficha.tecnica"/></span>
954 <ul class="evr-panel-data-sheet__list">
955 <#if cur_figuraProteccionSeparator.datoTecnico??>
956 <#if cur_figuraProteccionSeparator.datoTecnico.getSiblings()?has_content>
957 <#assign datOrd = ventanaCommonService.getDatosTecnicosDatosContactoOrdenados(cur_figuraProteccionSeparator.datoTecnico.getSiblings(),"") />
958 <#list datOrd as cur_datoTecnico>
959 <#if cur_datoTecnico.datoTecnico1.getData() != "null" && cur_datoTecnico.datoTecnico1.getData() != "nullha." && cur_datoTecnico.datoTecnico1.getData() != "">
960
961 <li class="evr-panel-data-sheet__list-item" style="margin-bottom: 15px;">
962 <div class="evr-panel-data-sheet__list-container">
963 <#if cur_datoTecnico.getData() == "municipios">
964 <figure class="evr-panel-data-sheet__fig">
965 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/municipio.png" alt="Icono Municipios" class="evr-panel-protection__img">
966 </figure>
967 <#assign municipiosOrder = cur_datoTecnico.datoTecnico1.getData()?split(",")?sort />
968 <#elseif cur_datoTecnico.getData() == "fechaDeclaracion">
969 <figure class="evr-panel-data-sheet__fig">
970 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/calendar.png" alt="Icono Calendario" class="evr-panel-protection__img">
971 </figure>
972 <#elseif cur_datoTecnico.getData() == "superficieTotal">
973 <figure class="evr-panel-data-sheet__fig">
974 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/superficie.svg" alt="Icono Superficie" class="evr-panel-protection__img">
975 </figure>
976 <#elseif cur_datoTecnico.getData() == "provincias">
977 <i class="fa fa-map-marker evr-panel-data-sheet__ico"></i>
978 <#assign municipiosOrder = cur_datoTecnico.datoTecnico1.getData()?split(",")?sort />
979 <#else>
980 <figure class="evr-panel-data-sheet__fig">
981 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/municipio.png" alt="Icono Municipios" class="evr-panel-protection__img">
982 </figure>
983 </#if>
984 <span class="evr-panel-data-sheet__list-title">
985 <@liferay.language key="${cur_datoTecnico.getData()}"/>
986 </span>
987 <span class="evr-panel-data-sheet__list-span">
988 <#if cur_datoTecnico.getData() == "fechaDeclaracion">
989
990 <#assign fechaCompleta = cur_datoTecnico.datoTecnico1.getData() />
991 <#assign anyo = fechaCompleta?substring(0,4) />
992 <#assign mes = fechaCompleta?substring(4,6) />
993 <#assign dia = fechaCompleta?substring(6,8) />
994
995 <#assign fechaString = anyo + "-" + mes + "-" + dia />
996 <#assign fechaDate = fechaString?date("yyyy-MM-dd") />
997 <#assign dia_fechaManualEstructuraBasico_DateObj = dateUtil.getDate(fechaDate, "dd", locale) >
998 <#assign mes_fechaManualEstructuraBasico_DateObj = dateUtil.getDate(fechaDate, "MMMM", locale) >
999 <#assign anyo_fechaManualEstructuraBasico_DateObj = dateUtil.getDate(fechaDate, "yyyy", locale) >
1000 <#assign fechaCompleta2 = dia_fechaManualEstructuraBasico_DateObj + " - " + mes_fechaManualEstructuraBasico_DateObj + " - " + anyo_fechaManualEstructuraBasico_DateObj>
1001 ${fechaCompleta2}
1002 <#elseif cur_datoTecnico.getData()== "superficieTotal">
1003 <#assign ext = cur_datoTecnico.datoTecnico1.getData() />
1004 <#assign temExt=ext?split("ha")[0] />
1005 <#if temExt != "">
1006 <#assign temExt=ext?split("ha")[0]?number />
1007 ${temExt?string(",##0.00")} ha.
1008 </#if>
1009
1010 <#else>
1011 <#if cur_datoTecnico.getData() == "municipios" || cur_datoTecnico.getData() == "provincias">
1012 <#list municipiosOrder as i>
1013 ${i?capitalize}<#if i?has_next>, </#if>
1014 </#list>
1015 <#else>
1016 ${cur_datoTecnico.datoTecnico1.getData()}
1017 </#if>
1018
1019 </#if>
1020 </span>
1021 </div>
1022 </li>
1023 </#if>
1024 </#list>
1025
1026 </#if>
1027 </#if>
1028 <#if idInstru?? && getterUtil.getBoolean(idInstru)!=true>
1029 <li class="evr-panel-data-sheet__list-item">
1030 <div class="evr-panel-data-sheet__list-container">
1031 <figure class="evr-panel-data-sheet__fig">
1032 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/arrow-box.png" alt="Salir de la app" class="evr-panel-protection__img">
1033 </figure>
1034 <span>
1035 <a href="${urlPlanificacion}" class="evr-panel-data-sheet__list-title"><@liferay.language key="instrumentos.de.planificacion"/></a>
1036 </span>
1037 </div>
1038 </li>
1039 </#if>
1040 </ul>
1041
1042 </#if>
1043
1044 </div>
1045
1046 <#if DatoDeContacto??>
1047 <#assign datOrde = ventanaCommonService.getDatosTecnicosDatosContactoOrdenados(DatoDeContacto.getSiblings(),"EQDatosConfiguracion") />
1048 <#if datOrde?size gt 0 >
1049 <#assign mostrarDatoscontacto = "false">
1050 <#list datOrde as cur_datoContacto>
1051 <#if cur_datoContacto.getData() != "">
1052 <#assign mostrarDatoscontacto = "true">
1053 </#if>
1054 </#list>
1055 <#if mostrarDatoscontacto == "true">
1056 <div class="evr-panel-data-sheet evr-panel-content__container reflex-container-full tab-pane">
1057 <span class="evr-panel-content__title"><@liferay.language key="espacio.natural.datos.de.contacto"/></span>
1058 <ul class="evr-panel-data-sheet__list">
1059 <#if datOrde?has_content>
1060 <#list datOrde as cur_datoContacto>
1061 <#if cur_datoContacto.ValorDatoDeContacto.getData() != "false">
1062 <li class="evr-panel-data-sheet__list-item">
1063 <div class="evr-panel-data-sheet__list-container">
1064 <#if cur_datoContacto.getData() == "direccion">
1065 <figure class="evr-panel-data-sheet__fig">
1066 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/direccion.svg" alt="Direccion" class="evr-panel-protection__img">
1067 </figure>
1068 <#elseif cur_datoContacto.getData() == "email">
1069 <figure class="evr-panel-data-sheet__fig">
1070 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/email.svg" alt="Email" class="evr-panel-protection__img">
1071 </figure>
1072 <#elseif cur_datoContacto.getData() == "telefonoFijo" || cur_datoContacto.getData() == "telefonoMovil" || cur_datoContacto.getData() == "fax" >
1073 <figure class="evr-panel-data-sheet__fig">
1074 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/telefono.svg" alt="Telefono" class="evr-panel-protection__img">
1075 </figure>
1076 <#elseif cur_datoContacto.getData() == "gestion">
1077 <figure class="evr-panel-data-sheet__fig">
1078 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/empresa.svg" alt="Calendario" class="evr-panel-protection__img">
1079 </figure>
1080 <#elseif cur_datoContacto.getData() == "aseos">
1081 <figure class="evr-panel-data-sheet__fig">
1082 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/aseos.svg" alt="Aseo" class="evr-panel-protection__img">
1083 </figure>
1084 <#elseif cur_datoContacto.getData() == "zonaJuegosInfantiles">
1085 <figure class="evr-panel-data-sheet__fig">
1086 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/tobogan.svg" alt="Zona de juegos infantiles" class="evr-panel-protection__img">
1087 </figure>
1088 <#elseif cur_datoContacto.getData() == "servicioRestauracion">
1089 <figure class="evr-panel-data-sheet__fig">
1090 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/restauracion.svg" alt="Servicio de Restauracion" class="evr-panel-protection__img">
1091 </figure>
1092 <#elseif cur_datoContacto.getData() == "numeroMesas">
1093 <figure class="evr-panel-data-sheet__fig">
1094 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/mesas.svg" alt="Numero de mesas" class="evr-panel-protection__img">
1095 </figure>
1096 <#elseif cur_datoContacto.getData() == "sombra">
1097 <figure class="evr-panel-data-sheet__fig">
1098 <img src="/medioambiente/portal/o/ventana-theme/images/componente_tabs/sombra.svg" alt="Sombra" class="evr-panel-protection__img">
1099 </figure>
1100 </#if>
1101 <span class="evr-panel-data-sheet__list-title">
1102 <@liferay.language key="${cur_datoContacto.getData()}"/>
1103 </span>
1104 <#if cur_datoContacto.ValorDatoDeContacto.getData() == "true">
1105 <span class="evr-panel-data-sheet__list-span"><@liferay.language key="espacio.natural.si"/></span>
1106 <#else>
1107 <span class="evr-panel-data-sheet__list-span">${cur_datoContacto.ValorDatoDeContacto.getData()}</span>
1108 </#if>
1109 </div>
1110 </li>
1111 </#if>
1112 </#list>
1113 </#if>
1114 </ul>
1115 </div>
1116 </#if>
1117 </#if>
1118 </#if>
1119 <br>
1120
1121
1122 </@>
1123 </div>
1124
1125 <#-- Map subsection -->
1126 <#if mostrarMapa == "true">
1127 <div class="evr-panel-content tab-content">
1128 <@liferay_ui["section"] >
1129 <span class="only-print__title">${tabs_list[1]}</span>
1130 <script>
1131 function startGrama(){
1132//setTimeout(function(){
1133<#if codigoEuropeo == "">
1134document.getElementById("ifr").contentWindow.postMessage({"operacion": "zoomBeforeLoad", "datos": [{"tipo": "${tipoGIS}", "codigos":[[${codigoEspacio}]], "redNaturaCodigo":[]}]}, '*');
1135 <#else>
1136 document.getElementById("ifr").contentWindow.postMessage({"operacion": "zoomBeforeLoad", "datos": [{"tipo": "${tipoGIS}", "codigos":[[${codigoEspacio}]], "redNaturaCodigo":[["${codigoEuropeo}"]]}]}, '*');
1137 </#if>
1138 $("#loader").css({ 'display' : 'none'});
1139 $("#ifr").css({ 'filter' : 'brightness(1)'});
1140 //}, 3000);
1141 }
1142 </script>
1143 <!-- Incluimos el mapa grama -->
1144 <section class="gramma-map">
1145 <div id="loader"> </div>
1146 <p>
1147 <iframe onload="startGrama();" height="800px" id="ifr" src="${srcIframe}"></iframe>
1148 </p>
1149
1150
1151 <section class="evr-map-result">
1152 <#if listContentEquipamiento1?size gt 0>
1153 <div class="evr-map-result__paragraph hidden eq1">
1154 <#list listContentEquipamiento1?sort_by("title") as equipamiento>
1155 <#assign aArticleXML = saxReaderUtil.read(equipamiento.getContentByLocale(locale)) />
1156 <#assign titleEquipamiento = equipamiento.getTitle(locale) />
1157 <#assign structureName = "equipamiento.mayus" />
1158 <#assign tipoEquipamiento = equipamiento.getDescription(locale)/>
1159 <#assign provinciasEquipamiento = ventanaCommonService.getProvinciaMunicipioEquipamiento(groupId?string, equipamiento.getArticleId(), locale) />
1160 <#assign imagen = aArticleXML.valueOf("/root/dynamic-element/dynamic-element[@name='ImagenPrincipalEquipamiento']/dynamic-content/text()") />
1161 <#if imagen == "">
1162 <#assign imagen = themeDisplay.getPathThemeImages() + "/fotoNoDisponible.jpg" />
1163 <#else>
1164 <#if imagen?has_content && imagen !="{}" && imagen?contains("fileEntryId")
1165 && imagen?contains("groupId") && imagen?contains("uuid") && imagen?contains("title")>
1166 <#if imagen?contains("/medioambiente/portal")>
1167 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid />
1168 <#elseif imagen?contains("/medioambiente")>
1169 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid />
1170 <#else>
1171 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid />
1172 </#if>
1173 </#if>
1174 </#if>
1175 <#assign discapacidadFisica = aArticleXML.valueOf("/root/dynamic-element[@name='discapacidadFisica']/dynamic-content/text()") />
1176 <#assign discapacidadVisual = aArticleXML.valueOf("/root/dynamic-element[@name='discapacidadVisual']/dynamic-content/text()") />
1177 <#assign discapacidadAuditiva = aArticleXML.valueOf("/root/dynamic-element[@name='discapacidadAuditiva']/dynamic-content/text()") />
1178 <#-- Inicio Get enlace -->
1179 <#assign classNameWebContent = "com.liferay.journal.model.JournalArticle"/>
1180 <#assign classPKWebContent = equipamiento.getResourcePrimKey()?number/>
1181 <#assign webContent = assentEntryLocalService.fetchEntry(classNameWebContent,classPKWebContent)/>
1182 <#assign entryId = webContent.getEntryId()/>
1183 <#assign entryClassPK = webContent.getClassPK()/>
1184 <#assign enlace = ventanaCommonService.getEnlaceVentana(themeDisplay,entryClassPK,entryId)>
1185 <#-- Fin get enlace -->
1186 <div class="evr-map-result__box reflex-col-xs-12 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-3">
1187 <a href="${enlace}">
1188 <article class="evr-article-collage-map">
1189 <div class="evr-article-collage-map__container">
1190
1191 <div class="evr-article-collage-map__collection">
1192 <figure class="evr-article-collage-map__thumb">
1193 <img src="${imagen}" alt="${titleEquipamiento}" />
1194 </figure>
1195 </div>
1196 <div class="evr-article-collage-map__body">
1197 <#assign clave = tipoEquipamiento?replace(" ","") />
1198 <span class="evr-article-collage-map__tag"><@liferay.language key="${structureName}"/>: <@liferay.language key="${clave}"/></span>
1199 <span class="evr-article-collage-map__title">${titleEquipamiento}</span>
1200 <span class="evr-article-collage-map__time">${provinciasEquipamiento}</span>
1201 <div class="evr-article-collage-map__container-accesible">
1202 <#if discapacidadFisica == "true" >
1203 <button class="evr-article-collage-map__accesible-ico">
1204 <i class="fa fa-wheelchair"></i> <span
1205 class="hide-accessible">Icono de accesibilidad
1206 física</span>
1207 </button>
1208 </#if>
1209 <#if discapacidadVisual == "true">
1210 <button class="evr-article-collage-map__accesible-ico">
1211 <i class="fa fa-low-vision"></i> <span
1212 class="hide-accessible">Icono de accesibilidad
1213 visual</span>
1214 </button>
1215 </#if>
1216 <#if discapacidadAuditiva == "true">
1217 <button class="evr-article-collage-map__accesible-ico">
1218 <i class="fa fa-assistive-listening-systems"></i> <span
1219 class="hide-accessible">Icono de accesibilidad
1220 auditiva</span>
1221 </button>
1222 </#if>
1223 </div>
1224 </div>
1225 </div>
1226 </article>
1227 </a>
1228 </div>
1229 </#list>
1230 </div>
1231 </#if>
1232 <#if listContentEquipamiento2?size gt 0>
1233
1234 <div class="evr-map-result__paragraph hidden eq2">
1235
1236 <#list listContentEquipamiento2?sort_by("title") as equipamiento>
1237 <#assign aArticleXML = saxReaderUtil.read(equipamiento.getContentByLocale(locale)) />
1238 <#assign titleEquipamiento = equipamiento.getTitle(locale) />
1239 <#assign structureName = "equipamiento.mayus" />
1240 <#assign tipoEquipamiento = equipamiento.getDescription(locale)/>
1241 <#assign provinciasEquipamiento = ventanaCommonService.getProvinciaMunicipioEquipamiento(groupId?string, equipamiento.getArticleId(), locale) />
1242 <#assign imagen = aArticleXML.valueOf("/root/dynamic-element/dynamic-element[@name='ImagenPrincipalEquipamiento']/dynamic-content/text()") />
1243 <#if imagen == "">
1244 <#assign imagen = themeDisplay.getPathThemeImages() + "/fotoNoDisponible.jpg" />
1245 <#else>
1246 <#if imagen?contains("/medioambiente/portal")>
1247 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid />
1248 <#elseif imagen?contains("/medioambiente")>
1249 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid />
1250 <#else>
1251 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid />
1252 </#if>
1253 <#assign descriptionFileEntry = "" />
1254
1255 </#if>
1256 <#assign discapacidadFisica = aArticleXML.valueOf("/root/dynamic-element[@name='discapacidadFisica']/dynamic-content/text()") />
1257 <#assign discapacidadVisual = aArticleXML.valueOf("/root/dynamic-element[@name='discapacidadVisual']/dynamic-content/text()") />
1258 <#assign discapacidadAuditiva = aArticleXML.valueOf("/root/dynamic-element[@name='discapacidadAuditiva']/dynamic-content/text()") />
1259 <#-- Inicio Get enlace -->
1260 <#assign classNameWebContent = "com.liferay.journal.model.JournalArticle"/>
1261 <#assign classPKWebContent = equipamiento.getResourcePrimKey()?number/>
1262 <#assign webContent = assentEntryLocalService.fetchEntry(classNameWebContent,classPKWebContent)/>
1263 <#assign entryId = webContent.getEntryId()/>
1264 <#assign entryClassPK = webContent.getClassPK()/>
1265 <#assign enlace = ventanaCommonService.getEnlaceVentana(themeDisplay,entryClassPK,entryId)>
1266 <#-- Fin get enlace -->
1267 <div class="evr-map-result__box reflex-col-xs-12 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-3">
1268 <a href="${enlace}">
1269 <article class="evr-article-collage-map">
1270 <div class="evr-article-collage-map__container">
1271
1272 <div class="evr-article-collage-map__collection">
1273 <figure class="evr-article-collage-map__thumb">
1274 <img <#if descriptionFileEntry??>title="${descriptionFileEntry}"</#if> src="${imagen}" alt="${titleEquipamiento}" />
1275 </figure>
1276 </div>
1277 <div class="evr-article-collage-map__body">
1278 <#assign clave = tipoEquipamiento?replace(" ","") />
1279 <span class="evr-article-collage-map__tag"><@liferay.language key="${structureName}"/>: <@liferay.language key="${clave}"/></span>
1280 <span class="evr-article-collage-map__title">${titleEquipamiento}</span>
1281 <span class="evr-article-collage-map__time">${provinciasEquipamiento}</span>
1282 <div class="evr-article-collage-map__container-accesible">
1283 <#if discapacidadFisica == "true" >
1284 <button class="evr-article-collage-map__accesible-ico">
1285 <i class="fa fa-wheelchair"></i> <span
1286 class="hide-accessible">Icono de accesibilidad
1287 física</span>
1288 </button>
1289 </#if>
1290 <#if discapacidadVisual == "true">
1291 <button class="evr-article-collage-map__accesible-ico">
1292 <i class="fa fa-low-vision"></i> <span
1293 class="hide-accessible">Icono de accesibilidad
1294 visual</span>
1295 </button>
1296 </#if>
1297 <#if discapacidadAuditiva == "true">
1298 <button class="evr-article-collage-map__accesible-ico">
1299 <i class="fa fa-assistive-listening-systems"></i> <span
1300 class="hide-accessible">Icono de accesibilidad
1301 auditiva</span>
1302 </button>
1303 </#if>
1304 </div>
1305 </div>
1306
1307 </div>
1308 </article>
1309 </a>
1310 </div>
1311 </#list>
1312 </div>
1313 </#if>
1314 <#if listContentEquipamiento3?size gt 0>
1315
1316 <div class="evr-map-result__paragraph hidden eq3">
1317 <#list listContentEquipamiento3?sort_by("title") as equipamiento>
1318 <#assign aArticleXML = saxReaderUtil.read(equipamiento.getContentByLocale(locale)) />
1319 <#assign titleEquipamiento = equipamiento.getTitle(locale) />
1320 <#assign structureName = "equipamiento.mayus" />
1321 <#assign provinciasEquipamiento = ventanaCommonService.getProvinciaMunicipioEquipamiento(groupId?string, equipamiento.getArticleId(), locale) />
1322 <#assign tipoEquipamiento = equipamiento.getDescription(locale)/>
1323 <#assign imagen = aArticleXML.valueOf("/root/dynamic-element/dynamic-element[@name='ImagenPrincipalEquipamiento']/dynamic-content/text()") />
1324 <#if imagen == "">
1325 <#assign imagen = themeDisplay.getPathThemeImages() + "/fotoNoDisponible.jpg" />
1326 <#else>
1327 <#if imagen?contains("/medioambiente/portal")>
1328 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid />
1329 <#elseif imagen?contains("/medioambiente")>
1330 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid />
1331 <#else>
1332 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid />
1333 </#if>
1334 </#if>
1335 <#assign discapacidadFisica = aArticleXML.valueOf("/root/dynamic-element[@name='discapacidadFisica']/dynamic-content/text()") />
1336 <#assign discapacidadVisual = aArticleXML.valueOf("/root/dynamic-element[@name='discapacidadVisual']/dynamic-content/text()") />
1337 <#assign discapacidadAuditiva = aArticleXML.valueOf("/root/dynamic-element[@name='discapacidadAuditiva']/dynamic-content/text()") />
1338 <#-- Inicio Get enlace -->
1339 <#assign classNameWebContent = "com.liferay.journal.model.JournalArticle"/>
1340 <#assign classPKWebContent = equipamiento.getResourcePrimKey()?number/>
1341 <#assign webContent = assentEntryLocalService.fetchEntry(classNameWebContent,classPKWebContent)/>
1342 <#assign entryId = webContent.getEntryId()/>
1343 <#assign entryClassPK = webContent.getClassPK()/>
1344 <#assign enlace = ventanaCommonService.getEnlaceVentana(themeDisplay,entryClassPK,entryId)>
1345
1346 <#-- Fin get enlace -->
1347
1348 <div class="evr-map-result__box reflex-col-xs-12 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-3">
1349 <a href="${enlace}">
1350 <article class="evr-article-collage-map">
1351 <div class="evr-article-collage-map__container">
1352
1353 <div class="evr-article-collage-map__collection">
1354 <figure class="evr-article-collage-map__thumb">
1355 <img src="${imagen}" alt="${titleEquipamiento}" />
1356 </figure>
1357 </div>
1358 <div class="evr-article-collage-map__body">
1359 <#assign clave = tipoEquipamiento?replace(" ","") />
1360 <span class="evr-article-collage-map__tag"><@liferay.language key="${structureName}"/>: <@liferay.language key="${clave}"/></span>
1361 <span class="evr-article-collage-map__title">${titleEquipamiento}</span>
1362 <span class="evr-article-collage-map__time">${provinciasEquipamiento}</span>
1363 <div class="evr-article-collage-map__container-accesible">
1364 <#if discapacidadFisica == "true" >
1365 <button class="evr-article-collage-map__accesible-ico">
1366 <i class="fa fa-wheelchair"></i> <span
1367 class="hide-accessible">Icono de accesibilidad
1368 física</span>
1369 </button>
1370 </#if>
1371 <#if discapacidadVisual == "true">
1372 <button class="evr-article-collage-map__accesible-ico">
1373 <i class="fa fa-low-vision"></i> <span
1374 class="hide-accessible">Icono de accesibilidad
1375 visual</span>
1376 </button>
1377 </#if>
1378 <#if discapacidadAuditiva == "true">
1379 <button class="evr-article-collage-map__accesible-ico">
1380 <i class="fa fa-assistive-listening-systems"></i> <span
1381 class="hide-accessible">Icono de accesibilidad
1382 auditiva</span>
1383 </button>
1384 </#if>
1385 </div>
1386 </div>
1387 </div>
1388 </article>
1389 </a>
1390 </div>
1391 </#list>
1392 </div>
1393 </#if>
1394 </section>
1395 </section>
1396 </@>
1397
1398 </#if>
1399
1400 <#-- Noticias y avisos subsection -->
1401 <#if noticias != "">
1402 <@liferay_ui["section"] >
1403 <span class="only-print__title">${tabs_list[2]}</span>
1404 <div class="evr-panel-content__container reflex-container tab-pane evr-rest-content">
1405 <div class="reflex-grid">
1406 <#list currentArticleRelatedLinks as related_entry>
1407 <#assign relatedAssetEntryId = related_entry.getEntryId2() />
1408 <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) />
1409 <#assign relatedAssetType = relatedAssetEntry.getClassName() />
1410 <#if relatedAssetType == "com.liferay.journal.model.JournalArticle">
1411 <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() />
1412 <#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) />
1413 <#assign relatedArticleId = relatedArticle.getArticleId() />
1414
1415 <#assign structure = relatedArticle.getDDMStructure().getName("es_ES") />
1416
1417
1418 <#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContentByLocale(locale)) />
1419 <!-- Elementos del contenido -->
1420 <#assign titulo = relatedArticle.getTitle(locale)>
1421 <#assign descriptionNoticia = relatedArticle.getDescription(locale)>
1422 <#assign containsHref = "false">
1423 <#if descriptionNoticia?contains("href")>
1424 <#assign containsHref = "true">
1425 </#if>
1426 <#assign assetPublishDate = relatedArticle.getCreateDate()>
1427 <!-- imagen del recurso -->
1428 <#if aArticleXML.valueOf("//dynamic-element[@name='ficheroImagenAdicionalEstructuraNoticia']/dynamic-content/text()")?has_content>
1429 <#assign contentImagen = aArticleXML.valueOf("//dynamic-element[@name='ficheroImagenAdicionalEstructuraNoticia']/dynamic-content/text()")/>
1430 <#else>
1431 <#assign contentImagen = "" />
1432 </#if>
1433 <#if contentImagen == "">
1434 <#if aArticleXML.valueOf("//dynamic-element[@name='Imagen3eho']/dynamic-content/text()")?has_content>
1435 <#assign contentImagen = aArticleXML.valueOf("//dynamic-element[@name='Imagen3eho']/dynamic-content/text()")/>
1436 <#else>
1437 <#assign contentImagen = "" />
1438 </#if>
1439 </#if>
1440 <#if contentImagen != "">
1441 <#if contentImagen?contains("/medioambiente/portal")>
1442 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1443 <#elseif contentImagen?contains("/medioambiente")>
1444 <#assign contentImagen = contentImagen?replace("/medioambiente", "/medioambiente/portal") />
1445 <#else>
1446 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1447 </#if>
1448 <#-- no estaba en la 7.4 añadido de la 7.0 -->
1449 <#assign params = contentImagen?split("/") />
1450 <#if params?size gt 6>
1451 <#assign groupid = contentImagen?split("/")[4] />
1452 <#assign uuId = contentImagen?split("/")[7] />
1453 <#assign descriptionFileEntry = "" />
1454 <#if groupid?? && groupid!="" && groupid?has_content && uuId?? && uuId!="" && uuId?has_content &&dlFileEntryLocalService.fetchFileEntry(uuId?string, groupId?number)?? >
1455 <#assign descriptionFileEntry = dlFileEntryLocalService.fetchFileEntry(uuId?string, groupId?number).getDescription() />
1456 </#if>
1457 </#if>
1458 <#-- no estaba en la 7.4 añadido de la 7.0 -->
1459 </#if>
1460 <#if contentImagen =="">
1461 <#assign contentImagen = themeDisplay.getPathThemeImages()+"/fotoNoDisponible.jpg"/>
1462 </#if>
1463 <#if (structure == "Noticia" || structure == "Avisos") >
1464 <#-- Inicio Get enlace -->
1465 <#assign classNameWebContent = relatedAssetEntry.getClassName() />
1466 <#assign classPKWebContent = relatedAssetEntry.getClassPK()?number/>
1467 <#assign webContent = assentEntryLocalService.fetchEntry(classNameWebContent,classPKWebContent)/>
1468 <#assign entryId = webContent.getEntryId()/>
1469 <#assign entryClassPK = webContent.getClassPK()/>
1470 <#assign enlace = ventanaCommonService.getEnlaceVentana(themeDisplay,entryClassPK,entryId)>
1471 <#assign nombreTipo= languageUtil.get(locale, structure?lower_case) />
1472 <#if structure == "Avisos">
1473 <#assign nombreTipo= languageUtil.get(locale, "aviso") />
1474 </#if>
1475 <#-- Fin get enlace -->
1476 <#assign numeroNoticias = numeroNoticias + 1 />
1477 <div class="reflex-col-xs-12 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-3">
1478 <article class="evr-article-result">
1479 <a href="${enlace}" style="text-decoration: none;">
1480 <div class="evr-article-result__container">
1481 <figure class="evr-article-result__thumb">
1482 <img <#if descriptionFileEntry??>title="${descriptionFileEntry}"</#if>
1483 loading="lazy" data-lazy="${contentImagen}" src ="${contentImagen}" alt="">
1484 </figure>
1485 <div class="evr-article-result__body">
1486 <h3><strong class="evr-article-result__txt">${nombreTipo}</strong></h3>
1487 <span class="evr-article-result__time">${assetPublishDate?string('dd/MM/yyyy')}</span>
1488 <strong class="evr-article-result__txt">${titulo}</strong>
1489 <#if descriptionNoticia?length gt 69>
1490 <#if containsHref == "true">
1491 <p class="evr-article-result__txt">${descriptionNoticia[0..descriptionNoticia?length-1]}</p>
1492 <#else>
1493 <p class="evr-article-result__txt">${descriptionNoticia[0..69]}...</p>
1494 </#if>
1495 <#else>
1496 <p class="evr-article-result__txt">${descriptionNoticia}</p>
1497 </#if>
1498 </div>
1499 </div>
1500 </a>
1501 </article>
1502 </div>
1503 </#if>
1504 </#if>
1505 </#list>
1506 </div>
1507 </div>
1508 </@>
1509 </#if>
1510
1511 <#-- Actividades subsection: -->
1512 <#if actividades != "">
1513 <@liferay_ui["section"] >
1514 <span class="only-print__title">${tabs_list[3]}</span>
1515 <div class="evr-panel-content__container reflex-container-full tab-pane evr-rest-content">
1516 <div style="text-align: justify;" >
1517 <#if descripcionActividad != "">
1518 <p class="evr-panel-content__paragraph">${descripcionActividad}</p>
1519 </#if>
1520 </div>
1521 <#if idTipob?? && getterUtil.getBoolean(idTipob)!=true>
1522 <#if actividadGenerales.length() != 0>
1523 <div class="pru actividadesCSS" >
1524 <#list 0 ..< actividadGenerales.length() as i>
1525 <#list actividadGenerales.get(i) as element>
1526 <#assign nombreActividad = element.get("nombreActividad")>
1527 <#assign imgActividad = element.get("imgActividad")>
1528 <#if imgActividad != "" && imgActividad?contains("groupId") && imgActividad?contains("fileEntryId") && imgActividad?contains("title") && imgActividad?contains("uuid") >
1529 <#if imgActividad?contains("/medioambiente/portal")>
1530 <#assign imgActividad = "/medioambiente/portal/documents/" + imgActividad?eval.groupId + "/" + imgActividad?eval.fileEntryId + "/" + imgActividad?eval.title + "/" + imgActividad?eval.uuid />
1531 <#elseif imgActividad?contains("/medioambiente")>
1532 <#assign imgActividad = imgActividad?replace("/medioambiente", "/medioambiente/portal") />
1533 <#else>
1534 <#assign imgActividad = "/medioambiente/portal/documents/" + imgActividad?eval.groupId + "/" + imgActividad?eval.fileEntryId + "/" + imgActividad?eval.title + "/" + imgActividad?eval.uuid />
1535 </#if>
1536 <#else>
1537 <#assign imgActividad = themeDisplay.getPathThemeImages()+"/fotoNoDisponible.jpg"/>
1538 </#if>
1539 <#assign tipo = element.get("tipo")>
1540 <#assign descripcion = element.get("descripcion")>
1541 <#assign enlace = element.get("enlace")>
1542 <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12" >
1543 <article class="evr-article-collage evr-article-collage__activities" style="height:333px;">
1544 <div class="evr-article-collage__container" style="height=100%;">
1545 <figure class="evr-article-result__thumb" style="width: 100%;">
1546 <img loading="lazy" data-lazy="${imgActividad}" src="${imgActividad}"/>
1547 </figure>
1548 <a href="${enlace}" style="text-decoration: none;">
1549 <div class="evr-article-collage__body">
1550 <#if tipo = "Actividad General">
1551 <#assign tipoActGen = languageUtil.get(locale, "actividad.actividad.general") >
1552 <strong class="evr-article-collage__tag">${tipoActGen?upper_case}</strong>
1553 <#elseif tipo = "Actividad específica espacios naturales">
1554 <!-- <#assign tipoActEsp = languageUtil.get(locale, "actividad.actividad.espec.esp.nat") > -->
1555 <strong class="evr-article-collage__tag"></strong>
1556 </#if>
1557 <span class="evr-article-collage__title">${nombreActividad}</span>
1558 <#if (descripcion?length)<= 210 >
1559 <span class="evr-article-collage-map__time">${descripcion}</span>
1560 <#else>
1561 <span class="evr-article-collage-map__time">${descripcion?substring(0,210)}...</span>
1562 </#if>
1563 </div>
1564 </a>
1565 </div>
1566 </article>
1567 </div>
1568 </#list>
1569 </#list>
1570 </div>
1571 </#if>
1572 </#if>
1573 <br>
1574 <#if actividadesRelacionadas == "true">
1575 <span class="evr-panel-content__title"><@liferay.language key="espacio.natural.actividades.disponibles"/></span>
1576 <div class="reflex-grid">
1577 <#list currentArticleRelatedLinks as related_entry>
1578 <#assign relatedAssetEntryId = related_entry.getEntryId2() />
1579 <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) />
1580 <#assign relatedAssetType = relatedAssetEntry.getClassName() />
1581 <#if relatedAssetType == "com.liferay.journal.model.JournalArticle">
1582 <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() />
1583 <#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) />
1584 <#assign relatedArticleId = relatedArticle.getArticleId() />
1585
1586 <#assign structure = relatedArticle.getDDMStructure().getName("es_ES") />
1587
1588 <#-- Inicio Get enlace -->
1589 <#assign classNameWebContent = relatedAssetEntry.getClassName() />
1590 <#assign classPKWebContent = relatedAssetEntry.getClassPK()?number/>
1591 <#assign webContent = assentEntryLocalService.fetchEntry(classNameWebContent,classPKWebContent)/>
1592 <#assign entryId = webContent.getEntryId()/>
1593 <#assign entryClassPK = webContent.getClassPK()/>
1594 <#assign enlace = ventanaCommonService.getEnlaceVentana(themeDisplay,entryClassPK,entryId)>
1595 <#-- Fin get enlace -->
1596
1597
1598 <#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContentByLocale(locale)) />
1599 <!-- Elementos del contenido -->
1600 <#assign descripcionAct = aArticleXML.valueOf("//dynamic-element[@name='descripcionActividad']/dynamic-content/text()") />
1601 <#assign titulo = relatedArticle.getTitle(locale)>
1602 <!-- imagen del recurso -->
1603 <#if aArticleXML.valueOf("//dynamic-element[@name='ImagenDeActividad']/dynamic-content/text()")?has_content>
1604 <#assign contentImagen = aArticleXML.valueOf("//dynamic-element[@name='ImagenDeActividad']/dynamic-content/text()")/>
1605 <#if contentImagen != "">
1606 <#if contentImagen?contains("/medioambiente/portal")>
1607 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1608 <#elseif contentImagen?contains("/medioambiente")>
1609 <#assign contentImagen = contentImagen?replace("/medioambiente", "/medioambiente/portal") />
1610 <#else>
1611 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1612 </#if>
1613 <#assign descriptionFileEntry = "" />
1614 <#if contentImagen?eval.fileEntryId?? >
1615 <#if dlFileEntryLocalService.fetchDLFileEntry(contentImagen?eval.fileEntryId?number)?? >
1616 <#assign descriptionFileEntry = dlFileEntryLocalService.fetchDLFileEntry(contentImagen?eval.fileEntryId?number).getDescription() />
1617 </#if>
1618 </#if>
1619 </#if>
1620 <#else>
1621 <#assign contentImagen = "" />
1622 </#if>
1623 </#if>
1624 </#list>
1625 </div>
1626 </#if>
1627 <div>
1628 <#if boolEcoturismo?? && getterUtil.getBoolean(boolEcoturismo)!=true>
1629 <div class="evr-show-content__button">
1630 <#--<h3 class="evr-show-content__title"><a class="evr-show-content__link" href="${urlCartaEuropea}" style="background-image: url(/medioambiente/portal/o/ventana-theme/images/componente_botones/RTV.jpg)" target="_blank">Enlace a empresas adheridas a la Carta Europea de Turismo Sostenible ></a></h3>-->
1631 <@liferay_portlet["runtime"]
1632 portletProviderAction=portletProviderAction.VIEW
1633 portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet"
1634 instanceId="J0iRn4L1zQ2"
1635 />
1636 </div>
1637 </#if>
1638 </div>
1639
1640 </div>
1641 </@>
1642 </#if>
1643
1644 <#-- Agenda subsection -->
1645 <#if agenda != "">
1646 <@liferay_ui["section"] >
1647 <span class="only-print__title">${tabs_list[4]}</span>
1648 <div class="evr-panel-content__container reflex-container tab-pane ">
1649 <div class="reflex-grid">
1650 <#list currentArticleRelatedLinks as related_entry>
1651 <#assign relatedAssetEntryId = related_entry.getEntryId2() />
1652 <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) />
1653 <#assign relatedAssetType = relatedAssetEntry.getClassName() />
1654 <#if relatedAssetType == "com.liferay.journal.model.JournalArticle">
1655 <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() />
1656 <#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) />
1657 <#assign relatedArticleId = relatedArticle.getArticleId() />
1658
1659 <#assign structure = relatedArticle.getDDMStructure().getName("es_ES") />
1660
1661 <#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContentByLocale(locale)) />
1662 <!-- Elementos del contenido -->
1663 <#assign titulo = relatedArticle.getTitle(locale)>
1664 <#assign descriptionNoticia = relatedArticle.getDescription(locale)>
1665 <#assign assetPublishDate = relatedArticle.getDisplayDate()>
1666 <!-- imagen del recurso -->
1667 <#if aArticleXML.valueOf("//dynamic-element[@name='ficheroImagenEventoEstructuraEvento']/dynamic-content/text()")?has_content>
1668 <#assign contentImagen = aArticleXML.valueOf("//dynamic-element[@name='ficheroImagenEventoEstructuraEvento']/dynamic-content/text()")/>
1669 <#if contentImagen != "">
1670 <#if contentImagen?contains("/medioambiente/portal")>
1671 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1672 <#elseif contentImagen?contains("/medioambiente")>
1673 <#assign contentImagen = contentImagen?replace("/medioambiente", "/medioambiente/portal") />
1674 <#else>
1675 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1676 </#if>
1677 </#if>
1678 <#else>
1679 <#assign contentImagen = "" />
1680 </#if>
1681 <!-- fecha del recurso -->
1682 <#if aArticleXML.valueOf("//dynamic-element[@name='fechaEventoDesdeEstructuraEvento']/dynamic-content/text()")?has_content>
1683 <#assign assetPublishDate = aArticleXML.valueOf("//dynamic-element[@name='fechaEventoDesdeEstructuraEvento']/dynamic-content/text()")/>
1684 <#assign assetPublishDate_DateObj = dateUtil.parseDate("yyyy-MM-dd", assetPublishDate, locale)>
1685
1686 </#if>
1687
1688 <#if (structure == "Evento") >
1689 <#-- Inicio Get enlace -->
1690 <#assign classNameWebContent = relatedAssetEntry.getClassName() />
1691 <#assign classPKWebContent = relatedAssetEntry.getClassPK()?number/>
1692 <#assign webContent = assentEntryLocalService.fetchEntry(classNameWebContent,classPKWebContent)/>
1693 <#assign entryId = webContent.getEntryId()/>
1694 <#assign entryClassPK = webContent.getClassPK()/>
1695 <#assign enlace = ventanaCommonService.getEnlaceVentana(themeDisplay,entryClassPK,entryId)>
1696 <#-- Fin get enlace -->
1697 <div class="reflex-col-xs-12 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-3">
1698 <article class="evr-article-result">
1699 <a href="${enlace}" style="text-decoration: none;">
1700 <div class="evr-article-result__container">
1701 <figure class="evr-article-result__thumb">
1702 <img <#if descriptionFileEntry??>title="${descriptionFileEntry}"</#if> loading="lazy"
1703 data-lazy="${contentImagen}" src ="${contentImagen}" alt="">
1704 </figure>
1705 <div class="evr-article-result__body">
1706 <h3><strong class="evr-article-result__txt">${structure}</strong></h3>
1707 <#attempt>
1708 <span class="evr-article-result__time">${dateUtil.getDate(assetPublishDate_DateObj, "dd/MM/yyyy", locale)}</span>
1709 <#recover>
1710 <span class="evr-article-result__time"></span>
1711 </#attempt>
1712 <strong class="evr-article-result__txt">${titulo}</strong>
1713 <p class="evr-article-result__txt">${descriptionNoticia}</p>
1714 </div>
1715 </div>
1716 </a>
1717 </article>
1718 </div>
1719 </#if>
1720 </#if>
1721 </#list>
1722 </div>
1723 </div>
1724 </@>
1725 </#if>
1726
1727 <#-- Empresas subsection:-->
1728 <#if empresas != "">
1729 <@liferay_ui["section"] >
1730 <span class="only-print__title">${tabs_list[5]}</span>
1731 <div class="evr-panel-content__container reflex-container tab-pane ">
1732 <span class="evr-panel-content__title">
1733 <img class="evr-panel-protection__fig" style="width: auto; vertical-align: middle;" src ="/medioambiente/portal/o/ventana-theme/images/icons/logopna2.png" alt="CARTA EUROPEA DE TURISMO SOSTENIBLE">
1734 <@liferay.language key="espacio.natural.marca.parque.natural.de.andalucia"/>
1735 </span>
1736 <div class="reflex-grid">
1737
1738 <#assign listaOrdenada = ventanaCommonService.ordenarAlfabeticamenteJournal(listEmpresas,locale)>
1739 <#assign empresasAux = [] />
1740 <#list listaOrdenada as relatedArticle>
1741 <#assign relatedArticleId = relatedArticle.getArticleId()/>
1742 <#if !empresasAux?seq_contains(relatedArticleId)>
1743 <#assign empresasAux = empresasAux + [relatedArticleId]/>
1744
1745
1746 <#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContentByLocale(locale)) />
1747 <!-- Elementos del contenido -->
1748 <#assign titulo = relatedArticle.getTitle(locale)>
1749 <!-- imagen del recurso -->
1750 <#if aArticleXML.valueOf("//dynamic-element[@name='imagenEmpresa']/dynamic-content/text()")?has_content>
1751 <#assign contentImagen = aArticleXML.valueOf("//dynamic-element[@name='imagenEmpresa']/dynamic-content/text()")/>
1752 <#if contentImagen != "">
1753 <#if contentImagen?contains("/medioambiente/portal")>
1754 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1755 <#elseif contentImagen?contains("/medioambiente")>
1756 <#assign contentImagen = contentImagen?replace("/medioambiente", "/medioambiente/portal") />
1757 <#else>
1758 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1759 </#if>
1760 </#if>
1761 <#else>
1762 <#assign contentImagen = "/medioambiente/portal/o/ventana-theme/images/icons/mpn.jpg" />
1763 </#if>
1764 <#assign descripcionEmpresa = aArticleXML.valueOf("//dynamic-element[@name='descripcionEmpresa']/dynamic-content/text()")/>
1765 <#assign direccionEmpresa = aArticleXML.valueOf("//dynamic-element[@name='direccionEmpresa']/dynamic-content/text()")/>
1766 <#assign telefonoEmpresa = aArticleXML.valueOf("//dynamic-element[@name='telefonoEmpresa']/dynamic-content/text()")/>
1767 <#assign emailEmpresa = aArticleXML.valueOf("//dynamic-element[@name='emailEmpresa']/dynamic-content/text()")/>
1768 <#assign URLEmpresa = aArticleXML.valueOf("//dynamic-element[@name='URLEmpresa']/dynamic-content/text()")/>
1769 <#assign provinciaE = aArticleXML.valueOf("//dynamic-element[@name='idProvincia']/dynamic-content/text()")/>
1770 <#assign municipioE = aArticleXML.valueOf("//dynamic-element[@name='idMunicipio']/dynamic-content/text()")/>
1771 <#if !URLEmpresa?matches(".*:.*") && URLEmpresa != "None">
1772 <#assign URLEmpresa = "http://" + URLEmpresa>
1773 </#if>
1774
1775 <div class="reflex-col-xs-0 reflex-col-sm-6 reflex-col-md-4 reflex-col-lg-3">
1776 <article class="evr-article-result evr-article-result__services">
1777 <div class="evr-article-result__container">
1778 <div class="evr-article-collage-map__collection" style="height: auto;">
1779 <figure class="evr-article-result__thumb" style="width: 100%;">
1780 <img loading="lazy" data-lazy="${contentImagen}" src ="${contentImagen}" alt=""
1781 class="evr-article-result__image-150">
1782 </figure>
1783 </div>
1784 <div class="evr-article-result__body">
1785 <strong class="evr-article-result__txt">${titulo}</strong>
1786 <p class="evr-article-result__txt">${descripcionEmpresa}</p>
1787 <p class="evr-article-result__txt">${direccionEmpresa}</p>
1788 <#if municipioE?? && municipioE?has_content || provinciaE?? && provinciaE?has_content>
1789 <p class="evr-article-result__txt">${municipioE} (${provinciaE})</p>
1790 </#if>
1791 <#if telefonoEmpresa!="None">
1792 <p class="evr-article-result__txt">${telefonoEmpresa}</p>
1793 </#if>
1794 <p class="evr-article-result__txt"><#if emailEmpresa!="None">${emailEmpresa}</#if></p>
1795 <#if URLEmpresa != "None">
1796 <p class="evr-article-result__txt"><a href="${URLEmpresa}" target="_blank">${URLEmpresa}</a></p>
1797 </#if>
1798 </div>
1799 </div>
1800 </article>
1801 </div>
1802 </#if>
1803 </#list>
1804
1805 </div>
1806 <div>
1807
1808 <#--<span class="evr-panel-content__title">
1809 <img class="evr-panel-protection__fig" style="width: auto; vertical-align: middle;" src ="/medioambiente/portal/o/ventana-theme/images/icons/ES_Charterlogo.png" alt="CARTA EUROPEA DE TURISMO SOSTENIBLE">CARTA EUROPEA DE TURISMO SOSTENIBLE
1810 </span>-->
1811 <div class="evr-show-content__button">
1812 <#--<h3 class="evr-show-content__title"><a class="evr-show-content__link" href="${urlCartaEuropea}" style="background-image: url(/medioambiente/portal/o/ventana-theme/images/componente_botones/RTV.jpg)" target="_blank">Enlace a empresas adheridas a la Carta Europea de Turismo Sostenible ></a></h3>-->
1813 <@liferay_portlet["runtime"]
1814 portletProviderAction=portletProviderAction.VIEW
1815 portletName="com_liferay_journal_content_web_portlet_JournalContentPortlet"
1816 instanceId="J0iRn4L1zQ"
1817 />
1818 </div>
1819 </div>
1820 </div>
1821 </@>
1822 </#if>
1823
1824 <#-- Buenas practicas subsection: TODO cambiar por el assetsearch -->
1825 <#if contenidosBuenasPracticas?has_content && contenidosBuenasPracticas?size gt 0>
1826 <@liferay_ui["section"] >
1827 <span class="only-print__title">${tabs_list[6]}</span>
1828 <div class="evr-panel-content__container reflex-container tab-pane evr-rest-content">
1829 <div class="reflex-grid">
1830 <#list contenidosBuenasPracticas as cbp>
1831 <#assign aArticleXML = saxReaderUtil.read(cbp.getContentByLocale(locale)) />
1832 <#-- Titulo -->
1833 <#assign titulo = cbp.getTitle(locale)>
1834 <#-- Imagen -->
1835 <#assign contentImagen = aArticleXML.valueOf("//dynamic-element[@name='IconoBP']/dynamic-content/text()")/>
1836 <#if contentImagen != "">
1837 <#if contentImagen?contains("/medioambiente/portal")>
1838 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1839 <#elseif contentImagen?contains("/medioambiente")>
1840 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1841 <#else>
1842 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid />
1843 </#if>
1844 </#if>
1845 <#-- Descripcion -->
1846 <#assign descripcionBP = aArticleXML.valueOf("//dynamic-element[@name='descripcionBP']/dynamic-content/text()")/>
1847 <div class="reflex-col-xs-6 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-3">
1848 <article class="evr-article-result evr-article-result__practices">
1849 <div class="evr-article-result__container">
1850 <div class="evr-article-collage-map__collection" style="height: auto;">
1851 <figure style="padding: 15px; text-align: center;">
1852 <img src ="${contentImagen}" alt="${titulo}">
1853 </figure>
1854 </div>
1855 <div class="evr-article-result__body">
1856 <p class="evr-article-result__txt">${descripcionBP}</p>
1857 </div>
1858 </div>
1859 </article>
1860 </div>
1861 </#list>
1862 </div>
1863 </div>
1864 </@>
1865 <#else>
1866 <#assign buenaspracticas = "" >
1867 </#if>
1868 <#-- Publicaciones subsection -->
1869 <#if publicaciones != "">
1870 <@liferay_ui["section"] >
1871 <span class="only-print__title">${tabs_list[7]}</span>
1872 <div class="evr-panel-content__container reflex-container tab-pane">
1873 <div class="pru">
1874
1875 <#assign count = 0>
1876 <#assign count2 = 1>
1877 <#assign categoriasPadre = ventanaCommonService.getCategoriasPadreFromPublicaciones(relatedAssetEntries)/>
1878 <#assign tituloPadre = "">
1879
1880 <#list categoriasPadre as related_entry>
1881 <#-- <#assign relatedAssetEntryId = related_entry.getEntryId2() /> -->
1882 <#-- <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> -->
1883 <#-- <#assign fileEntryId = relatedAssetEntry.getClassPK() /> -->
1884 <#-- <#assign relatedAssetType = relatedAssetEntry.getClassName() /> -->
1885 <#assign tituloCategoriasPadre = ventanaCommonService.getTituloCategoriasPadreFromPublicaciones(related_entry)/>
1886 <#list tituloCategoriasPadre?values as ct1>
1887 <#assign fileEntryId = related_entry.getClassPK() />
1888 <#assign relatedAssetType = related_entry.getClassName() />
1889 <#if relatedAssetType == "com.liferay.document.library.kernel.model.DLFileEntry">
1890 <#attempt>
1891 <#assign relatedFile = dlFileEntryLocalService.fetchDLFileEntry(fileEntryId?number) />
1892
1893 <#assign relatedScopeGroupId = relatedFile.getGroupId() />
1894 <#assign documentUuid = relatedFile.getUuid() />
1895 <#assign urlFile = "/medioambiente/portal/documents/" + relatedScopeGroupId + "/" + documentUuid />
1896
1897 <!-- Elementos del contenido -->
1898 <#assign categorias = ventanaCommonService.getCategoriasFromPublicaciones(related_entry) />
1899 <#assign img = ventanaCommonService.getImagenesPublicaciones(related_entry) />
1900 <#assign relatedScopeGroupIdImg = img.getGroupId() />
1901 <#assign fileTitle = img.getTitle() />
1902 <#assign imgDlfilentry = dlFileEntryLocalService.fetchDLFileEntry(img.getClassPK()?number) />
1903 <#assign urlFileImg = "/medioambiente/portal/documents/" + relatedScopeGroupIdImg + "/"+imgDlfilentry.getFolderId()+"/" + fileTitle />
1904 <#assign titulo = relatedFile.getDescription()>
1905
1906 <#if img.getMimeType()?contains("image")>
1907 <#assign imagenPorDefecto= false/>
1908 <#assign src = urlFileImg/>
1909 <#else>
1910
1911 <#assign src =ventanaCommonService.getRutaIconoExtension(relatedFile.getExtension(),themeDisplay) />
1912
1913 <#assign imagenPorDefecto= true/>
1914 </#if>
1915
1916
1917
1918 <!--if no esta creado creas el div y si cambia el title cierras y abres uno nuevo tambien excepto si es el ultimo que slo lo cierras -->
1919 <#if tituloPadre == "">
1920 <div class="evr-panel-content__title relatedContent">
1921 <h3 class="evr-activity__title" >${ct1}</h3>
1922 <div class="mode-icons">
1923 <div class="contador">
1924 <p class= "claseAniadir"></p>
1925 </div>
1926
1927 <div class="evr-activity__icons">
1928 <#assign imagenIcon = themeDisplay.getPathThemeImages() + "/icon_cuadricula_ventana.png" />
1929 <button id="btnCuadricula" class="evr-activity__icon" onclick="functionIcon1(0)">
1930 <img src="${imagenIcon}">
1931 </button>
1932
1933 <#assign imagenIcon2 = themeDisplay.getPathThemeImages() + "/icon_slider_ventana.png" />
1934 <button id="btnCarrousel" class="evr-activity__icon" onclick="functionIcon22(0)">
1935 <img src="${imagenIcon2}">
1936 </button>
1937 </div>
1938 </div>
1939 </div>
1940 <div class="subtipoEq">
1941 <div class="pru evr-activity__list">
1942 </#if>
1943
1944 <#if tituloPadre != ct1 && tituloPadre != "">
1945 </div>
1946 </div>
1947 <div class="evr-panel-content__title relatedContent">
1948 <h3 class="evr-activity__title" >${ct1}</h3>
1949 <div class="mode-icons">
1950 <div class="contador">
1951 <p class= "claseAniadir"></p>
1952 </div>
1953
1954 <div class="evr-activity__icons">
1955 <#assign imagenIcon = themeDisplay.getPathThemeImages() + "/icon_cuadricula_ventana.png" />
1956 <button id="btnCuadricula" class="evr-activity__icon" onclick="functionIcon1(${count2})">
1957 <img src="${imagenIcon}">
1958 </button>
1959
1960 <#assign imagenIcon2 = themeDisplay.getPathThemeImages() + "/icon_slider_ventana.png" />
1961 <button id="btnCarrousel" class="evr-activity__icon" onclick="functionIcon22(${count2})">
1962 <img src="${imagenIcon2}">
1963 </button>
1964 </div>
1965 </div>
1966 </div>
1967
1968 <div class="subtipoEq">
1969 <#assign count2 = count2 + 1>
1970 <div class="pru evr-activity__list">
1971 </#if>
1972
1973 <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 evr-activity__element">
1974
1975
1976
1977
1978 <article class="evr-article-collage evr-article-collage__publications">
1979 <div class="evr-article-collage__container">
1980
1981 <#if imagenPorDefecto >
1982 <figure class="evr-article-result__thumb evr-article-result__no-thumb" >
1983 <img loading="lazy" data-lazy="${src}" src="${src}">
1984 </figure>
1985 <#else>
1986 <figure class="evr-article-result__thumb " >
1987 <img loading="lazy" data-lazy"${src}" src="${src}">
1988 </figure>
1989 </#if>
1990 <#if !imagenPorDefecto >
1991 <div class="icono-extension-publicacion">
1992
1993 <figure>
1994
1995 <#assign src2 =ventanaCommonService.getRutaIconoExtension(relatedFile.getExtension(),themeDisplay) />
1996 <img src="${src2}" >
1997 </figure>
1998
1999 </div>
2000 </#if>
2001
2002 <div class="evr-article-collage__body">
2003 <p class="evr-article-result__txt" style="width: auto; text-align: center;">
2004 <a href="${urlFile}" target="_blank"
2005 title="${titulo}"
2006 id="<portlet:namespace/>download${urlFile}"
2007 data-target="#lexFullScreenModalPDF" >
2008 <strong class="evr-article-collage__tag">
2009 ${titulo}
2010 </strong>
2011 <#list categorias?values as ct>
2012 <#if ct != ct1>
2013 <span class="evr-article-collage-map__tag" style="width: auto; text-align: center;" >${ct}</span>
2014 </#if>
2015 </#list>
2016 </a>
2017
2018 </p>
2019 </div>
2020 </div>
2021 </article>
2022 </div>
2023 <#assign count = count + 1>
2024 <#if count==categoriasPadre?size>
2025
2026 </div></div>
2027 </#if>
2028 <#assign tituloPadre = ct1>
2029 <#recover>
2030 <!--fallo en: entryId= ${related_entry.getEntryId()} entryClassPk= ${related_entry.getClassPK()} -->
2031 </#attempt>
2032 </#if>
2033
2034 </#list>
2035
2036 </#list>
2037
2038 </div>
2039 </div>
2040 </@>
2041 </#if>
2042
2043 <#-- Multimedia subsection: -->
2044
2045 <#if multimedia != "">
2046 <@liferay_ui["section"] >
2047 <span class="only-print__title">${tabs_list[8]}</span>
2048 <div class="evr-panel-content__container reflex-container tab-pane evr-rest-content">
2049 <div class="evr-carousel" style="z-index: 1000 !important;">
2050 <div class="evr-carousel__slider-container">
2051 <#if ImagenPrincipal.getSiblings()?has_content || videos.getSiblings()?has_content>
2052 <#list ImagenPrincipal.getSiblings() as cur_imagenesAdicionales>
2053 <#if cur_imagenesAdicionales?? && cur_imagenesAdicionales.getData() != "">
2054 <div>
2055 <figure class="evr-carousel__figure">
2056 <#assign imgMultimedia = cur_imagenesAdicionales.getData() />
2057 <#if imgMultimedia != "">
2058 <#if imgMultimedia?contains("/medioambiente/portal")>
2059 <#assign imgMultimedia = imgMultimedia />
2060 <#elseif imgMultimedia?contains("/medioambiente")>
2061 <#assign imgMultimedia = imgMultimedia?replace("/medioambiente", "/medioambiente/portal") />
2062 <#else>
2063 <#assign imgMultimedia = "/medioambiente/portal" + imgMultimedia />
2064 </#if>
2065 <#assign descriptionFileEntry = "" />
2066 <#if cur_imagenesAdicionales.getAttribute("fileEntryId")?? >
2067 <#if dlFileEntryLocalService.fetchDLFileEntry(cur_imagenesAdicionales.getAttribute("fileEntryId")?number)?? >
2068 <#assign descriptionFileEntry = dlFileEntryLocalService.fetchDLFileEntry(cur_imagenesAdicionales.getAttribute("fileEntryId")?number).getDescription() />
2069 </#if>
2070 </#if>
2071 </#if>
2072 <img <#if descriptionFileEntry??>title="${descriptionFileEntry}"</#if> class="evr-carousel__slider-image" src="${imgMultimedia}" >
2073 </figure>
2074 </div>
2075 </#if>
2076 </#list>
2077 <#list listadoVideos as relatedArticle>
2078 <div>
2079 <#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContent()) />
2080 <#assign ficheroEstructuraVideo = aArticleXML.valueOf("//root//dynamic-element[@name='videoEstructuraVideoFieldSet']//dynamic-element[@name='ficheroEstructuraVideo']//dynamic-content[@language-id='es_ES']/text()") />
2081 <#assign enlaceExternoEstructuraVideo = aArticleXML.valueOf("//root//dynamic-element[@name='videoEstructuraVideoFieldSet']//dynamic-element[@name='enlaceExternoEstructuraVideoFieldSet']//dynamic-element[@name='enlaceExternoEstructuraVideo']//dynamic-content[@language-id='es_ES']/text()") />
2082 <#if (ficheroEstructuraVideo?has_content && ficheroEstructuraVideo != "{}") >
2083 <#assign json = jsonFactoryUtil.createJSONObject(ficheroEstructuraVideo) />
2084 <#assign startUrl = "/medioambiente/portal/documents/" />
2085 <#assign groupId = json.get("groupId") />
2086 <#assign fileEntryId = json.get("fileEntryId") />
2087 <#assign title = json.get("title") />
2088 <#assign uuid = json.get("uuid") />
2089 <#assign urlVideo = startUrl + groupId + "/" + fileEntryId + "/" + title + "/" + uuid/>
2090 <video class="evr-video-detalle__video-design" src="${urlVideo}" controls="true" ></video>
2091 <#elseif enlaceExternoEstructuraVideo?has_content && enlaceExternoEstructuraVideo != "{}">
2092 <video class="evr-video-detalle__video-design" src="${enlaceExternoEstructuraVideo}" controls="true" ></video>
2093 </#if>
2094 </div>
2095 </#list>
2096 </#if>
2097 </div>
2098 <#if ImagenPrincipal.getSiblings()?size gt 0>
2099 <div class="evr-carousel__slider-nav">
2100 <#if ImagenPrincipal.getSiblings()?has_content>
2101 <#list ImagenPrincipal.getSiblings() as cur_imagenesAdicionales>
2102 <#if cur_imagenesAdicionales?? && cur_imagenesAdicionales.getData() != "">
2103 <div>
2104 <figure>
2105 <#assign imgMultimedia = cur_imagenesAdicionales.getData() />
2106 <#if imgMultimedia != "">
2107 <#if imgMultimedia?contains("/medioambiente/portal")>
2108 <#assign imgMultimedia = imgMultimedia />
2109 <#elseif imgMultimedia?contains("/medioambiente")>
2110 <#assign imgMultimedia = imgMultimedia?replace("/medioambiente", "/medioambiente/portal") />
2111 <#else>
2112 <#assign imgMultimedia = "/medioambiente/portal" + imgMultimedia />
2113 </#if>
2114 <#assign descriptionFileEntry = "" />
2115 <#if cur_imagenesAdicionales.getAttribute("fileEntryId")?? >
2116 <#if dlFileEntryLocalService.fetchDLFileEntry(cur_imagenesAdicionales.getAttribute("fileEntryId")?number)?? >
2117 <#assign descriptionFileEntry = dlFileEntryLocalService.fetchDLFileEntry(cur_imagenesAdicionales.getAttribute("fileEntryId")?number).getDescription() />
2118 </#if>
2119 </#if>
2120 </#if>
2121 <img <#if descriptionFileEntry??>title="${descriptionFileEntry}"</#if> class="evr-carousel__slider-nav-img" src="${imgMultimedia}">
2122 </figure>
2123 </div>
2124 </#if>
2125 </#list>
2126 </#if>
2127 <#list listadoVideos as relatedArticle>
2128 <#assign imageUrl = relatedArticle.getSmallImageURL() />
2129 <#assign imageId = relatedArticle.getSmallImageId() />
2130 <#if relatedArticle.isSmallImage() && imageUrl?has_content && imageUrl != "{}">
2131 <#assign smallImagen = imageUrl />
2132 <#elseif relatedArticle.isSmallImage() && imageId?has_content && imageId!=0>
2133 <#assign smallImagen = themeDisplay.getPathContext() + "/image/journal/article?img_id=" + imageId+"&img_thumb=1"/>
2134 </#if>
2135
2136 <#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContentByLocale(locale)) />
2137 <#if smallImagen?has_content>
2138 <div>
2139 <figure class="evr-video-play">
2140 <img src="/medioambiente/portal/o/ventana-theme/images/icons/play.svg">
2141 </figure>
2142 <figure>
2143 <img class="evr-carousel__slider-image small-img-aa" src="${smallImagen}" >
2144 </figure>
2145 </div>
2146 <#elseif aArticleXML.valueOf("//dynamic-element[@name='idMagen']/dynamic-content/text()")?has_content >
2147 <#assign imagen = aArticleXML.valueOf("//dynamic-element[@name='idMagen']/dynamic-content/text()")/>
2148 <#if imagen?has_content && imagen!="{}">
2149 <#if imagen?contains("/medioambiente/portal")>
2150 <#assign imagen = "/medioambiente/portal/documents/" + imagen?eval.groupId + "/" + imagen?eval.fileEntryId + "/" + imagen?eval.title + "/" + imagen?eval.uuid/>
2151 <#elseif imagen?contains("/medioambiente")>
2152 <#assign imagen = imagen?replace("/medioambiente", "/medioambiente/portal") />
2153 <#else>
2154 <#assign imagen = themeDisplay.getPathContext() + "/o/ventana-theme/images/fotoNoDisponible.jpg" />
2155 </#if>
2156 </#if>
2157 <div>
2158 <figure class="evr-video-play">
2159 <img src="/medioambiente/portal/o/ventana-theme/images/icons/play.svg">
2160 </figure>
2161 <figure>
2162 <img class="evr-carousel__slider-image" style="max-height: 160px;" src="${imagen}" >
2163 </figure>
2164 </div>
2165 </#if>
2166 </#list>
2167 </div>
2168 </#if>
2169 </div>
2170 </div>
2171 </@>
2172 </#if>
2173
2174 <#-- Fiestas y Tradiciones INICIO -->
2175 <#if fiestasYTradiciones != "">
2176 <@liferay_ui["section"] >
2177 <span class="only-print__title">${tabs_list[9]}</span>
2178 <div class="evr-panel-content__container reflex-container tab-pane">
2179
2180 <div class="pru">
2181
2182 <#if jsonFiestasTradiciones?? && jsonFiestasTradiciones?has_content && jsonFiestasTradiciones != "">
2183 <#list 0 ..< jsonFiestasTradiciones.length() as i>
2184 <#assign seccion = jsonFiestasTradiciones.get(i).get("seccion")>
2185 <#assign contenido = jsonFiestasTradiciones.get(i).get("contenido")>
2186 <div class="evr-panel-content__title relatedContent">
2187 <h3 class="evr-activity__title">${seccion?upper_case}</h3>
2188 <div class="mode-icons">
2189 <div class="contador">
2190 <p class= "claseAniadir"></p>
2191 </div>
2192
2193 <div class="evr-activity__icons">
2194 <#assign imagenIcon = themeDisplay.getPathThemeImages() + "/icon_cuadricula_ventana.png" />
2195
2196 <button id="btnCuadricula" class="evr-activity__icon" onclick="functionIcon(${contenido.length()})">
2197 <img src="${imagenIcon}" title="<@liferay.language key='boton.cuadricula' />">
2198 </button>
2199
2200 <#assign imagenIcon2 = themeDisplay.getPathThemeImages() + "/icon_slider_ventana.png" />
2201 <button id="btnCarrousel" class="evr-activity__icon" onclick="functionIcon2(${contenido.length()})">
2202 <img src="${imagenIcon2}" title="<@liferay.language key='boton.carrousel' />">
2203 </button>
2204 </div>
2205 </div>
2206 </div>
2207
2208 <div class="subtipoEq">
2209 <div id = "myDiv" class="pru evr-activity__list" style="display: block;">
2210 <#list 0 ..< contenido.length() as j>
2211 <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12 evr-activity__element" >
2212 <article class="evr-article-collage evr-article-collage--primary">
2213 <div class="evr-article-collage__container" style="height=100%;">
2214
2215 <#assign url = contenido.get(j).url>
2216 <#if url?? && url?has_content && url!="" >
2217 <a href="${url}" style="text-decoration: none;">
2218 </#if>
2219
2220 <#assign imageUrl = contenido.get(j).imageUrl>
2221 <#if imageUrl?? && imageUrl?has_content && imageUrl!="" && imageUrl != "null">
2222 <figure class="evr-article-result__thumb" style="width: 100%;">
2223 <img loading="lazy" data-lazy="${contenido.get(j).imageUrl}"
2224 src="${contenido.get(j).imageUrl}"/>
2225 </figure>
2226 </#if>
2227
2228 <div class="evr-article-collage__body">
2229 <span class="evr-article-collage__title">${contenido.get(j).title}</span>
2230 <span class="evr-article-collage-map__time">${contenido.get(j).fecha}</span>
2231 </div>
2232 <#if url?? && url?has_content && url!="" >
2233 </a>
2234 </#if>
2235 </div>
2236 </article>
2237 </div>
2238 </#list>
2239 </div>
2240 </div>
2241 </#list>
2242 </#if>
2243 </div>
2244 </div>
2245 </@>
2246 </#if>
2247 <#-- Fiestas y Tradiciones FIN -->
2248 <#if enlacesDeInteres != "">
2249 <@liferay_ui["section"] >
2250 <span class="only-print__title">${tabs_list[10]}</span>
2251 <div class="evr-panel-content__container reflex-container tab-pane evr-rest-content evr-enlaces__interes">
2252 <ul class="evr-panel-data-sheet__list evr-enlaces__interes">
2253 <#list currentArticleRelatedLinks as related_entry>
2254 <#assign relatedAssetEntryId = related_entry.getEntryId2() />
2255 <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) />
2256 <#assign relatedAssetType = relatedAssetEntry.getClassName() />
2257 <#if relatedAssetType == "com.liferay.journal.model.JournalArticle">
2258 <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() />
2259 <#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) />
2260 <#assign relatedArticleId = relatedArticle.getArticleId() />
2261 <#assign currentGroupSite = themeDisplay.getLayout().getGroup().getFriendlyURL() />
2262 <#assign structure = relatedArticle.getDDMStructure().getName("es_ES") />
2263 <#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContentByLocale(locale)) />
2264 <#if (structure == "Enlace") >
2265 <li class="evr-panel-data-sheet__list-item evr-enlaces__interes">
2266 <div class="evr-panel-data-sheet__list-container enlace_interes">
2267 <#assign titulo = relatedArticle.getTitle() />
2268 <#assign descripcion = relatedArticle.getDescription() />
2269 <#if aArticleXML.valueOf("//dynamic-element[@name='idURL']/dynamic-content/text()")?has_content>
2270 <#assign enlace = aArticleXML.valueOf("//dynamic-element[@name='idURL']/dynamic-content/text()")/>
2271 <#elseif aArticleXML.valueOf("//dynamic-element[@name='enlacePaginaInternaEstructuraEnlace']/dynamic-content/text()")?has_content>
2272 <#assign enlacePagInterna = aArticleXML.valueOf("//dynamic-element[@name='enlacePaginaInternaEstructuraEnlace']/dynamic-content/text()") />
2273 <#if enlacePagInterna?? && enlacePagInterna != "{}">
2274 <#assign home = themeDisplay.getPathFriendlyURLPublic() />
2275 <#assign friendUrl = themeDisplay.getLayout().getGroup().friendlyURL />
2276 <#assign jsonObject=enlacePagInterna?eval>
2277 <#assign layoutId = jsonObject.layoutId?number/>
2278 <#assign groupId = jsonObject.groupId?number/>
2279 <#assign state = jsonObject.privateLayout?string/>
2280 <#assign foo = false>
2281 <#if state == "true">
2282 <#assign foo = true>
2283 </#if>
2284 <#assign pageLayout = layoutLocalService.fetchLayout(groupId, foo, layoutId) />
2285 <#assign pageURL = pageLayout.getFriendlyURL() />
2286 <#assign enlacePaginaInterna = home+friendUrl+pageURL />
2287 <#assign enlace = enlacePaginaInterna />
2288 </#if>
2289 </#if>
2290 <a class="evr-panel-data-sheet__list-title" href="${enlace}">${titulo}</a>
2291 <span class="evr-enlace__figure">
2292 <svg class="ml-1" role="img" title="languageUtil.get(locale, 'espacio.natual.enlaceinteres.descripcion')" aria-labelledby="svg-inline--fa-title-FzNmWR4Xn8Ln" data-prefix="aeat-ico" data-icon="ico-ventana-nueva-sm" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16px" height="16px" data-fa-i2svg="">
2293 <title id="svg-inline--fa-title-FzNmWR4Xn8Ln">${languageUtil.get(locale, "espacio.natual.enlaceinteres.descripcion")}</title>
2294 <path fill="#087021" d="M23.1,0V9.25H21.25V3.16l-8.6,8.6-1.3-1.31,8.59-8.6H13.85V0ZM17.55,20.36H2.75V5.55h7.4V3.7H.9V22.21H19.4V13H17.55Z"></path>
2295 </svg>
2296 </span>
2297 <span class="descripcion__enlace">${descripcion}</span>
2298 </div>
2299 </li>
2300 </#if>
2301 </#if>
2302 </#list>
2303 </ul>
2304 </div>
2305 </@>
2306 </#if>
2307 </div>
2308 </@>
2309 </section>
2310 </#if>
2311 </#list>
2312</#if>
2313<br>
2314<div class="evr-rest-content">
2315<#----------------------------- AEMET and RRSS SECTION ------------------------------------>
2316 <div class="evr-panel-content__container-out tab-pane">
2317 <div class="reflex-grid">
2318 <#if sociales == "false">
2319 <div id="meteo-full" class="reflex-col-xs-12 reflex-col-sm-12 reflex-col-md-12 reflex-col-lg-12 reflex-col-bleed-y">
2320 <#else>
2321 <div class="reflex-col-xs-12 reflex-col-sm-12 reflex-col-md-8 reflex-col-lg-9 reflex-col-bleed-y">
2322 </#if>
2323 <@liferay_portlet["runtime"]
2324 instanceId="aemet"
2325 portletName="aemet" />
2326 </div>
2327 <#if sociales == "true" >
2328 <div class="reflex-col-xs-12 reflex-col-sm-12 reflex-col-md-4 reflex-col-lg-3 reflex-col-bleed-y">
2329 <section class="evr-space-natural-social-networks">
2330 <#if fbEspacioNatural.getData() != "">
2331 <div class="row-fluid text-center">
2332 <div class="fb-page" data-adapt-container-width="true" data-hide-cover="false" data-href="https://www.facebook.com/${fbEspacioNatural.getData()}" data-show-facepile="false" data-small-header="true" data-tabs="timeline" data-width="400" data-height="440">
2333 <div class="fb-xfbml-parse-ignore">
2334 <blockquote cite="https://www.facebook.com/${fbEspacioNatural.getData()}"><a href="https://www.facebook.com/${fbEspacioNatural.getData()}">${fbEspacioNatural.getData()}</a></blockquote>
2335 </div>
2336 </div>
2337 </div>
2338 </#if>
2339 <#if twitterEspacioNatural.getData() != "">
2340 <div class="row-fluid"><a class="twitter-timeline " data-adapt-container-width="true" data-chrome="nofooter" data-height="440" data-width="400" href="https://twitter.com/${twitterEspacioNatural.getData()}"><@liferay.language key="tweets.por"/> ${twitterEspacioNatural.getData()}</a></div>
2341 </#if>
2342 </section>
2343 </div>
2344 </#if>
2345 </div>
2346 </div>
2347
2348<#----------------------------- INFOCA TWITTER SECTION --------------------------->
2349<#---- TODO: CHANGE INSTANCEID SAME IN LANDING PAGE ---->
2350 <#--<div class="evr-panel-content__container-out tab-pane">
2351 <@liferay_portlet["runtime"]
2352
2353 portletName="twitter" />
2354
2355 </div>-->
2356
2357<#----------------------------- NTVS SECTION ------------------------------------->
2358<#if currentArticleRelatedLinks?size gt 0>
2359<#if mostrarNTVS == "true">
2360<#assign urlNTVS = "/medioambiente/portal/web/ventanadelvisitante/detalle-no-te-vayas-sin/-/asset_publisher/WpxxCbdlbsGU/content/" />
2361<section class="ntv">
2362 <div class="evr-panel-content__container-out tab-pane">
2363 <span class="evr-panel-content__title"><@liferay.language key="espacio.natural.no.te.vayas.sin"/></span>
2364 <div>
2365 <div class="evr-content-links">
2366 <div class="row">
2367 <#assign auxNTVS = [] />
2368 <#list listadoNTVS as relatedArticle>
2369 <#assign relatedArticleId = relatedArticle.getArticleId() />
2370 <#if !auxNTVS?seq_contains(relatedArticleId)>
2371 <#assign auxNTVS = auxNTVS + [relatedArticleId]/>
2372 <#assign URLDetalle = urlNTVS + relatedArticle.getUrlTitle() />
2373
2374 <#assign aArticleXML = saxReaderUtil.read(relatedArticle.getContentByLocale(locale)) />
2375 <!-- Elementos del contenido -->
2376 <#assign titulo = relatedArticle.getTitle(locale)>
2377 <!-- imagen del recurso -->
2378 <#if aArticleXML.valueOf("//dynamic-element[@name='ImagenNTVS']/dynamic-content/text()")?has_content>
2379 <#assign contentImagen = aArticleXML.valueOf("//dynamic-element[@name='ImagenNTVS']/dynamic-content/text()")/>
2380 <#if contentImagen != "">
2381 <#if contentImagen?contains("/medioambiente/portal")>
2382 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid>
2383 <#elseif contentImagen?contains("/medioambiente")>
2384 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid>
2385 <#else>
2386 <#assign contentImagen = "/medioambiente/portal/documents/" + contentImagen?eval.groupId + "/" + contentImagen?eval.fileEntryId + "/" + contentImagen?eval.title + "/" + contentImagen?eval.uuid>
2387 </#if>
2388
2389 </#if>
2390 <#else>
2391 <#assign contentImagen = "/medioambiente/portal/o/ventana-theme/images/fotoNoDisponible.jpg" />
2392 </#if>
2393
2394 <#--
2395 <#assign tipoEspacio = themeDisplay.getURLCurrent()?split("?")[1] />
2396 -->
2397 <div class="col-sm-12 col-xs-12 col-md-4 col-lg-4">
2398 <div class="evr-content-links__item evr-ntvs">
2399 <figure class="evr-content-links__cont-img">
2400 <img class="evr-content-links__img" src ="${contentImagen}" alt="">
2401 </figure>
2402 <h2 class="evr-content-links__title" ><a class="evr-content-links__link" href="${URLDetalle}?type=${tipoEspacio}">${titulo}</a></h2>
2403 </div>
2404 </div>
2405 </#if>
2406 </#list>
2407 </div>
2408 </div>
2409 </div>
2410 </div>
2411</section>
2412</#if>
2413</#if>
2414
2415<#----------------------------- DOWNLOADS SECTION -------------------------------->
2416<#if codigoEspacio != "">
2417 <#if mostrarMapa == "true">
2418 <section class="evr-download">
2419 <div class="evr-panel-content__container-out tab-pane">
2420 <span class="evr-panel-content__title"><@liferay.language key="espacio.natural.descargas"/></span>
2421 <div class="reflex-grid">
2422 <div class="reflex-col-xs-12 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-4 reflex-col-bleed-y">
2423 <#assign namespace = request["portlet-namespace"]!'undefined'>
2424 <button class="evr-download__btn" type="button">
2425 <a id="imprimible" target="_self">
2426 <figure class="evr-download__icon">
2427 <img src="/medioambiente/portal/o/ventana-theme/images/componente_descargas/pdf.png" alt="Logo PDF" />
2428 </figure>
2429 <span class="evr-download__txt"><@liferay.language key="equipamiento.uso.publico.version.imprimible"/></span>
2430 <!-- <span class="evr-download__txt">VERSIÓN IMPRIMIBLE</span> -->
2431 </a>
2432 </button>
2433 </div>
2434
2435 <#if mostrarMapa == "true">
2436 <div class="reflex-col-xs-12 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-4 reflex-col-bleed-y">
2437 <button class="evr-download__btn" type="button" onclick="exportPDF()">
2438 <figure class="evr-download__icon">
2439 <img src="/medioambiente/portal/o/ventana-theme/images/componente_descargas/pdf.png" alt="Logo PDF" />
2440 </figure>
2441 <span class="evr-download__txt"><@liferay.language key="espacio.natural.version.imprimible"/></span>
2442 </button>
2443 </div>
2444 <div class="reflex-col-xs-12 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-4 reflex-col-bleed-y">
2445 <a href="${urlKML}" target="_blank">
2446 <button class="evr-download__btn" type="button">
2447 <figure class="evr-download__icon">
2448 <img src="/medioambiente/portal/o/ventana-theme/images/componente_descargas/kml.png" alt="Logo KML" />
2449 </figure>
2450 <span class="evr-download__txt"><@liferay.language key="espacio.natural.formato.kml"/></span>
2451 </button>
2452 </a>
2453 </div>
2454 <div class="reflex-col-xs-12 reflex-col-sm-6 reflex-col-md-6 reflex-col-lg-4 reflex-col-bleed-y">
2455 <a href="${urlGML}" target="_blank">
2456 <button class="evr-download__btn" type="button">
2457 <figure class="evr-download__icon">
2458 <img src="/medioambiente/portal/o/ventana-theme/images/componente_descargas/gml.png" alt="Logo GML" />
2459 </figure>
2460 <span class="evr-download__txt"><@liferay.language key="espacio.natural.formato.gml"/></span>
2461 </button>
2462 </a>
2463 </div>
2464
2465
2466 </#if>
2467 </div>
2468 </div>
2469 </section>
2470 </#if>
2471</#if>
2472
2473
2474
2475
2476
2477
2478
2479 <div class="evr-panel-content__container-out tab-pane">
2480 </div>
2481</div>
2482</div>
2483</div>
2484
2485
2486<#----------------------------- SCRIPTS ZONE ------------------------------------->
2487<script>
2488$(document).ready(function() {
2489changeTabsIds();
2490
2491$("#imprimible").click(function(){
2492window.print()
2493})
2494 $('meta[name=description]').remove();
2495 $('head').append( '<meta name="description" content="${.vars['reserved-article-title'].data} - Ventana del Visitante">' );
2496 $('.evr-tabs-activity .lfr-nav li.nav-item').addClass('evr-tabs__nav')
2497 $('.evr-tabs-activity .lfr-nav').addClass('nav-tabs')
2498 $('.evr-tabs-activity .lfr-nav li.nav-item > a').addClass('evr-tabs__nav-lnk')
2499 $('.tab').on('click', function(event){
2500$(".slick-next.slick-arrow").click();
2501});
2502 var numeroNoticiasJS = ${numeroNoticias?number};
2503 <#-- modificado de la 7.0 -->
2504 var nombrePestana= "${languageUtil.get(locale,"noticias.avisos")}";
2505 if (numeroNoticiasJS != 0) {
2506$('li[data-tab-name="'+nombrePestana+'"] a').append("<span class='numberCircle'>" +numeroNoticiasJS+ "</span>");
2507}
2508 <#-- modificado de la 7.0 -->
2509 var url = new URL(window.location.href);
2510 if (url.searchParams.get("tab")) {
2511var parameter = url.searchParams.get("tab");
2512if (parameter === "multimedia") {
2513document.getElementById($('li[data-tab-name=" MULTIMEDIA"]').attr('id')).children[0].click();
2514$('html,body').animate({
2515scrollTop: $('#shareRoundIcons').offset().top - 100
2516}, 2000);
2517 }
2518 }
2519});
2520
2521function changeTabsIds(){
2522var divsFailTabs = $("div[id^=_com_liferay_journal_content_web_portlet_JournalContentPortlet_INSTANCE_J0iRn4L1zQ].hide");
2523 var idOK = $($("div[id^=_com_liferay_asset_publisher_web_portlet_AssetPublisherPortlet_INSTANCE_].hide")[0]).attr("id").split("_tabs")[0];
2524 $.each(divsFailTabs, function( index, value ) {
2525var idKO = $(divsFailTabs[index]).attr("id").split("_tabs")[1];
2526$(divsFailTabs[index]).attr("id", idOK + "_tabs" + idKO);
2527});
2528}
2529
2530function verMapa(tipoEquipamiento){
2531var mapTab = document.getElementById($('li[data-tab-name="MAPA"]').attr('id'))
2532 if(mapTab == null){
2533mapTab = document.getElementById($('li[data-tab-name="MAP"]').attr('id'))
2534}
2535 if(mapTab == null){
2536mapTab = document.getElementById($('li[data-tab-name="CARTE"]').attr('id'))
2537}
2538 if(mapTab == null){
2539mapTab = document.getElementById($('li[data-tab-name="KARTE"]').attr('id'))
2540}
2541
2542 if(mapTab != null){
2543mapTab.children[0].click();
2544$("#loader").css({ 'display' : 'block'});
2545 $("#ifr").css({ 'filter' : 'brightness(0.3)'});
2546
2547 if(tipoEquipamiento == "SENDERO SEÑALIZADO"){ //primera opcion
2548$(".eq1").removeClass("hidden")
2549$(".eq2").addClass("hidden")
2550$(".eq3").addClass("hidden")
2551}else if(tipoEquipamiento == "CARRIL CICLOTURISTA"){ //segunda opcion
2552$(".eq1").addClass("hidden")
2553$(".eq2").removeClass("hidden")
2554$(".eq3").addClass("hidden")
2555} else if(tipoEquipamiento == "CENTRO DE VISITANTES"){ // tercera opcion
2556$(".eq1").addClass("hidden")
2557$(".eq2").addClass("hidden")
2558$(".eq3").removeClass("hidden")
2559}
2560
2561 //setTimeout(function(){
2562var listadoCodigosEquipamiento = [];
2563var search = [];
2564var res = [];
2565var iframe = document.getElementById("ifr");
2566if(tipoEquipamiento == "SENDERO SEÑALIZADO"){
2567var listadoCodigosEquipamiento = [<#list listCodesEquipamiento1 as message>${message},</#list>];
2568}else if(tipoEquipamiento == "CARRIL CICLOTURISTA"){
2569var listadoCodigosEquipamiento = [<#list listCodesEquipamiento2 as message>${message},</#list>];
2570} else if(tipoEquipamiento == "CENTRO DE VISITANTES"){
2571var listadoCodigosEquipamiento = [<#list listCodesEquipamiento3 as message>${message},</#list>];
2572}
2573 if(listadoCodigosEquipamiento){
2574listadoCodigosEquipamiento.forEach((el)=>{
2575search = res.filter((x) => {return x.tipo == el.tipo});
2576 if(search.length == 0){
2577res.push({tipo: el.tipo, codigos: []})
2578 }
2579 search = res.filter((x) => {return x.tipo == el.tipo})[0];
2580 search.codigos.push(el.codigos);
2581 });
2582 var msg = {"operacion": "filter", "datos": res };
2583 if (iframe !== null) {
2584iframe.contentWindow.postMessage(msg, '*');
2585}
2586
2587 } else{
2588var msg = {"operacion": "clean"}
2589 iframe.contentWindow.postMessage(msg, '*');
2590 }
2591
2592 showPage();
2593 //}, 1000);
2594 }
2595}
2596
2597function showPage() {
2598$("#loader").css({ 'display' : 'none'});
2599$("#ifr").css({ 'filter' : 'brightness(1)'});
2600
2601}
2602
2603var icon = $('#rrss-trigger i');
2604$('#shareGenericButton').addClass('hidden');
2605$('#rrss-trigger').click(function () {
2606icon.toggleClass('fa-share-alt').toggleClass('fa-times');
2607});
2608
2609if($('#meteo-full').length == 1) {
2610$('.evr-meteo-time--inline').addClass('evr-meteo-time');
2611$('.evr-meteo-time--inline').removeClass('evr-meteo-time--inline');
2612}
2613
2614(function(d, s, id) {
2615var js, fjs = d.getElementsByTagName(s)[0];
2616 if (d.getElementById(id))
2617 return;
2618 js = d.createElement(s);
2619 js.id = id;
2620 js.src = "//connect.facebook.net/es_ES/sdk.js#xfbml=1&version=v2.6";
2621 fjs.parentNode.insertBefore(js, fjs);
2622 }(document, 'script', 'facebook-jssdk'));
2623
2624 !function(d, s, id) {
2625var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/
2626.test(d.location) ? 'http' : 'https';
2627if (!d.getElementById(id)) {
2628js = d.createElement(s);
2629js.id = id;
2630js.src = p + "://platform.twitter.com/widgets.js";
2631fjs.parentNode.insertBefore(js, fjs);
2632}
2633 }(document, "script", "twitter-wjs");
2634
2635
2636
2637var brNav = Liferay.Browser.isIe();
2638if(brNav){
2639if($('.reflex-col-xs-12.reflex-col-sm-12.reflex-col-md-8.reflex-col-lg-9.reflex-col-bleed-y').length == 1){
2640$('.reflex-col-xs-12.reflex-col-sm-12.reflex-col-md-8.reflex-col-lg-9.reflex-col-bleed-y').addClass('reflex-col-xs-12 reflex-col-sm-12 reflex-col-md-12 reflex-col-lg-12 reflex-col-bleed-y');
2641$('.reflex-col-xs-12.reflex-col-sm-12.reflex-col-md-8.reflex-col-lg-9.reflex-col-bleed-y').removeClass('reflex-col-xs-12 reflex-col-sm-12 reflex-col-md-4 reflex-col-lg-3 reflex-col-bleed-y');
2642$('.reflex-col-xs-12.reflex-col-sm-12.reflex-col-md-4.reflex-col-lg-3.reflex-col-bleed-y').addClass('hidden');
2643$('.reflex-col-xs-12.reflex-col-sm-12.reflex-col-md-4.reflex-col-lg-3.reflex-col-bleed-y').removeClass('reflex-col-xs-12 reflex-col-sm-12 reflex-col-md-4 reflex-col-lg-3 reflex-col-bleed-y');
2644$('.evr-meteo-time--inline').removeClass('evr-meteo-time');
2645$('.evr-meteo-time--inline').addClass('evr-meteo-time--inline');
2646$('.reflex-col-md-8.reflex-col-lg-9.reflex-col-md-12.reflex-col-lg-12').addClass('reflex-col-xs-12 reflex-col-sm-12 reflex-col-md-12 reflex-col-lg-12 reflex-col-bleed-y');
2647$('.reflex-col-md-8.reflex-col-lg-9.reflex-col-md-12.reflex-col-lg-12').removeClass('reflex-col-md-8 reflex-col-lg-9 reflex-col-md-12 reflex-col-lg-12');
2648}
2649}
2650
2651 var noCapitalizeTitle = $('.evr-panel-protection__btn-title');
2652 for(var i = 0; i < noCapitalizeTitle.length ; i++){
2653var noCapitalizeTileBis = noCapitalizeTitle[i].innerText;
2654noCapitalizeTileBis = capitalizeFirstLetters(noCapitalizeTileBis);
2655noCapitalizeTitle[i].innerText = noCapitalizeTileBis;
2656}
2657 var noCapitalizeTile2 = $('.evr-carrusel-banner__txt')[0].innerText;
2658
2659 noCapitalizeTile2 = capitalizeFirstLetters(noCapitalizeTile2);
2660
2661 $('.evr-carrusel-banner__txt')[0].innerText = noCapitalizeTile2;
2662
2663 var noCapitalizeMunicipio = $('.evr-panel-data-sheet__list-span');
2664 for(var i = 0; i < noCapitalizeMunicipio.length ; i++){
2665var noCapitalizeMunicipioBis = noCapitalizeMunicipio[i].innerText;
2666noCapitalizeMunicipioBis = capitalizeFirstLetters(noCapitalizeMunicipioBis);
2667noCapitalizeMunicipio[i].innerText = noCapitalizeMunicipioBis;
2668}
2669
2670 function capitalizeFirstLetters(str){
2671
2672let palabras= str.trim().toLowerCase().split(/[ -]/);
2673
2674let cadena= str.toLowerCase();
2675let palabrasExcluidas=["ante","con","contra","de","del","desde","en","y","las","la","lo","los","el","entre","hacia","hasta","para","según","sin","so","sobre","tras","por"];
2676let regexNumRomanos=/^M{0,4}(CM|CD|D?C{0,3})(XC|XL|L?X{0,3})(IX|IV|V?I{0,3})$/;
2677 palabras.forEach( (p,index) => {
2678let lower= p.toLowerCase();
2679let upper= p.toUpperCase();
2680
2681if(p.length > 0 && !(p.startsWith("(") && p.endsWith(")") && p.includes(".") )){
2682
2683
2684if(!palabrasExcluidas.includes(lower) || index == 0){
2685let capitalize= lower[0].toUpperCase() + lower.slice(1);
2686if(upper.match(regexNumRomanos)){
2687cadena=cadena.replaceAll(p,upper);
2688}else{
2689
2690if(index != 0){
2691cadena=cadena.replaceAll(p,capitalize);
2692}else{
2693cadena=cadena.replace(p,capitalize);
2694}
2695
2696 }
2697
2698 }
2699 }else if( p.startsWith("(") && p.endsWith(")") && p.includes(".") ){
2700cadena=cadena.replaceAll(p,upper);
2701}
2702 });
2703
2704 return cadena;
2705 }
2706
2707$('.evr-panel-protection__btn-title').each(function() {
2708var texto = $( this ).text();
2709var subString = texto.split("(");
2710if(subString.length>1){
2711$( this ).text(subString[0]+ " ("+subString[1].toUpperCase());
2712}else{
2713$( this ).text(subString[0]);
2714}
2715 });
2716
2717
2718$(".mayus").text($(".mayus").text().replace($(".mayus").text().substring(0,2),$(".mayus").text().substring(0,2).toUpperCase()));
2719
2720$( function() {
2721$( ".accordionContentId" ).accordion({
2722heightStyle: "content",
2723active: false,
2724collapsible: true,
2725icons: {
2726"header": "ui-icon-plus", "activeHeader": "ui-icon-minus"
2727}
2728
2729
2730 });
2731 } );
2732
2733function exportPDF(){
2734window.open(Liferay.ThemeDisplay.getPortalURL()+Liferay.ThemeDisplay.getPathContext()+"/o/cmaot/ventana/visitante/pdf?tipo=ESPACIO&articleId="+${journalArticleId}+"&groupId="+Liferay.ThemeDisplay.getScopeGroupId()+"&language="+Liferay.ThemeDisplay.getLanguageId(), '_blank');
2735}
2736
2737
2738function functionIcon(count) {
2739let item = $(".pru .evr-activity__list").eq(count);
2740 let btCuad = $(item).closest('.subtipoEq').prev('.relatedContent').find('#btnCuadricula')
2741 let bt = $(item).closest('.subtipoEq').prev('.relatedContent').find('#btnCarrousel')
2742
2743 if( $(item).hasClass('slick-initialized')){
2744$(item).slick("unslick");
2745}
2746 $(item).addClass('evr-activity__list--cuadricula')
2747 $(item).removeClass('evr-activity__list--carousel')
2748
2749 $(btCuad).attr('disabled','disabled');
2750 $(bt).removeAttr('disabled');
2751
2752}
2753
2754function functionIcon1(count) {
2755let item = $(".pru .evr-activity__list").eq(count);
2756 let btCuad = $(item).closest('.subtipoEq').prev('.relatedContent').find('#btnCuadricula')
2757 let bt = $(item).closest('.subtipoEq').prev('.relatedContent').find('#btnCarrousel')
2758
2759 if( $(item).hasClass('slick-initialized')){
2760$(item).slick("unslick");
2761}
2762 $(item).addClass('evr-activity__list--cuadricula')
2763 $(item).removeClass('evr-activity__list--carousel')
2764
2765 $(btCuad).attr('disabled','disabled');
2766 $(bt).removeAttr('disabled');
2767}
2768function functionIcon2(count) {
2769let item = $(".pru .evr-activity__list").eq(count);
2770 let bt = $(item).closest('.subtipoEq').prev('.relatedContent').find('#btnCarrousel')
2771 let btCuad = $(item).closest('.subtipoEq').prev('.relatedContent').find('#btnCuadricula')
2772
2773 $(btCuad).removeAttr('disabled');
2774 $(bt).attr('disabled','disabled');
2775
2776 $(item).slick({
2777slidesToShow: 4,
2778slidesToScroll: 1,
2779autoplay: false,
2780autoplaySpeed: 2000,
2781infinite: true,
2782responsive: [{
2783breakpoint: 768,
2784settings: {
2785slidesToShow: 1,
2786},
2787 breakpoint: 992,
2788 settings: {
2789slidesToShow: 1,
2790}
2791 }, ]
2792 });
2793
2794 $(item).addClass('evr-activity__list--carousel');
2795 $(item).removeClass('evr-activity__list--cuadricula')
2796}
2797
2798function functionIcon22(count) {
2799let item = $(".pru .evr-activity__list").eq(count);
2800 let bt = $(item).closest('.subtipoEq').prev('.relatedContent').find('#btnCarrousel')
2801 let btCuad = $(item).closest('.subtipoEq').prev('.relatedContent').find('#btnCuadricula')
2802
2803 $(btCuad).removeAttr('disabled');
2804 $(bt).attr('disabled','disabled');
2805
2806 $(item).slick({
2807slidesToShow: 4,
2808slidesToScroll: 1,
2809autoplay: false,
2810autoplaySpeed: 2000,
2811infinite: true,
2812responsive: [{
2813breakpoint: 768,
2814settings: {
2815slidesToShow: 1,
2816},
2817 breakpoint: 992,
2818 settings: {
2819slidesToShow: 1,
2820}
2821 }, ]
2822 });
2823
2824 $(item).addClass('evr-activity__list--carousel');
2825 $(item).removeClass('evr-activity__list--cuadricula')
2826}
2827
2828 $(document).ready(function() {
2829var articulos=$(".subtipoEq").length;
2830
2831for (let step = 0; step < articulos; step++) {
2832var cont= $('.subtipoEq').eq(step).find(".evr-article-collage").length;
2833
2834$('.claseAniadir').eq(step).html("("+cont+" <@liferay.language key='actividad.resultados' />)");
2835
2836}
2837
2838
2839 });
2840 Liferay.on('showTab', function(event) {
2841
2842// if($('.tab-content .evr-carousel .slick-track').eq(0).css('width') === '0px'){
2843
2844$('.tab-content .evr-carousel .slick-slider').slick('refresh');
2845// document.querySelectorAll("#btnCuadricula").forEach(b=>b.click());
2846// }
2847 document.querySelectorAll('#myDiv .slick-slider').forEach(slk=>slk.slick("refresh"));
2848 document.querySelectorAll("#myDiv .slick-track").forEach(slickTrack=>slickTrack.style.width=null);
2849 document.querySelectorAll("#myDiv .col-lg-3.col-md-4.col-sm-6.col-xs-12.evr-activity__element.slick-slide.slick-current.slick-active").forEach(ele=>ele.style.width="305px");
2850 // document.querySelectorAll("#myDiv .col-lg-3.col-md-4.col-sm-6.col-xs-12.evr-activity__element.slick-slide.slick-current.slick-active").forEach(ele=>ele.style.maxWidth=null);
2851
2852 })
2853
2854 window.onload = function() {
2855$('.slick-next').attr('title', "<@liferay.language key='boton.siguiente' />");
2856$('.slick-prev').attr('title', "<@liferay.language key='boton.anterior' />");
2857
2858var articulos=$(".subtipoEq").length;
2859
2860for (let step = 0; step < articulos; step++) {
2861var cont= $('.subtipoEq').eq(step).find(".evr-article-collage").length;
2862
2863if(cont < 5){
2864if($(".pru .evr-activity__list").eq(step).hasClass('slick-initialized')){
2865$(".pru .evr-activity__list").eq(step).slick("unslick");
2866$(".pru .evr-activity__list").eq(step).css({
2867"display": "flex",
2868"flex-wrap": "wrap",
2869});
2870 }
2871 }
2872 }
2873};
2874
2875</script>