2021 Edizioa duen edukia.
Errorea gertatu da txantiloia prozesatzerakoan.
The following has evaluated to null or missing: ==> journalArticle.getContentByLocale [in template "20099#20135#387106" at line 28, column 70] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- 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 docXml = saxReaderUtil.read(j... [in template "20099#20135#387106" at line 28, column 33] ----
1<style>
2 .last-editions-tag {
3 left: 0;
4 margin-left: 1.5rem;
5 padding: .4rem .8rem;
6 position: absolute;
7 top: 0;
8 background-color: #09314b;
9 }
10 .taglib-categorization-filter.entry-title {
11 visibility: hidden;
12 margin-top: -2em;
13 }
14 </style>
15
16 <#if entries?has_content>
17 <section class="home-news listado aurrekoEdizioak-list" style="padding-top:5em;">
18 <div class="container">
19 <div class="row">
20 <div class="m-up d-sm-flex flex-sm-wrap">
21 <#list entries as curEntry>
22 <#list curEntry.tagNames as tag>
23 <#if tag == "dokumentua">
24 <#assign
25 assetRenderer = curEntry.getAssetRenderer()
26 journalArticle = assetRenderer.getAssetObject()
27 />
28 <#assign docXml = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) />
29 <#assign document = docXml.valueOf("//dynamic-element[@name='document']/dynamic-content/text()") />
30
31 <#if document?has_content>
32 <#assign documentJSON = document?eval />
33 <div class="news-article aurrekoEdizioak-list__item col-lg-4 col-sm-6 py-4">
34 <div class="aspect-ratio aspect-ratio--75 overflow-hidden">
35 <a href="/documents/${documentJSON.groupId}/${documentJSON.classPK}/${documentJSON.title}/${documentJSON.uuid}" target="_blank">
36 <img class="aspect-ratio--object of-cover img-fluid" alt="dokumentua" src="/documents/374239/382025/dokumentua.jpg">
37 </a>
38 <span class="last-editions-tag">
39 <#assign categories = curEntry.getCategories() />
40 <#list categories as category >
41 ${category.getTitle(locale)}
42 </#list>
43 | Dokumentua
44 </span>
45 </div>
46 <div class="item p-4 border-complement border-top-none border-bottom-radius-5">
47 <h2>
48 <a href="/documents/${documentJSON.groupId}/${documentJSON.classPK}/${documentJSON.title}/${documentJSON.uuid}">
49 ${curEntry.getTitle(locale)}
50 </a>
51 </h2>
52 </div>
53 </div>
54 </#if>
55 </#if>
56 <#if tag == "egitaraua">
57 <#assign
58 assetRenderer = curEntry.getAssetRenderer()
59 journalArticle = assetRenderer.getAssetObject()
60 />
61 <#assign docXml = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) />
62 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
63 <#assign friendly_link = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />
64
65 <div class="news-article aurrekoEdizioak-list__item col-lg-4 col-sm-6 py-4">
66 <div class="aspect-ratio aspect-ratio--75 overflow-hidden">
67 <a href="${friendly_link}">
68 <img class="aspect-ratio--object of-cover img-fluid" alt="egitaraua" src="/documents/374239/382025/egitaraua.png">
69 </a>
70 <span class="last-editions-tag">
71 <#assign categories = curEntry.getCategories() />
72 <#list categories as category >
73 ${category.getTitle(locale)}
74 </#list>
75 | Egitaraua
76 </span>
77 </div>
78 <div class="item p-4 border-complement border-top-none border-bottom-radius-5">
79 <h2>
80 <a href="${friendly_link}">
81 ${curEntry.getTitle(locale)}
82 </a>
83 </h2>
84 </div>
85 </div>
86 </#if>
87 <#if tag == "hizlaria">
88 <#assign
89 assetRenderer = curEntry.getAssetRenderer()
90 journalArticle = assetRenderer.getAssetObject()
91 />
92 <#assign docXml = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) />
93 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
94 <#assign friendly_link = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) />
95 <#assign image = docXml.valueOf("//dynamic-element[@name='image']/dynamic-content/text()") />
96 <#assign imageJSON = image?eval />
97
98 <div class="news-article aurrekoEdizioak-list__item col-lg-4 col-sm-6 py-4">
99 <div class="aspect-ratio aspect-ratio--75 overflow-hidden">
100 <a href="${friendly_link}">
101 <img class="aspect-ratio--object of-cover img-fluid" alt="${imageJSON.alt}" src="/documents/${imageJSON.groupId}/${imageJSON.uuid}">
102 </a>
103 <span class="last-editions-tag">
104 <#assign categories = curEntry.getCategories() />
105 <#list categories as category >
106 ${category.getTitle(locale)}
107 </#list>
108 | Hizlaria
109 </span>
110 </div>
111 <div class="item p-4 border-complement border-top-none border-bottom-radius-5">
112 <h2>
113 <a href="${friendly_link}">
114 ${curEntry.getTitle(locale)}
115 </a>
116 </h2>
117 </div>
118 </div>
119 </#if>
120 <#if tag == "multimedia">
121 <#if curEntry.categories?has_content>
122 <#list curEntry.categories as cat >
123 <#if cat.getTitle(locale) == "Argazkia">
124 <div class="news-article aurrekoEdizioak-list__item col-lg-4 col-sm-6 py-4">
125 <div class="aspect-ratio aspect-ratio--75 overflow-hidden">
126 <div class="poster">
127 <a class="popup-modal-video" href="#${curEntry.getClassUuid()}">
128 <img alt=""
129 class="aspect-ratio--object of-cover img-fluid"
130 src="/documents/${curEntry.getGroupId()}/${curEntry.getClassUuid()}"
131 data-fileentryid="${curEntry.getEntryId()}" >
132 </a>
133 </div>
134 <div class="mfp-hide white-popup" id="${curEntry.getClassUuid()}">
135 <img alt="" class="img-fluid w-100" src="/documents/${curEntry.getGroupId()}/${curEntry.getClassUuid()}">
136 </div>
137 <span class="last-editions-tag">
138 <#assign categories = curEntry.getCategories() />
139 <#list categories as category >
140 ${category.getTitle(locale)}
141 <#if category?has_next>
142 |
143 </#if>
144 </#list>
145 </span>
146 </div>
147 <div class="item p-4 border-complement border-top-none border-bottom-radius-5">
148 <h2>
149 <a class="popup-modal-video" href="#${curEntry.getClassUuid()}">
150 ${curEntry.getTitle(locale)}
151 </a>
152 </h2>
153 </div>
154 </div>
155 </#if>
156 <#if cat.getTitle(locale) == "Bideoa">
157 <#assign
158 assetRenderer = curEntry.getAssetRenderer()
159 journalArticle = assetRenderer.getAssetObject()
160 />
161 <#assign docXml = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) />
162 <#assign videoID = docXml.valueOf("//dynamic-element[@name='videoID']/dynamic-content/text()") />
163 <#assign origin = docXml.valueOf("//dynamic-element[@name='origin']/dynamic-content/text()") />
164
165 <#if origin == "gipuzkoa">
166 <#assign video = "https://multimedia.gipuzkoa.eus/def/" + videoID + ".mp4" />
167 <#assign image = "https://multimedia.gipuzkoa.eus/def/" + videoID + "_preview.jpeg" />
168 <#else>
169 <#assign video = "//www.youtube.com/watch?v=" + videoID />
170 <#assign image = "//img.youtube.com/vi/" + videoID + "/mqdefault.jpg" />
171 </#if>
172
173 <div class="news-article aurrekoEdizioak-list__item col-lg-4 col-sm-6 py-4">
174 <div class="aspect-ratio aspect-ratio--75 overflow-hidden">
175 <a href="${video}" target="_blank">
176 <img class="aspect-ratio--object of-cover img-fluid" alt="bideoa" src="${image}">
177 </a>
178 <span class="last-editions-tag">
179 <#assign categories = curEntry.getCategories() />
180 <#list categories as category >
181 ${category.getTitle(locale)}
182 <#if category?has_next>
183 |
184 </#if>
185 </#list>
186 </span>
187 </div>
188 <div class="item p-4 border-complement border-top-none border-bottom-radius-5">
189 <h2>
190 <a href="${video}" target="_blank">
191 ${curEntry.getTitle(locale)}
192 </a>
193 </h2>
194 </div>
195 </div>
196 </#if>
197 </#list>
198 </#if>
199 </#if>
200 </#list>
201 </#list>
202 </div>
203 </div>
204 </div>
205 </section>
206 </#if>
207
208 <script>
209 $('.label-item-expand').each(function(){
210 var element = $(this).text();
211 var link = $(this).parent().find('a').attr('href');
212
213 $('#' + element).addClass('active');
214 $('#' + element).find('a').attr('href', link);
215 });
216 </script>