Er trad een fout op tijdens de verwerking van de sjabloon.
The following has evaluated to null or missing: ==> language [in template "1369164#1369202#1381211" at line 139, column 63] ---- 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: #if stringUtil.equalsIgnoreCase("0", ... [in template "1369164#1369202#1381211" at line 139, column 25] ----
1<#-- SERVICIOS -->
2<#assign layoutLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.LayoutLocalService")>
3<#-- <#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> -->
4
5<#assign urlEncoder = staticUtil["java.net.URLEncoder"]>
6<#assign dateFormatSymbols = staticUtil["java.text.DateFormatSymbols"]>
7
8<#-- servicios related asset subhome -->
9<#assign assetEntryLocalService = serviceLocator.findService('com.liferay.asset.kernel.service.AssetEntryLocalService')>
10<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
11<#assign journalArticleResourceLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")>
12<#assign assetVocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")>
13<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
14<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
15<#assign journalArticle = JournalArticleLocalService.getArticle(getterUtil.getLong(groupId),.vars['reserved-article-id'].data) />
16<#assign templateFunctionsHelperLocalService = serviceLocator.findService('net.bizkaia.iybiscuc.service.TemplateFunctionsHelperLocalService')>
17
18<#assign localizacionesVocabulary = assetVocabularyService.getGroupVocabulary(themeDisplay.getLayout().getGroupId(), "Localizaciones")>
19<#assign categoryList = localizacionesVocabulary.getCategories()/>
20
21
22<#assign categories = AssetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()) />
23
24<#assign liferay_ui = taglibLiferayHash["/META-INF/liferay-ui.tld"] />
25
26
27<#-- VARIABLES -->
28<#assign articleId = .vars['reserved-article-id'].getData() >
29<#if request?has_content>
30 <#assign portletNamespace = themeDisplay.getPortletDisplay().getId() + '_' />
31<#else>
32 <#assign portletNamespace = articleId + '_'>
33</#if>
34
35<#assign articleTitle = .vars['reserved-article-title'].getData() >
36
37<#assign encodedTitle = urlEncoder.encode(articleTitle, "UTF-8")>
38
39<#-- <#assign themeDisplay = serviceContext.getThemeDisplay() /> -->
40<#assign layout = themeDisplay.getLayout() />
41
42<#assign vocabularyCategories = themeDisplay.getThemeSetting("vocabulary-id") >
43
44<#-- obtener subhome enlazada como related assets -->
45<#assign journalArticleClassName = "com.liferay.journal.model.JournalArticle">
46
47<#assign introSubhomeStructureId = themeDisplay.getThemeSetting("structure-introsubhome-id") >
48
49<#assign reportajeArticle = journalArticleLocalService.getArticle(groupId, articleId) >
50<#assign reportajeEntry = assetEntryLocalService.getEntry(journalArticleClassName, reportajeArticle.getResourcePrimKey()) >
51
52<#assign categoryName = "">
53
54<#if reportajeEntry.getCategories()?has_content>
55 <#list reportajeEntry.getCategories() as category>
56 <#if category.getVocabularyId()?string == vocabularyCategories>
57 <#-- <#assign categoryName = category.getName()> -->
58 <#assign categoryName = category.getTitle(locale)>
59 </#if>
60 </#list>
61</#if>
62
63<#assign dateFormatFrom = 'yyyy-MM-dd'>
64<#assign dateFormatTo = 'iytu.dateFormatList'>
65<#assign sdfMonth = objectUtil("java.text.SimpleDateFormat", "MMMMM", locale) />
66<#assign VOID = sdfMonth.setDateFormatSymbols(dateFormatSymbols.getInstance(locale)) />
67
68<#assign date = []>
69<#assign dateInicio_Data = getterUtil.getString(fechaInicio.getData())>
70<#assign dateInicio_DateObj = dateUtil.parseDate(dateFormatFrom, dateInicio_Data, locale)>
71<#assign date = date + [ '${dateUtil.getDate(dateInicio_DateObj, "d", locale)}' ] >
72<#assign date = date + [ '${sdfMonth.format(dateInicio_DateObj)}' ] >
73
74<#assign date2 = []>
75<#assign dateFin_Data = getterUtil.getString(fechaFin.getData())>
76<#if validator.isNotNull(dateFin_Data)>
77 <#assign dateFin_DateObj = dateUtil.parseDate(dateFormatFrom, dateFin_Data, locale)>
78 <#assign date2 = date2 + [ '${dateUtil.getDate(dateFin_DateObj, "d", locale)}' ] >
79 <#assign date2 = date2 + [ '${sdfMonth.format(dateFin_DateObj)}' ] >
80</#if>
81
82<#assign strFecha = languageUtil.format(locale, dateFormatTo, date)?lower_case>
83<#if validator.isNotNull(dateFin_Data)>
84 <#if !stringUtil.equalsIgnoreCase(languageUtil.format(locale, dateFormatTo, date)?lower_case, languageUtil.format(locale, dateFormatTo, date2)?lower_case)>
85 <#assign strFecha = strFecha + " · " + languageUtil.format(locale, dateFormatTo, date2)?lower_case >
86 </#if>
87</#if>
88
89<#assign strHora = "">
90<#if horaInicio?? && horaInicio.getData()?has_content>
91 <#assign strHora = horaInicio.getData()>
92 <#if horaFin?? && horaFin.getData()?has_content>
93 <#assign strHora = strHora + " · " + horaFin.getData()>
94 </#if>
95</#if>
96
97<div class="huge-slider">
98 <div class="slider-container">
99 <div class="slider">
100 <div class="imagen_fondo_slider" style="background-image:url('${imagenCabecera.getData()}');"></div>
101 <div class="bipo_overlay"></div>
102 <#if !stringUtil.equalsIgnoreCase("", imagenSuperpuestaCabecera.getData())>
103 <div class="cabecera_imagen_anexa"><img src="${imagenSuperpuestaCabecera.getData()}" alt=""></div>
104 </#if>
105
106 <div class="slider-info prueba">
107 <div class="slider-info-inner">
108 <#if locale != "en_GB" && (categoryName == "Family Friendly" || categoryName == "Basque") >
109 <p class="categoria bgcolor" lang="en">${categoryName}</p>
110 <#else>
111 <p class="categoria bgcolor">${categoryName}</p>
112 </#if>
113 <h3 class="mb-2">${articleTitle}</h3>
114 <#if !stringUtil.equalsIgnoreCase("", categorizacion.entradilla.getData())>
115 <div class="top-reportaje-entradilla">
116 <p class="subtitulo">
117 ${categorizacion.entradilla.getData()}
118 </p>
119 </div>
120 </#if>
121
122 <ul class="tags">
123 <#list categories as category>
124 <#list categoryList as categoryL>
125 <#if stringUtil.equalsIgnoreCase(categoryL.categoryId?string, category.categoryId?string)>
126 <li class="tag-donde">${category.getTitle(locale)}</li>
127 </#if>
128 </#list>
129 </#list>
130 </ul>
131
132 <ul class="evento-datos">
133 <li><span class="iytuicon icon-calendar" aria-hidden="true"></span>${strFecha}</li>
134 <#if !stringUtil.equalsIgnoreCase("", strHora)>
135 <li><span class="iytuicon icon-horario" aria-hidden="true"></span>${strHora}</li>
136 </#if>
137 <li><span class="iytuicon icon-location" aria-hidden="true"></span>${localizacion.getData()}</li>
138
139 <#if stringUtil.equalsIgnoreCase("0", language.getData())>
140 <li><span class="iytuicon icon-ver_web" aria-hidden="true"></span><@liferay.language key="iytu.buscador.eventos.language.euskera" /></li>
141 </#if>
142 <#if stringUtil.equalsIgnoreCase("1", language.getData())>
143 <li><span class="iytuicon icon-ver_web" aria-hidden="true"></span><@liferay.language key="iytu.buscador.eventos.language.espanol" /></li>
144 </#if>
145 <#if stringUtil.equalsIgnoreCase("2", language.getData())>
146 <li><span class="iytuicon icon-ver_web" aria-hidden="true"></span><@liferay.language key="iytu.buscador.eventos.language.ingles" /></li>
147 </#if>
148 <#if stringUtil.equalsIgnoreCase("3", language.getData())>
149 <li><span class="iytuicon icon-ver_web" aria-hidden="true"></span><@liferay.language key="iytu.buscador.eventos.language.frances" /></li>
150 </#if>
151 <#if stringUtil.equalsIgnoreCase("4", language.getData())>
152 <li><span class="iytuicon icon-ver_web" aria-hidden="true"></span><@liferay.language key="iytu.buscador.eventos.language.cualquier-idioma" /></li>
153 </#if>
154
155 <li><span class="iytuicon icon-accesibilidad" aria-hidden="true"></span>
156
157 <#assign categoriasAccesibilidad=[] />
158 <#list categories as category>
159 <#if category.getVocabularyId() == templateFunctionsHelperLocalService.getVocabularyId(groupId, 'Accesible')>
160 <#assign categoriasAccesibilidad = categoriasAccesibilidad + [category] />
161 </#if>
162 </#list>
163 <#if categoriasAccesibilidad?size==0>
164 <@liferay.language key="iytu.buscador.eventos.no-adaptada" />
165 </#if>
166 <#list categoriasAccesibilidad as categoryA>
167 <#if categoryA?is_last>
168 ${categoryA.getTitle(locale)}
169
170 <#else>
171 ${categoryA.getTitle(locale)},
172
173 </#if>
174 </#list>
175
176 </li>
177 </ul>
178
179
180 </div>
181 </div>
182 <div class="turi-flecha">
183 <p><a href="#breadcrumb"><span class="iytuicon icon-skip-Video"></span> <span class="sr-only"><@liferay.language key="iytu.irContenido" /></span></a></p>
184 </div>
185 </div>
186
187 </div>
188</div>
189
190<#function getAssetEntryQuery classNameId structureId linkedAssetEntryId order orderType>
191 <#assign assetEntryQuery = objectUtil("com.liferay.portlet.asset.service.persistence.AssetEntryQuery") >
192
193 <#assign classNameIds = [classNameId] >
194 ${assetEntryQuery.setClassNameIds(classNameIds)}
195
196 <#if !stringUtil.equalsIgnoreCase("", structureId?string) >
197 <#assign classTypeIds = [structureId] >
198 ${assetEntryQuery.setClassTypeIds(classTypeIds)}
199
200 <#if !stringUtil.equalsIgnoreCase("", order) >
201 ${assetEntryQuery.setOrderByCol1(order)}
202 ${assetEntryQuery.setOrderByType1(orderType)}
203 </#if>
204 </#if>
205
206 <#if !stringUtil.equalsIgnoreCase("0", linkedAssetEntryId?string) >
207 ${assetEntryQuery.setLinkedAssetEntryId(linkedAssetEntryId)}
208 </#if>
209
210 <#return assetEntryQuery >
211</#function>