Fel uppstod under bearbetning av mallen.
Error: on line 118, column 15 in 10155#10195#283235
Expecting a number here, found: 
1<#if entries?has_content> 
2 
3<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
4 
5<#assign curDate5 = dateUtil.getCurrentDate("MMM dd yyyy HH:mm:ss.SSS zzz", locale) /> 
6<#assign curDate6 = dateUtil.getCurrentDate("MMM dd yyyy", locale) /> 
7 
8 
9 
10<#assign curDate = .now?long /> 
11<#assign curDate8 = .now?long?number_to_date /> 
12 
13<#assign aDateTime = .now?date /> 
14<#assign localDateStr = aDateTime?iso_local /> 
15<#assign localDate = localDateStr?date("yyyy-MM-dd")?long /> 
16<#assign nowDateTime = .now?datetime?iso_local /> 
17<#assign nowDate = .now?date?iso_local?date("yyyy-MM-dd") /> 
18<#assign nowEpoch = .now?date?iso_local?date("yyyy-MM-dd")?long /> 
19 
20 
21<#assign oneDayMs = 24 * 60 * 60 * 1000 /> 
22<#assign timeZoneOffset = 2 * 60 * 60 * 1000 /> 
23<#assign curDateModulo = (curDate + timeZoneOffset) % oneDayMs /> 
24<#assign curDateRound = curDate - curDateModulo /> 
25 
26-- epoch date round manual (winter time) ${curDateRound} -- 
27-- now epoch date ${nowEpoch} -- 
28-- now datetime ${nowDateTime} -- 
29 
30 
31<table class="pgrList table table-striped table-bordered table-hover"> 
32        <thead> 
33        <tr> 
34            <th colspan="2">Kurssi</th> 
35            <th>Ajankohta</th> 
36            <th>Ilmoittautuminen</th> 
37            <th class="hide">Kategoriat</th> 
38        </tr> 
39        </thead> 
40        <tbody> 
41 
42<#list entries as entry> 
43    <#assign entry = entry /> 
44 
45    <#assign assetRenderer = entry.getAssetRenderer() /> 
46 
47    <#assign entryTitle = htmlUtil.escape(assetRenderer.getTitle(locale)) /> 
48 
49    <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, entry) /> 
50     
51    <#assign link = ""> 
52    <#assign registrationStart = "" /> 
53 
54    <#if assetLinkBehavior != "showFullContent"> 
55        <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
56    </#if> 
57     
58    <#assign className = assetRenderer.getClassName /> 
59     
60    <#assign journalArticle = assetRenderer.getArticle() /> 
61    <#assign document = saxReaderUtil.read(journalArticle.getContent()) /> 
62    <#assign rootElement = document.getRootElement() /> 
63     
64    <#list rootElement.elements() as dynamicElement> 
65        <#if dynamicElement.attributeValue("name") == "Linkki_opintopolkuun"> 
66            <#assign link = dynamicElement.element("dynamic-content").getText() /> 
67        </#if> 
68        <#if dynamicElement.attributeValue("name") == "Ilmoittautuminen_alkaa"> 
69            <#assign registrationStart = dynamicElement.element("dynamic-content").getText() /> 
70        </#if> 
71        <#if dynamicElement.attributeValue("name") == "Viimeinen_ilmoittautumispaiva"> 
72            <#assign registrationEnd = dynamicElement.element("dynamic-content").getText() /> 
73        </#if> 
74        <#if dynamicElement.attributeValue("name") == "Ilmoittautumislinkki"> 
75            <#assign registration = dynamicElement.element("dynamic-content").getText() /> 
76        </#if> 
77        <#if dynamicElement.attributeValue("name") == "Kurssin_aloituspäivä"> 
78            <#assign startDate = dynamicElement.element("dynamic-content").getText() /> 
79        </#if> 
80        <#if dynamicElement.attributeValue("name") == "Kurssin_päättymispäivä"> 
81            <#assign endDate = dynamicElement.element("dynamic-content").getText() /> 
82        </#if> 
83    </#list> 
84     
85    <#if registration != ""> 
86    <#assign registerDisplay = "" /> 
87    <#assign tdId = "" /> 
88                <#if registrationEnd != "" && registrationStart?? && registrationStart != ""> 
89                    <#if registrationEnd?number gte nowEpoch && registrationStart?number lte nowEpoch> 
90                        <#assign formattedDate = registrationEnd?number?number_to_date?string["d.M.yyyy"] /> 
91                        <#assign registerDisplay = '<a href="${registration}" target="_blank">Ilmoittaudu ${formattedDate} mennessä</a> reg Start ${registrationStart?number?number_to_date?string["d.M.yyyy"]} reg End ${registrationEnd?number?number_to_date?string["d.M.yyyy"]}' /> 
92                        <#assign tdId = 'id="green"'> 
93                    <#elseif registrationEnd?number gt nowEpoch && registrationStart?number gt nowEpoch> 
94                        <#assign registerDisplay = 'Ilmoittautuminen alkaa ${registrationStart?number?number_to_date?string["d.M.yyyy"]} reg Start ${registrationStart?number} on suurempi kuin ${nowEpoch}' /> 
95                        <#assign tdId = 'id="yellow"'> 
96                    <#elseif registrationEnd?number lt nowEpoch> 
97                        <#assign formattedDate = registrationEnd?number?number_to_date?string["d.M.yyyy"] /> 
98                        <#assign registerDisplay = 'Ilmoittautuminen päättynyt ${formattedDate}' /> 
99                        <#assign tdId = 'id="red"'> 
100                    <#else> 
101                        <#assign registerDisplay = '***' /> 
102                        <#assign tdId = 'id=""'> 
103                    </#if> 
104                </#if> 
105 
106    <tr> 
107        <td ${tdId}> 
108        </td> 
109        <td> 
110        <#if link?? && link!=""> 
111        <a href="${link}" target="_blank">${entryTitle}</a> 
112        <#else> 
113        <a href="${viewURL}">${entryTitle}</a> 
114        </#if> 
115        </td> 
116        <td> 
117        <#if startDate??> 
118            ${startDate?number?number_to_date?string["d.M.yyyy"]} 
119        </#if> 
120        <#if endDate?? && endDate != ""> 
121            - ${endDate?number?number_to_date?string["d.M.yyyy"]} 
122        </#if> 
123        </td> 
124        <#if registrationEnd?? && registration??> 
125            <td> 
126            ${registerDisplay} 
127            **** 
128            now Epoch ${nowEpoch} 
129            **** 
130            reg Start ${registrationStart?number} 
131             
132            <#if registrationStart != ""> 
133            registrationStart Epoch: ${registrationStart?number} registrationStartDate: ${registrationStart?number?number_to_date?string["d.M.yyyy"]} 
134            </#if> 
135            <#if registrationEnd != ""> 
136            registrationEnd Epoch: ${registrationEnd?number} registrationEndDate: ${registrationEnd?number?number_to_date?string["d.M.yyyy"]} 
137            </#if> 
138            </td> 
139        </#if> 
140        <td class="hide"><@getMetadataField fieldName="categories" /></td> 
141    </tr> 
142    </#if> 
143</#list> 
144 
145</tbody> 
146</table> 
147 
148</#if> 
149 
150<div id="no-results" class="content"></div> 
151 
152<#macro getMetadataField 
153    fieldName 
154
155    <#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
156        <span class="metadata-entry metadata-${fieldName}"> 
157            <#assign dateFormat = "dd MMM yyyy - HH:mm:ss" /> 
158 
159            <#if fieldName == "author"> 
160                <@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
161            <#elseif fieldName == "categories"> 
162                <@liferay_ui["asset-categories-summary"] 
163                    className=entry.getClassName() 
164                    classPK=entry.getClassPK() 
165                    portletURL=renderResponse.createRenderURL() 
166                /> 
167            <#elseif fieldName == "create-date"> 
168                ${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale)} 
169            <#elseif fieldName == "expiration-date"> 
170                ${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale)} 
171            <#elseif fieldName == "modified-date"> 
172                ${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)} 
173            <#elseif fieldName == "priority"> 
174                ${entry.getPriority()} 
175            <#elseif fieldName == "publish-date"> 
176                ${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale)} 
177            <#elseif fieldName == "tags"> 
178                <@liferay_ui["asset-tags-summary"] 
179                    className=entry.getClassName() 
180                    classPK=entry.getClassPK() 
181                    portletURL=renderResponse.createRenderURL() 
182                /> 
183            <#elseif fieldName == "view-count"> 
184                <@liferay_ui["icon"] 
185                    image="history" 
186                /> 
187 
188                ${entry.getViewCount()} <@liferay.language key="views" /> 
189            </#if> 
190        </span> 
191    </#if> 
192</#macro>