Web content search

Er trad een fout op tijdens de verwerking van de sjabloon.
The following has evaluated to null or missing:
==> periodDateUtil.getPeriodDate(curEntry, curEntry.getPublishDate())  [in template "1304208#1304259#1305654" at line 96, column 28]

----
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 publishDate = periodDateUtil...  [in template "1304208#1304259#1305654" at line 96, column 5]
----
1<#assign dossiersVocabularyId = 1306029/> 
2<#assign keywordsVocabularyId = 1306683/> 
3<#assign documentTypeVocabularyId = 1309113/> 
4<#assign newsTemplateKey = "1523434"/> 
5<#assign agendaTemplateKey = "1523426"/> 
6<#assign faqTemplateKey = "1523389"/> 
7<#assign expertTemplateKey = "1523430"> 
8 
9<#function filterCategories categories vocabularyId> 
10  <#local result = []> 
11  <#list categories as category> 
12    <#if category.vocabularyId == vocabularyId> 
13      <#local result += [category]/> 
14    </#if> 
15  </#list> 
16  <#return result> 
17</#function> 
18 
19<#function getSource assetEntry> 
20  <#local result = ""/> 
21  <#if assetEntry.getClassName() == "com.liferay.journal.model.JournalArticle"> 
22    <#local journalArticle = assetRenderer.getArticle() /> 
23    <#if journalArticle.getDDMTemplateKey() == newsTemplateKey > 
24      <#local result = assetFieldUtils.fetchString(assetEntry, "SourceName", locale, "")> 
25    <#elseif journalArticle.getDDMTemplateKey() == agendaTemplateKey> 
26      <#local result = assetFieldUtils.fetchString(assetEntry, "location", locale, "")> 
27    </#if> 
28  <#elseif assetEntry.getClassName() == "com.liferay.document.library.kernel.model.DLFileEntry"> 
29    <#local result = assetFieldUtils.fetchString(assetEntry, "AuteurRechterlijkeInstantie", locale, "")> 
30  </#if> 
31  <#return result> 
32</#function> 
33 
34<#function getContentType assetEntry> 
35  <#local result = resourceActions.getModelResource(locale, assetEntry.getClassName()) /> 
36  <#if assetEntry.getClassName() == "com.liferay.journal.model.JournalArticle"> 
37    <#local journalArticle = assetRenderer.getArticle() /> 
38    <#if journalArticle.getDDMTemplateKey() != "BASIC-WEB-CONTENT" > 
39      <#local result = journalArticle.getDDMStructure().getName(locale, true)/> 
40    </#if> 
41  <#elseif assetEntry.getClassName() == "com.liferay.document.library.kernel.model.DLFileEntry"> 
42    <#assign documentTypes = filterCategories(assetEntry.categories, documentTypeVocabularyId) /> 
43    <#if documentTypes?has_content> 
44      <#local result = documentTypes?first.getTitle(locale)/> 
45    </#if> 
46  </#if> 
47  <#return result> 
48</#function> 
49 
50<#function getEntrySummary assetEntry> 
51  <#local result = ""/> 
52  <#if assetEntry.getClassName() == "com.liferay.journal.model.JournalArticle"> 
53    <#local journalArticle = assetRenderer.getArticle() /> 
54    <#local result = journalArticle.getDescription(locale) > 
55    <#if !result?has_content> 
56      <#if journalArticle.getDDMTemplateKey() == newsTemplateKey || journalArticle.getDDMTemplateKey() == agendaTemplateKey || journalArticle.getDDMTemplateKey() == faqTemplateKey || journalArticle.getDDMTemplateKey() == expertTemplateKey> 
57        <#local result = assetFieldUtils.fetchString(assetEntry, "introductionContent", locale, "")> 
58      </#if> 
59    </#if> 
60    <#local result = stringUtil.shorten(result, 200) > 
61 
62  <#elseif assetEntry.getClassName() == "com.liferay.document.library.kernel.model.DLFileEntry"> 
63    <#local result = assetFieldUtils.fetchString(assetEntry, "Toelichting", locale, "")> 
64  </#if> 
65 
66  <#if !result?has_content> 
67    <#local result = assetEntry.getAssetRenderer().getSummary(renderRequest, renderResponse)> 
68    <#local result = stringUtil.shorten(result, 200) > 
69  </#if> 
70  <#return result> 
71</#function> 
72 
73<#function getTitle assetEntry> 
74  <#local result = assetFieldUtils.fetchString(assetEntry, "TitelInZoekresultaat", locale, "") > 
75 
76  <#if !result?has_content> 
77    <#local result = assetEntry.getAssetRenderer().getTitle(locale) > 
78  </#if> 
79  <#return result > 
80 
81</#function> 
82 
83<#if entries?has_content> 
84  <#list entries as curEntry>  
85 
86    <#assign assetRenderer = curEntry.getAssetRenderer() /> 
87    <#assign entryTitle = getTitle(curEntry) /> 
88    <#assign entrySummary = getEntrySummary(curEntry) /> 
89    <#assign viewURL = assetRenderer.getURLDownload(themeDisplay)! /> 
90    <#if !viewURL?has_content> 
91      <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry, true) /> 
92    </#if> 
93 
94    <#assign structureName = htmlUtil.escape(getContentType(curEntry)) /> 
95    <#assign source = htmlUtil.escape(getSource(curEntry)) /> 
96    <#assign publishDate = periodDateUtil.getPeriodDate(curEntry, curEntry.getPublishDate()) /> 
97    <#assign formattedDate = dateUtil.getDate(publishDate, "d MMMM yyyy", locale) /> 
98 
99 
100    <div class="overview__item search__item"> 
101      <h3> 
102        <a href="${htmlUtil.escapeHREF(viewURL)}"> 
103          ${htmlUtil.escape(entryTitle)} 
104        </a> 
105      </h3> 
106      <p class="meta"> 
107        ${structureName} | 
108        ${formattedDate} 
109        <#if source?has_content> 
110
111          <#if curEntry.getClassName() == "com.liferay.journal.model.JournalArticle"> 
112            <#assign journalArticle = assetRenderer.getArticle() /> 
113            <#if journalArticle.getDDMTemplateKey() == newsTemplateKey > 
114              <@liferay.language key="source" />: 
115            </#if> 
116          </#if> 
117          ${source} 
118        </#if> 
119      </p> 
120 
121    <#--Dossiers--> 
122      <#assign dossiers = filterCategories(curEntry.categories, dossiersVocabularyId) /> 
123      <p class="meta"> 
124          <#if dossiers?has_content> 
125            <#assign vocabulary = vocabularyUtils.getVocabulary(dossiersVocabularyId)/> 
126            <@liferay.language key="dossier" />: 
127            <#list dossiers as category> 
128              <#assign layout = layoutUtils.getLayoutFromCategory(category.categoryId, category.name)!> 
129              <#if layout?has_content> 
130                <a href="${layout.friendlyURL}">${htmlUtil.escape(layout.getName(themeDisplay.locale))}</a> 
131              <#else> 
132                ${htmlUtil.escape(category.getTitle(themeDisplay.locale))} 
133              </#if> 
134              <#if category?has_next || dossierPaginas?has_content > 
135
136              </#if> 
137            </#list> 
138          </#if> 
139 
140          <#-- 
141          <#if curEntry.getClassName() == "com.liferay.journal.model.JournalArticle"> 
142            <#assign docXml = saxReaderUtil.read(assetRenderer.getArticle().getContent()) /> 
143            <#assign dossierPaginas = docXml.getRootElement().selectNodes("//dynamic-element[@name='DossierPagina']") /> 
144            <#list dossierPaginas as dossierPagina> 
145              <#assign dossierPaginaContent = dossierPagina.elementText("dynamic-content") /> 
146              <#if dossierPaginaContent?has_content> 
147                <#assign layout = layoutUtils.getLinkToPageLayout(dossierPaginaContent)!> 
148 
149                <#if layout?has_content> 
150                    <a href="${layout.friendlyURL}">${htmlUtil.escape(layout.getName(themeDisplay.locale))}</a> 
151                  <#if dossierPagina?has_next> 
152
153                  </#if> 
154                </#if> 
155              </#if> 
156            </#list> 
157          </#if> 
158      </p> --> 
159 
160    <#--Keywords--> 
161      <#assign keywords = filterCategories(curEntry.categories, keywordsVocabularyId) /> 
162      <#if keywords?has_content> 
163        <p class="meta"> 
164          <#assign vocabulary = vocabularyUtils.getVocabulary(keywordsVocabularyId)/> 
165          <@liferay.language key="keywords" />: 
166          <#list keywords as category> 
167            <a href="/search?p_p_id=nl_worth_article_search_portlet_ArticleSearchPortlet&_nl_worth_article_search_portlet_ArticleSearchPortlet_keywords=${htmlUtil.escapeURL(category.getTitle(themeDisplay.locale))}"> 
168              ${htmlUtil.escape(category.getTitle(themeDisplay.locale))} 
169            </a> 
170            <#if category?has_next> 
171
172            </#if> 
173          </#list> 
174        </p> 
175      </#if> 
176      <p> 
177        ${entrySummary} 
178      </p> 
179    </div> 
180  </#list> 
181</#if> 
Toont 1 - 17 van 17 resultaten.

Internationale rechtsorde