Bienvenida/o al Ayuntamiento de Agurain

Bienvenida/o al Ayuntamiento de Agurain

Sección Noticias

Noticias

Publicador de contenidos

null Jazzherrian 2024
Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> saxReaderUtil.createXPath("dynamic-element[@name='fechaNew']").selectSingleNode(rootElement)  [in template "5331634#5331682#40166" at line 121, column 30]

----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign Fecha = saxReaderUtil.createX...  [in template "5331634#5331682#40166" at line 121, column 13]
----
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
2<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 
3<#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService") /> 
4 
5<#assign AssetEntryLocalServiceUtil = objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil") /> 
6<#assign AssetEntryQuery = objectUtil("com.liferay.asset.kernel.service.persistence.AssetEntryQuery") /> 
7 
8 
9<section class="cabecera_color"></section> 
10<section class="breadcrumbs container"> 
11    <ul class="nav_breadcrumbs"> 
12        <li> 
13            <a href="${'/web' + themeDisplay.getScopeGroup().getFriendlyURL()}" class="link">${languageUtil.get(locale, "home")}</a> <span>&gt;</span> 
14        </li> 
15        <#list themeDisplay.getLayout().getAncestors()?reverse as AncestorLayout> 
16            <li> 
17                <#if AncestorLayout.getType() == "portlet"> 
18                    <a href="${'/web' + themeDisplay.getScopeGroup().getFriendlyURL() + AncestorLayout.getFriendlyURL(locale)}" class="link">${AncestorLayout.getName(locale)}</a> <span>&gt;</span> 
19                <#else> 
20                    ${AncestorLayout.getName(locale)} <span>&gt;</span> 
21                </#if> 
22            </li> 
23        </#list> 
24        <li> 
25            <p class="here">${.vars['reserved-article-title'].data}</p> 
26        </li> 
27    </ul> 
28</section> 
29 
30<section class="title_section container"> 
31    <h1 class="title_first">${.vars['reserved-article-title'].data}</h1> 
32    <div class="separator"> 
33</section> 
34 
35<section class="content_new container"> 
36 
37    <#assign JournalArticle = JournalArticleLocalService.getLatestArticle(themeDisplay.getScopeGroupId(), .vars['reserved-article-id'].data) /> 
38    <#assign Categories = AssetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle", JournalArticle.getResourcePrimKey()) /> 
39    <div class="features_new"> 
40        <#if fechaNew?? && fechaNew.getData()?? && fechaNew.getData()?has_content> 
41            <div class="item"> 
42                <i class="fas fa-calendar-alt"></i> 
43                <!-- Fecha segun Idioma --> 
44                <#if localeUtil.equals(localeUtil.getSiteDefault(), locale)> 
45                    <p>${fechaNew.getData()?trim?date("yyyy-MM-dd")?string("dd/MM/yyyy")}</p> 
46                <#else> 
47                    <p>${fechaNew.getData()?trim?date("yyyy-MM-dd")?string("yyyy/MM/dd")}</p> 
48                </#if> 
49            </div> 
50        </#if> 
51 
52        <div class="item"> 
53            <i class="fas fa-th-large"></i> 
54            <ul class="categorys"> 
55                <#list Categories as Category> 
56                    <#assign Vocabulary = AssetVocabularyLocalService.getAssetVocabulary(Category.getVocabularyId()).getName()?trim /> 
57 
58                    <#if Vocabulary == "Tipos de noticias"> 
59                        <li><a href="#" class="link">${Category.getTitle(locale)}</a></li> 
60                    </#if> 
61                </#list> 
62            </ul> 
63        </div> 
64             
65        <#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent() /> 
66        <div class="item"> 
67            <i class="fas fa-share-alt"></i> 
68            <!-- Idioma --> 
69            <#if localeUtil.equals(localeUtil.getSiteDefault(), locale)> 
70                <button type="button" class="share" id="share-new">Compartir</button> 
71            <#else> 
72                <button type="button" class="share" id="share-new">Partekatu</button> 
73            </#if> 
74             
75            <ul class="share_rrss hidden"> 
76                <li><a href="https://www.facebook.com/sharer/sharer.php?p[title]=${.vars['reserved-article-title'].data}&u=${currentUrl}" target="_blank" class="icon"><i class="fab fa-facebook" aria-hidden="true"></i><span 
77                            class="sr-only">Compartir en Facebook</span></a></li> 
78                <li><a href="http://twitter.com/share?text=${.vars['reserved-article-title'].data}&url=${currentUrl}" target="_blank" class="icon"><i class="fab fa-twitter" aria-hidden="true"></i><span 
79                            class="sr-only">Compartir en Twitter</span></a></li> 
80                <li><a href="mailto:?subject=${.vars['reserved-article-title'].data}&body=${currentUrl}" target="_blank" class="icon"><i class="fas fa-envelope" aria-hidden="true"></i><span 
81                            class="sr-only">Compartir por correo electrónico</span></a></li> 
82                <li><a href="whatsapp://send?text=${currentUrl}" target="_blank" class="icon"><i class="fab fa-whatsapp" aria-hidden="true"></i><span 
83                            class="sr-only">Compartir por WhatsApp</span></a></li> 
84            </ul> 
85        </div> 
86    </div> 
87 
88        <#if imageFirst?? && imageFirst.getData()?? && imageFirst.getData()?has_content> 
89            <div class="firts_image"> 
90                <img src="${imageFirst.getData()}" alt="${imageFirst.getAttribute("alt")}" /> 
91            </div> 
92        </#if> 
93 
94        <#if contentNew?? && contentNew.getData()?? && contentNew.getData()?has_content> 
95            <div class="content_basic"> 
96                ${contentNew.getData()} 
97            </div> 
98        </#if> 
99    </div> 
100</section> 
101 
102 
103<#assign NoticiasSimilaresList = "" /> 
104 
105<#assign CategoryIds = AssetCategoryLocalService.getCategoryIds("com.liferay.journal.model.JournalArticle", JournalArticle.getResourcePrimKey()) /> 
106<#if CategoryIds?size gt 0> 
107 
108    ${AssetEntryQuery.setAllCategoryIds(CategoryIds)} 
109    <#assign NoticiasSimilares = AssetEntryLocalServiceUtil.getEntries(AssetEntryQuery) /> 
110 
111    <#list NoticiasSimilares as NoticiaSimilar> 
112 
113        <#assign assetRenderer = NoticiaSimilar.getAssetRenderer() /> 
114        <#assign journalArticle = assetRenderer.getArticle() /> 
115 
116        <#if .vars['reserved-article-url-title'].data != journalArticle.getUrlTitle()> 
117 
118            <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) /> 
119            <#assign rootElement = document.getRootElement() /> 
120 
121            <#assign Fecha = saxReaderUtil.createXPath("dynamic-element[@name='fechaNew']").selectSingleNode(rootElement).getStringValue()?trim?date("yyyy-MM-dd") /> 
122 
123            <#assign Descripcion = htmlUtil.extractText(saxReaderUtil.createXPath("dynamic-element[@name='smallDescription']").selectSingleNode(rootElement).getStringValue()?trim) /> 
124            <#if Descripcion?length gte 250> 
125                <#assign Descripcion = Descripcion?substring(0, 250) /> 
126                <#assign Descripcion = Descripcion?substring(0, Descripcion?last_index_of(" ")) /> 
127                <#assign Descripcion += "..." /> 
128            </#if> 
129 
130            <#assign ImagenPrincipal = saxReaderUtil.createXPath("dynamic-element[@name='imageFirst']").selectSingleNode(rootElement) /> 
131            <#assign ImagenPrincipalJson = jsonFactoryUtil.createJSONObject(ImagenPrincipal.getStringValue()) /> 
132            <#assign imagenPrincipalURL = "/documents/" + ImagenPrincipalJson.groupId + "/" + ImagenPrincipalJson.uuid /> 
133 
134            <#assign viewURL = themeDisplay.getURLCurrent()?replace(.vars['reserved-article-url-title'].data, journalArticle.getUrlTitle()) /> 
135 
136            <#assign NoticiasSimilaresList += '<li class="item col-12 col-md-4"><div class="card"><div class="image" style="background: url(' + imagenPrincipalURL + ');"><p class="fecha">' + Fecha?string("dd/MM/yyyy") + '</p></div><div class="content_text"><p class="title title_third">' + NoticiaSimilar.getTitle(locale) + '</p><p class="summary">' + Descripcion + '</p><a class="link_default" href="' + viewURL + '">Berria irakurri - Leer Noticia <span class="sr-only">' + NoticiaSimilar.getTitle(locale) + '</span></a></div></div></li>' /> 
137        </#if> 
138    </#list> 
139 
140    <#if NoticiasSimilaresList?has_content> 
141        <section class="title_section container"> 
142            <h2 class="title_second">Noticias</h2> 
143            <div class="separator"> 
144        </section> 
145 
146        <section class="list_news page_new"> 
147            <div class="bg_gray"> 
148            <div class="container"> 
149                <ul class="list_items row"> 
150                    ${NoticiasSimilaresList} 
151                </ul> 
152            </div> 
153        </section> 
154    </#if> 
155</#if> 

Farmacias de Guardia

Sección accesos directos

Accesos directos

Accesos directos

  • Sede electrónica

    Sede electrónica

    Desde aquí podrás realizar de forma Online los trámites, para ello necesitas el certificado BAKQ o de cualquier otro certificado electrónico reconocido

  • Cita previa

    Cita previa

    Desde aquí podrás solicitar cita previa

  • Perfil del contratante

    Perfil del contratante

    Desde aquí podrás acceder al perfil del contratante

Sección agenda y eventos

Agenda y eventos

Publicador de contenidos

Publicador de contenidos