S'estan carregant els enllaços...















S'ha produït un error mentre es processava la plantilla.
Java method "com.sun.proxy.$Proxy243.getVocabulary(long)" threw an exception when invoked on com.sun.proxy.$Proxy243 object "com.liferay.portlet.asset.service.impl.AssetVocabularyServiceImpl@417f5ecc"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign vocabulary = vocabularyServic... [in template "20098#20124#UB_TPL_NOVEDAD_SEARCH_ITEM" at line 45, column 21] ----
1<#assign
2summary = .vars['reserved-article-description'].data
3jaId = .vars['reserved-article-id'].data
4jaService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")
5assetService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryService")
6vocabularyService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyService")
7articleResourcePK = jaService.getArticleResourcePrimKey(groupId, jaId)
8assetEntry = assetService.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePK)
9friendlyUrl = friendlyURLs[themeDisplay.languageId]!""
10defaultFriendlyUrl = friendlyURLs[themeDisplay.siteDefaultLocale]!""
11detailURL = ((friendlyUrl?length gt 0)?then(friendlyUrl, defaultFriendlyUrl))
12querySymbol = (detailURL?contains("?"))?then("&", "?")
13npDetailURL = detailURL + querySymbol + "tn=np"
14/>
15<div class="ub-tpl-novedad-search-item search-result-item">
16 <div class="container-xl d-flex">
17 <#if (imagenDestacada.getData())?? && imagenDestacada.getData() != "">
18 <div class="image-col">
19 <img alt="${imagenDestacada.getAttribute("alt")}"
20 class="image"
21 data-fileentryid="${imagenDestacada.getAttribute("fileEntryId")}"
22 src="${imagenDestacada.getData()}"/>
23 </div>
24 </#if>
25 <div class="text-col">
26 <#assign
27 displayDateStr = .vars['reserved-article-display-date'].data
28 displayDate = dateUtil.parseDate("EEE, dd MMM yyy HH:mm:ss Z", displayDateStr, themeDisplay.getSiteDefaultLocale())
29 />
30
31 <#if (titulo.getData())??>
32 <h2 class="main-title">
33 <#if detailURL?has_content>
34 <a href="${detailURL}">${titulo.getData()}</a>
35 <#else>
36 ${titulo.getData()}
37 </#if>
38 <span class="search-result-date d-block d-md-inline mt-2 mt-md-0">${dateUtil.getDate(displayDate, "dd/MM/yyyy", locale)}</span>
39 </h2>
40 </#if>
41
42 <div class="searh-result-category">
43 <#assign firstCategory = false />
44 <#list assetEntry.categories as category>
45 <#assign vocabulary = vocabularyService.getVocabulary(category.getVocabularyId()) />
46 <#if vocabulary.visibilityType == 0>
47 <#if firstCategory>
48 <span class="separador">|</span>
49 </#if>
50 <span>${category.name}</span>
51 <#assign firstCategory = true />
52 </#if>
53 </#list>
54 </div>
55 <#if (descripcion.getData())??>
56 <div class="paragraph d-none d-md-block">
57 ${summary}
58 </div>
59 </#if>
60 </div>
61 </div>
62</div>


