Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> assetEntryServiceUtil  [in template "20100#20136#93022119" at line 72, column 54]

----
Tip: If the failing expression is known to 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 asset = assetEntryServiceUtil...  [in template "20100#20136#93022119" at line 72, column 37]
----
1<!-- 
2Group: Portal de Aragon 
3Template Name: SDA - resultados buscador blog 
4Template Description: 
5Template Key: 93022118 
6Template Type: Plantilla de Resultados de la búsqueda 
7Small Image: false 
8--> 
9<#if freemarkerUtilities?? && journalHelper?? && dateHelper??> 
10    <div class="sda-blog-searcher-results-box"> 
11        <#if entries?has_content> 
12            <span class="sda-blog-searcher-results-box__filters-box"> 
13                <#if (request.getParameter("q")?has_content && request.getParameter("q") != "") || request.getParameterValues("tag")?has_content> 
14                    <a class="delete-filters-button" href="${layout.getFriendlyURL()}">${languageUtil.get(locale, "buscador_sede.delete-filters")}</a> 
15                </#if> 
16                <span class="total-results"> 
17                    <#if searchContainer.getTotal() lt 2> 
18                        ${languageUtil.format(locale, "buscador_sede.total-result-single", searchContainer.getTotal())} 
19                    <#else> 
20                        ${languageUtil.format(locale, "buscador_sede.total-results", searchContainer.getTotal())} 
21                    </#if> 
22                </span> 
23            </span> 
24            <div class="sdablog-blog__body mb-4 c-top-line py-5"> 
25                <#list entries as curEntry> 
26                    <div class="sdablog-blog-item row mb-5"> 
27                         <#if journalHelper.fetchLatestArticle(getterUtil.getLong(curEntry.getClassPK()))??> 
28                            <#assign article = journalHelper.fetchLatestArticle(getterUtil.getLong(curEntry.getClassPK())) /> 
29                            <#assign rootElement = saxReaderUtil.read(article.getContentByLocale(locale)).getRootElement() /> 
30                            <#assign selectorImage = saxReaderUtil.createXPath("dynamic-element[@name='image']") /> 
31                            <#assign ddmStructure = article.getDDMStructure() /> 
32                            <#assign author = rootElement.valueOf("//dynamic-element[@name='author']/dynamic-content/text()") /> 
33                            <#assign viewURL = curEntry.getViewURL()/> 
34                            <#if freemarkerUtilities?? && freemarkerUtilities?has_content> 
35                                <#assign viewURL = freemarkerUtilities.removeUrlParameters(viewURL, themeDisplay)/> 
36 
37                            </#if> 
38                            <#assign selectorImage = saxReaderUtil.createXPath("dynamic-element[@name='image']") /> 
39 
40                            <#assign image = "" /> 
41                            <#assign alt = "" /> 
42                            <#if selectorImage.selectSingleNode(rootElement)?has_content> 
43                                <#assign image = selectorImage.selectSingleNode(rootElement).getStringValue()?trim /> 
44                                <#if image != ""> 
45                                    <#assign imageJSON = image?eval /> 
46                                    <#assign image = "/documents/${imageJSON.groupId}/${imageJSON.fileEntryId}/${imageJSON.name}/${imageJSON.uuid}" /> 
47                                    <#assign alt = imageJSON.alt /> 
48                                </#if> 
49                            </#if> 
50 
51                            <#if image?has_content> 
52                                <div class="col-12 col-md-4 mb-4 mb-md-0"> 
53                                    <#if alt == ""> 
54                                        <#assign alt = article.getTitle(locale) /> 
55                                    </#if> 
56                                    <a href="${viewURL}" title="imagen link para ${article.getTitle(locale)}"> 
57                                        <img src="${image}" alt="${alt}" class="w-100"> 
58                                    </a> 
59                                </div> 
60                            </#if> 
61                            <div class="col-12 col-md-8"> 
62                                <div class="sdablog-blog-item__meta text-sm"> 
63                                    <#assign displayDate = dateHelper.getSpanishDisplayDate(article, languageUtil.get(locale, "dd MMMM yyyy"))/> 
64                                    <#if displayDate??> 
65                                        <p class="text-neutral-dark d-inline text-capitalize">${displayDate}</p> 
66                                    <#else> 
67                                        <#assign displayDate = article.getCreateDate()/> 
68                                        <p class="text-neutral-dark d-inline text-capitalize">${displayDate?date}</p> 
69                                    </#if> 
70                                        <span> - </span> 
71                                    <p class="text-neutral-dark d-inline">${author}</p> 
72                                    <#assign asset = assetEntryServiceUtil.getEntry(curEntry.getClassName(), curEntry.getClassPK()?number) /> 
73                                    <#assign tags = asset.getTagNames() /> 
74                                    <#if tags?has_content> 
75                                        <ul class="mt-2 pl-0"> 
76                                            <#list tags as tag> 
77                                                <li class="d-inline-block"> 
78                                                    <#assign currentUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()> 
79                                                    <#if freemarkerUtilities?? && freemarkerUtilities?has_content> 
80                                                        <#assign currentUrl = freemarkerUtilities.customTagSearchURL(groupId, currentUrl, tag, request)> 
81                                                    </#if> 
82                                                    <a href="${currentUrl}" class="c-link text-sm">${tag}</a> 
83                                                </li> 
84                                            </#list> 
85                                        </ul> 
86                                    </#if> 
87                                </div> 
88 
89                                <div class="sdablog-blog-item__title"> 
90                                    <h2 class="c-h2"> 
91                                        <a href="${viewURL}" class="c-link" title="${article.getTitle(locale)}"> 
92                                            ${article.getTitle(locale)} 
93                                        </a> 
94                                    </h2> 
95                                </div> 
96                            </div> 
97                        </#if> 
98                    </div> 
99                </#list> 
100            </#if> 
101        </div> 
102    </div> 
103</#if> 

Participa

Ayúdanos a mejorar los servicios de Gobierno de Aragón participando en nuestros talleres.

Saber más

¿Te ha resultado útil esta página?

Tu respuesta nos ayudará a mejorar la web

Gracias por tu valoración

Para cualquier consulta, escríbenos a portalpublico@aragon.es

Puedes dejar aquí tu comentario anónimo.