Search the catalogue

angle-left Järna bibliotek

Järna bibliotek

An error occurred while processing the template.
The string doesn't match the expected date/time/date-time format. The string to parse was: "". The expected format was: "yyyy-MM-dd".
The nested reason given follows:
Unparseable date: ""

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign eventDate = docXml.valueOf("/...  [in template "302377#302411#312453" at line 15, column 21]
----
1<div class="calendar-list-container"> 
2    <ul class="calendar-list"> 
3        <#if entries?has_content> 
4            <#list entries as curEntry> 
5                <#assign renderer = curEntry.getAssetRenderer() /> 
6                <#assign className = renderer.getClassName() > 
7                <#if className == "com.liferay.journal.model.JournalArticle"> 
8                    <#assign article = renderer.getArticle() > 
9                    <#assign img = article.getSmallImageURL() > 
10                    <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) /> 
11                    <#assign viewURL = renderer.getURLViewInContext(renderRequest, renderResponse, viewURL ) /> 
12                    <#assign docXml = saxReaderUtil.read(article.getContentByLocale(locale)) /> 
13                    <#assign title = renderer.getTitle(locale) /> 
14                    <#assign eventsTitle = renderer.getTitle(locale) /> 
15                    <#assign eventDate = docXml.valueOf("//dynamic-element[@name='eventDate']/dynamic-content/text()")?date("yyyy-MM-dd") /> 
16                    <#assign eventEndDate = docXml.valueOf("//dynamic-element[@name='eventEndDate']/dynamic-content/text()") /> 
17                    <#assign eventTime = docXml.valueOf("//dynamic-element[@name='eventTime']/dynamic-content/text()") /> 
18                    <#assign eventLocation = docXml.valueOf("//dynamic-element[@name='eventLocation']/dynamic-content/text()") /> 
19                    <#assign documentsAndMediaImage = docXml.valueOf("//dynamic-element[@name='documentsAndMediaImage']/dynamic-content/text()") /> 
20                    <#macro getLocalization id> 
21                        <#if locale == "fi_FI"> 
22                            <#if id == "show_all"> 
23                                Näytä kaikki tapahtumat 
24                            </#if> 
25                        <#elseif locale == "sv_SE"> 
26                            <#if id == "show_all"> 
27                                Visa alla evenemang 
28                            </#if> 
29                        <#elseif locale == "nb_NO"> 
30                            <#if id == "show_all"> 
31                                Vis alle arrangementer 
32                            </#if> 
33                        <#elseif locale == "en_GB"> 
34                            <#if id == "show_all"> 
35                                Show all events 
36                            </#if> 
37                        <#else> 
38                            <#if id == "show_all"> 
39                                Show all events 
40                            </#if> 
41                        </#if> 
42                    </#macro> 
43 
44                    <li class="entry"> 
45                        <div class="lfr-meta-actions asset-actions clearfix"><@getEditIcon /></div> 
46                        <a href="${viewURL}"> 
47                            <#if documentsAndMediaImage != ""> 
48                                <div class="calendar-image"> 
49                                    <img src="${documentsAndMediaImage}" alt="${title}"/> 
50                                </div> 
51                            </#if> 
52 
53                            <div class="calendar-inner-wrapper"> 
54                                <h3 class="calendar-title">${eventsTitle}</h3> 
55                                <div class="calendar-date"><span class="lr-calender-date-start">${dateUtil.getDate(eventDate, "yyyy-MM-dd", locale)}</span> 
56                                    <#if eventEndDate !=""> 
57                                        <#assign eventEndDateObject = eventEndDate?date("yyyy-MM-dd") /> 
58                                        - <span class="lr-calender-date-end">${dateUtil.getDate(eventEndDateObject, "yyyy-MM-dd", locale)}</span> 
59                                    </#if> 
60                                </div> 
61                                <div class="calendar-time">${eventTime}</div> 
62                                <div class="calendar-location">${eventLocation}</div> 
63                            </div> 
64                        </a> 
65                    </li> 
66                </#if> 
67            </#list> 
68        </#if> 
69    </ul> 
70 
71    <div class="linkbox"><a class="news-link" href="/web/arena/evenemang"><@getLocalization id="show_all" /></a></div> 
72</div> 
73 
74<#macro getEditIcon> 
75    <#if renderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
76        <#assign redirectURL = renderResponse.createRenderURL() /> 
77 
78        ${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
79        ${redirectURL.setWindowState("pop_up")} 
80 
81        <#assign editPortletURL = renderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL) /> 
82 
83        <#if validator.isNotNull(editPortletURL)> 
84            <#assign title = languageUtil.format(locale, "edit-x", htmlUtil.escape(renderer.getTitle(locale))) /> 
85 
86            <@liferay_ui["icon"] 
87            <#--image="edit"--> 
88            iconCssClass="icon-edit" 
89            message=title 
90            url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
91            /> 
92        </#if> 
93    </#if> 
94</#macro> 

Language

de-de en-gb fr-fr