Wydarzenia i konkursy - Biuro Karier i Promocji Wydziału Chemii

Wystąpił błąd podczas przetwarzania szablonu.
The following has evaluated to null or missing:
==> $indeksPoczatkowy [in template "20096#20121#14-LISTA-AKTUALNOSCI" at line 196, column 37]
----
Tip: Variable references must not start with "$", unless the "$" is really part of the variable name.
----
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: #assign indeksPoczatkowy = $indeksPoc... [in template "20096#20121#14-LISTA-AKTUALNOSCI" at line 196, column 9]
----
1<#assign adresStrony = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()?replace("\\?.*", '', 'r')/>
2<#-- strona otwarta adresem witryny (/web/<witryna>, domena witryny): LR7 zwraca 404 dla /-/journal_content/...
3 doklejonego wprost do adresu witryny, wiec dopisany adres biezacej strony (20.11.2026) -->
4<#assign adresBiezacejStrony = themeDisplay.getLayout().getFriendlyURL(themeDisplay.getLocale())/>
5<#if !adresStrony?contains("/-/") && !adresStrony?contains("?") && !adresStrony?replace('/+$', '', 'r')?ends_with(adresBiezacejStrony)>
6 <#assign adresStrony = adresStrony?replace('/+$', '', 'r') + adresBiezacejStrony/>
7</#if>
8<#assign currentRenderUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()/>
9
10<#assign
11 titleData = ''
12 rodzajData = ''
13 typData = ''
14 kategoriaData = ''
15 tagData = ''
16 iloscWiadomosciData = ''
17 brakData = ''
18 showDateData = ''
19 showAuthorData = ''
20/>
21
22<#if (tytul.getData())??>
23 <#assign titleData = tytul.getData()/>
24</#if>
25<#if (rodzaj.getData())??>
26 <#assign rodzajData = rodzaj.getData()/>
27</#if>
28<#if (typ.getData())??>
29 <#assign typData = typ.getData()/>
30</#if>
31<#if (kategoria.getData())??>
32 <#assign kategoriaData = kategoria.getData()/>
33</#if>
34<#if (tag.getData())??>
35 <#assign tagData = tag.getData()/>
36</#if>
37<#if (iloscWiadomosci.getData())??>
38 <#assign iloscWiadomosciData = iloscWiadomosci.getData()/>
39</#if>
40<#if (brak.getData())??>
41 <#assign brakData = brak.getData()/>
42</#if>
43<#if (showDate.getData())??>
44 <#assign showDateData = showDate.getData()/>
45</#if>
46<#if (showAuthor.getData())??>
47 <#assign showAuthorData = showAuthor.getData()/>
48</#if>
49
50<#assign iloscNaStronie = getterUtil.getInteger(iloscWiadomosciData)/>
51<#if iloscNaStronie == 0>
52 <#assign iloscNaStronie = 7/>
53</#if>
54<#assign strona = 1/>
55<#if renderRequest.getOriginalHttpServletRequest().getParameter('strona')??>
56 <#assign strona = getterUtil.getInteger(renderRequest.getOriginalHttpServletRequest().getParameter('strona')?html)>
57</#if>
58
59<#assign obrazekW = 36/>
60<#assign obrazekH = 36/>
61<#assign boxH = obrazekH + 6 />
62
63<#assign plid = "#portlet_" + themeDisplay.getPortletDisplay().getId()/>
64
65<style type="text/css">
66
67 ${plid} .tytul { color:#666; font-weight: bold; display:block; }
68 ${plid} .opis { color: #666; font-weight: normal; display:block;margin-bottom: 4px; }
69 ${plid} .date {font-size: 9px; color: #ababab; margin-bottom: 4px;}
70 ${plid} .author {font-size: 9px; color: #ababab; margin-bottom: 4px;}
71
72 ${plid} p { text-align: left; }
73
74 ${plid} img.foto {width:${obrazekW}px; height:${obrazekH}px; padding:2px; border:1px solid #cccccc; float:left; display: inline-block; margin: 0px 4px 2px 0px; overflow:hidden;}
75
76 ${plid} h2{ margin: 0px 0px 10px 0px;padding: 0px 0px 1px 0px; width: 100%; border-bottom: 4px #00519e solid; font-weight: bold; font-size: 16px; color: #00519e;}
77 ${plid} h3{ margin: 0px 0px 10px 0px; padding: 10px 0px 6px 0px; width: 100%; border-bottom: 4px solid #00519e; font-weight: bold; font-size: 11px; color: #00519e;}
78 ${plid} h4{ margin: 0px 0px 10px 0px; padding: 10px 0px 6px 0px; width: 100%; border-bottom: 1px dotted #aaa; font-weight: bold; font-size: 11px; color: #00519e;}
79
80 ${plid} div{
81 clear:both;
82 margin-bottom:10px;
83 }
84
85 ${plid} a.box {
86 clear:both;
87 color:#666;
88 text-decoration:none;
89 height:100%;
90 display:block;
91 padding:3px;
92 }
93
94 ${plid} div.box a:hover.box {
95 text-decoration:none;
96 background:#f5f5f5;
97 }
98
99 ${plid} a.box_z_obrazkiem{ min-height: ${boxH}px;}
100 .ie6 ${plid} a.box_z_obrazkiem { height: ${boxH}px;}
101
102 ${plid} .ikona_audio { margin:1px; padding:0px 1px 0px 8px; display:inline-block; background: url(/image/image_gallery?uuid=26e82bf7-1deb-4583-a90f-c61fb8514f27&groupId=10172&t=1257529901140) left no-repeat }
103 ${plid} .ikona_foto { margin:1px; padding:0px 1px 0px 8px; display:inline-block; background: url(/image/image_gallery?uuid=56901e74-f170-484b-b7ff-1d8e92714475&groupId=10172&t=1257529901237) left no-repeat }
104 ${plid} .ikona_video { margin:1px; padding:0px 1px 0px 8px; display:inline-block; background: url(/image/image_gallery?uuid=03abf4cf-0067-4f5c-b04c-1385e02321ee&groupId=10172&t=1257529901425) left no-repeat }
105
106 ul.paginacja { list-style-type: none; color:#666; margin: 0; }
107 ul.paginacja li { float: left; display: block; background-color: #FFF; margin-right: 8px; }
108 ul.paginacja li a:link { text-decoration: none; padding: 3px 5px 4px 5px; border: 1px solid #999; color:#666; }
109 ul.paginacja li a:visited { text-decoration: none; padding: 3px 5px 4px 5px; color:#666; border: 1px solid #999; }
110 ul.paginacja li a:hover { text-decoration: none; padding: 2px 4px 3px 4px; border: 2px solid #00519e; color:#666; }
111 ul.paginacja li a:active { text-decoration: none; padding: 2px 4px 3px 4px; border: 2px solid #00519e; color:#666; }
112 ul.paginacja li span {font-weight: bold; color: #00519e;}
113
114 .journal-content-article ul.paginacja {
115 margin: 0;
116 }
117</style>
118
119<#assign longGroupId = themeDisplay.getScopeGroupId()/>
120
121<#-----------Services----------->
122<#-- <#assign assetService = serviceLocator.findService("articles","com.liferay.articles.service.CustomAssetLocalService")/>-->
123<#assign journalArticleResourceService = serviceLocator.findService("com.liferay.journal.service.JournalArticleResourceLocalService")/>
124<#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/>
125
126<#-----------Dates----------->
127<#assign dzisiaj = dateUtil.parseDate("yyyyMMdd", .now?string("yyyyMMdd"), locale)/>
128<#assign m = dzisiaj?long/>
129<#assign j = m + 86400000>
130<#assign jutro = j?number_to_date/>
131
132<#assign emptyLongArray = getterUtil.getLongValues([])/>
133<#-----------Categories----------->
134<#assign categoryIds = emptyLongArray/>
135<#assign omitCategoryIds = emptyLongArray/>
136
137<#list stringUtil.split(categoriesData, ",") as categorie>
138 <#if categorie?length gt 0>
139 <#assign categoryNameTmp = [categorie?trim]/>
140 <#list groupIds as longGroupId>
141 <#assign categoryIdTmp = ujCustomAssetHelper.getCategoryIds(longGroupId, categoryNameTmp)/>
142 <#assign categoryIds = arrayUtil.append(categoryIds, categoryIdTmp)/>
143 </#list>
144 </#if>
145</#list>
146
147<#-----------Tags----------->
148<#assign tagIds = emptyLongArray/>
149<#assign omitTagIds = emptyLongArray/>
150
151<#list stringUtil.split(tagsData) as tag>
152 <#if tag?length gt 0>
153 <#assign tagNameTmp = [tag?trim]/>
154 <#list groupIds as longGroupId>
155 <#assign tagIdTmp = ujCustomAssetHelper.getTagIds(longGroupId, tagNameTmp)/>
156 <#assign tagIds = arrayUtil.append(tagIds, tagIdTmp)/>
157 </#list>
158 </#if>
159</#list>
160
161<#assign addTagId = ''/>
162<#assign addLongTagId = 0/>
163<#if renderRequest.getOriginalHttpServletRequest().getParameter('tagId')??>
164 <#assign addTagId = renderRequest.getOriginalHttpServletRequest().getParameter('tagId')?html/>
165 <#assign addLongTagId = getterUtil.getLong(addTagId)/>
166</#if>
167<#assign indeksPoczatkowy = iloscNaStronie*(strona - 1)/>
168<#assign indeksKoncowy = indeksPoczatkowy + iloscNaStronie/>
169
170<#if rodzajData == 'wydarzenia'>
171 <#assign datowane = true/>
172
173 <#assign iloscDzisiejszych = ujCustomAssetHelper.getAssetsCount(longGroupId, typData, categoryIds, omitCategoryIds, tagIds, omitTagIds,
174 dzisiaj, null, jutro, null, .now?date)/>
175 <#assign iloscTrwajacych = ujCustomAssetHelper.getAssetsCount(longGroupId, typData, categoryIds, omitCategoryIds, tagIds, omitTagIds,
176 null, null, dzisiaj, dzisiaj, .now?date)/>
177 <#assign ilosc_Ndchodzacych = ujCustomAssetHelper.getAssetsCount(longGroupId, typData, categoryIds, omitCategoryIds, tagIds, omitTagIds,
178 jutro, null, null, null, .now?date)/>
179 <#assign iloscPozostalych = ujCustomAssetHelper.getAssetsCount(longGroupId, typData, categoryIds, omitCategoryIds, tagIds, omitTagIds,
180 null, dzisiaj, dzisiaj, null, .now?date)/>
181 <#assign iloscWszystkich = iloscDzisiejszych + iloscTrwajacych + ilosc_Ndchodzacych + iloscPozostalych/>
182 <#assign iloscStron = (iloscWszystkich/iloscNaStronie)?ceiling>
183 <#if strona gt iloscStron>
184 <#assign strona = iloscStron/>
185 </#if>
186
187 <#if indeksPoczatkowy lt iloscDzisiejszych>
188 <#assign assets = ujCustomAssetHelper.getAssets(longGroupId, typData, categoryIds, omitCategoryIds, tagIds, omitTagIds,
189 "startDate","publishDate","DESC","DESC", dzisiaj, null, jutro, null, .now?date, indeksPoczatkowy, indeksKoncowy)/>
190 <#else>
191 <#assign assets = []/>
192 </#if>
193
194 <#assign missing = iloscNaStronie - assets?size/>
195 <#if missing gt 0>
196 <#assign indeksPoczatkowy = $indeksPoczatkowy + assets?size - iloscDzisiejszych/>
197 <#if indeksPoczatkowy lt iloscTrwajacych>
198 <#assign indeksKoncowy = indeksPoczatkowy + missing/>
199 <#assign additionalAssets = ujCustomAssetHelper.getAssets(longGroupId, typData, categoryIds, omitCategoryIds, tagIds, omitTagIds,
200 "startDate","publishDate","DESC","DESC", null, null, dzisiaj, dzisiaj, .now?date, indeksPoczatkowy, indeksKoncowy)/>
201 <#else>
202 <#assign additionalAssets = []/>
203 </#if>
204 <#assign assets += [additionalAssets]/>
205 <#assign missing = iloscNaStronie - assets?size/>
206 <#if missing gt 0>
207 <#assign indeksPoczatkowy = indeksPoczatkowy + additionalAssets?size - iloscTrwajacych/>
208 <#if indeksPoczatkowy lt iloscNadchodzacych>
209 <#assign indeksKoncowy = indeksPoczatkowy + missing/>
210 <#assign additionalAssets = ujCustomAssetHelper.getAssets(longGroupId, typData, categoryIds, omitCategoryIds, tagIds, omitTagIds,
211 "startDate", "publishDate", "ASC", "DESC", jutro, null, null, null, .now?date, indeksPoczatkowy, indeksKoncowy)/>
212 <#else>
213 <#assign additionalAssets = []/>
214 </#if>
215 <#assign assets += [additionalAssets]/>
216 <#assign missing = iloscNaStronie - assets?size/>
217 <#if missing gt 0>
218 <#assign indeksPoczatkowy = indeksPoczatkowy + additionalAssets?size - iloscNadchodzacych/>
219 <#if indeksPoczatkowy lt iloscPozostalych>
220 <#assign indeksKoncowy = indeksPoczatkowy + missing/>
221 <#assign additionalAssets = ujCustomAssetHelper.getAssets(longGroupId, typData, categoryIds, omitCategoryIds, tagIds, omitTagIds,
222 "startDate","publishDate","DESC","DESC", null, dzisiaj, dzisiaj, null, .now?date, indeksPoczatkowy,indeksKoncowy)/>
223 <#else>
224 <#assign additionalAssets = []/>
225 </#if>
226 <#assign assets += [additionalAssets]/>
227 </#if>
228 </#if>
229 </#if>
230<#else>
231 <#assign datowane = false/>
232
233 <#assign iloscWszystkich = ujCustomAssetHelper.getAssetsCount(longGroupId, typData , categoryIds, omitCategoryIds, tagIds, omitTagIds,
234 null, null, null, null, .now?date)/>
235 <#assign iloscStron = (iloscWszystkich/iloscNaStronie)?ceiling>
236 <#if strona gt iloscStron>
237 <#assign strona = iloscStron/>
238 </#if>
239 <#assign indeks_poczatkowy = iloscNaStronie * (strona - 1)/>
240 <#assign indeks_koncowy = indeks_poczatkowy + iloscNaStronie/>
241
242 <#-- sortowanie wg wybranej opcji showDate -->
243 <#if !showDateData?has_content || showDateData == 'none' || showDateData == 'brak'>
244 <#assign sortowanie = "publishDate"/>
245 <#elseif showDateData?has_content && showDateData == 'displayDate'>
246 <#assign sortowanie = "publishDate"/>
247 <#elseif showDateData?has_content && showDateData == 'modifiedDate'>
248 <#assign sortowanie = "modifiedDate"/>
249 </#if>
250
251 <#assign assets = ujCustomAssetHelper.getAssets(longGroupId, typData , categoryIds, omitCategoryIds, tagIds, omitTagIds,
252 sortowanie,"title","DESC","ASC", null, null, null, null, .now?date, indeksPoczatkowy, indeksKoncowy)/>
253
254</#if>
255
256<#if titleData?has_content>
257 <h2>${titleData}</h2>
258</#if>
259
260<#if assets?size == 0>
261 ${brakData}
262</#if>
263
264<#list assets as asset>
265 <#assign articleId = ""/>
266 <#assign articleTitle = ""/>
267 <#assign articleModifiedDate = ""/>
268 <#assign articleAuthorJob = ""/>
269 <#assign articleShortContent = ""/>
270 <#assign articleSmallImageUrl = ""/>
271 <#assign articleDescription = ""/>
272 <#assign articleTags = []/>
273
274 <#assign articleFirst = ''/>
275 <#assign articleAuthorNameFirst = ''/>
276 <#assign articleAuthorName = ''/>
277
278
279 <#assign articleResource = journalArticleResourceService.getArticleResource(asset.getClassPK())/>
280 <#assign articleId = articleResource.getArticleId()/>
281 <#assign article = journalArticleService.getArticle(articleResource.getGroupId(), articleId)/>
282
283 <#assign articleFirst = journalArticleService.getArticle(articleGroupId, articleId, 1.0)/>
284 <#assign articleAuthorNameFirst = articleFirst.getUserName()/>
285 <#assign articleAuthorName = article.getUserName()/>
286
287
288 <#if article.getStatus() == 0> <#-- check if not expired and draft -->
289 <#assign articleStructureValue = ujJournalArticleHelper.getFormValues(article, portletRequest)/>
290
291 <#assign articleId = article.getArticleId()/>
292 <#assign articleTitle = articleStructureValue["tytul"]/>
293 <#if !articleTitle?has_content>
294 <#assign articleTitle = article.getTitle()/>
295 </#if>
296
297 <#assign articleSmallImageUrl = article.getSmallImageURL()/>
298
299 <#-- WYCIAGANIE MINIATURY OKŁADKI WYGENEROWANEJ PRZEZ LIFERYA -->
300 <#assign smallImageId = article.getSmallImageId()/>
301 <#assign dlFileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
302
303 <#assign uuid = getterUtil.getString(httpUtil.getParameter(articleSmallImageUrl, "uuid", false))/>
304 <#assign imageLongGroupId = getterUtil.getLong(httpUtil.getParameter(articleSmallImageUrl, "groupId", false))/>
305
306 <#assign miniaturka = dlFileEntryService.getFileEntryByUuidAndGroupId(uuid, imageLongGroupId)/>
307
308 <#-- początek ustawiania uprawnień do miniatur -->
309 <#assign resourcePermissionService = serviceLocator.findService("com.liferay.portal.kernel.service.ResourcePermissionLocalService")/>
310 <#assign userRoleService = serviceLocator.findService("com.liferay.portal.kernel.service.RoleLocalService")/> <#-- w celu odczytania id roli -->
311
312 <#assign longCompanyId = getterUtil.getLong(companyId)/>
313 <#assign rolaGuest = userRoleService.getRole(longCompanyId, "Guest").getRoleId()/>
314 <#assign nazwaKlasy = "com.liferay.document.library.kernel.model.DLFileEntry"/>
315 <#assign scope = 4/>
316
317 <#assign listaUprawnien = ['ADD_DISCUSSION','DELETE','DELETE_DISCUSSION','PERMISSIONS','UPDATE','UPDATE_DISCUSSION','VIEW']/>
318
319 <#-- najpierw trzeba wyciągnąć jakie już sa upranwienia do danego pliku -->
320 <#assign availablePermissions = resourcePermissionService.getAvailableResourcePermissionActionIds(longCompanyId, nazwaKlasy, scope, miniaturka.getPrimaryKey(), rolaGuest, listaUprawnien)/>
321
322 <#assign listaNowychUprawnien = ['VIEW']/>
323 <#assign tablicaNowychUprawnien = listaNowychUprawnien.toArray($propsUtil.getArray(""))/>
324
325 <#-- $resourcePermissionService.setResourcePermissions($longCompanyId, "$nazwaKlasy", $scope, "$miniaturka.getPrimaryKey()", $rola-guest, $tablicaNowychUprawnien) TODO ??-->
326
327 <#-- koniec ustawiania uprawnień do miniatur -->
328
329 <#if !articleSmallImageUrl?has_content>
330 <#if article.isSmallImage()>
331 <#assign articleSmallImageUrl = "/image/journal/article?img_id=${article.getSmallImageId()}&t=${imageToken.getToken(article.getSmallImageId())}"/>
332 </#if>
333 </#if>
334 <#assign articleDescription = articleStructureValue["streszczenie"]/>
335 <#if !articleDescription?has_content>
336 <#assign articleDescription = asset.getDescription()/>
337 </#if>
338
339 <#assign kawalki = stringUtil.split(articleDescription, '%expando[')/>
340 <#list kawalki as kawalek>
341 <#if kawalek?counter == 1>
342 <#assign articleDescription = kawalek/>
343 <#else>
344 <#assign j = kawalek?string?index_of(']')/>
345 <#if j gte 0>
346 <#assign sciezka = stringUtil.split(kawalek[0..j], '/')/>
347 <#assign wartosc = '[nieznana wartość]'/>
348 <#if sciezka?size == 4>
349 <#assign wartosc = expandoValueLocalService.getValue(getterUtil.getLong(companyId), sciezka[0], sciezka[1], sciezka[3], getterUtil.getLong(sciezka[2])).getData()/>
350 </#if>
351 <#assign articleDescription = articleDescription + wartosc/>
352 <#assign j += 1/>
353 <#assign articleDescription = articleDescription + kawalek[j..]/>
354 <#else>
355 <#assign articleDescription = articleDescription + "%expando[" + kawalek/>
356 </#if>
357 </#if>
358 </#list>
359
360 <#assign articleTags = tagsService.getTags(asset.getClassNameId(), asset.getClassPK())/>
361
362 <div class="box">
363 <#if rodzajData == 'nekrologi'>
364 <a href="${htmlUtil.escape("${currentRenderUrl}&groupId=${groupId}&articleId=${articleId}")}" class="box nekrolog">
365 <#assign dataSmierci = false/>
366 <#assign dataSmierci = dateUtil.parseDate("yyyyMMdd", articleStructureValue["dataSmierci"], locale)/>
367 <#if articleStructureValue["dataSmierci"]?has_content>
368 ${dateUtil.getDate(dataSmierciData, "dd.MM.yyyy", locale)} <br />
369 </#if>
370 <span class="tytul">
371 ${articleStructureValue["tytul"]}
372 ${articleStructureValue["imie"]}
373 ${articleStructureValue["nazwisko"]}
374 </span> »
375 </a>
376 <#else>
377 <#assign adresArtykulu = "${adresStrony?replace('/-/.*$', '', 'r')}/-/journal_content/${themeDisplay.getPortletDisplay().getId()}/${groupId}/${articleId}"/>
378
379 <#if articleDescription?has_content && articleSmallImageUrl?has_content>
380 <a href="${htmlUtil.escape(adresArtykulu)}" class="box box_z_obrazkiem" >
381 <img class="foto" src="${articleSmallImageUrl}" alt="miniatura ${articleTitle}"/>
382 <#else>
383 <a href="${htmlUtil.escape(adresArtykulu)}" class="box" >
384 </#if>
385
386 <#if datowane>
387 <#assign startDate = dateUtil.getDate(asset.getStartDate(), "dd.MM.yyyy", locale)/>
388 <#assign endDate = dateUtil.getDate(asset.getEndDate(), "dd.MM.yyyy", locale)/>
389
390 <#if startDate?has_content && endDate?has_content>
391 <#if startDate == endDate>
392 ${startDate}
393 <#else>
394 ${startDate} - ${endDate}
395 </#if>
396 <#elseif startDate?has_content && !endDate?has_content>
397 ${startDate}
398 <#elseif !startDate?has_content && endDate?has_content>
399 ${endDate}<br />
400 </#if>
401 </#if>
402
403 <#if articleDescription?has_content>
404 <span class="tytul">${articleTitle}</span>
405 <span class="opis">${articleDescription}<#if !articleDescription?ends_with(".")>.</#if>.. »</span>
406 <#else>
407 <span class="tytul">${articleTitle} »</span>
408 </#if>
409
410 <#list articleTags as tag>
411 <#if tag.getName() == "audio">
412 <span class="ikona_audio"> </span>
413 </#if>
414 <#if tag.getName() == "video">
415 <span class="ikona_video"> </span>
416 </#if>
417 <#if tag.getName() == "foto">
418 <span class="ikona_foto"> </span>
419 </#if>
420 </#list>
421
422 <#if !showDateData?has_content || showDateData == 'none' || showDateData == 'brak'>
423 <#elseif showDateData == 'displayDate'>
424 <span class="date">
425 <#if articleFirst.getDisplayDate() != article.getDisplayDate()>
426 ${dateUtil.getDate(articleFirst.getDisplayDate(), "dd.MM.yyyy", locale)}
427 <#else>
428 ${dateUtil.getDate($article.getDisplayDate(), "dd.MM.yyyy", locale)}
429 </#if>
430 </span>
431 <#elseif showDateData == 'modifiedDate'>
432 <span class="date">
433 ${dateUtil.getDate($article.getModifiedDate(), "dd.MM.yyyy", locale)}
434 </span>
435 </#if>
436
437 <#if !showAuthorData?has_content || showAuthorData == 'none'>
438 <#elseif showAuthorData?has_content && showAuthorData == 'firstAuthor'>
439 <span class="author">- ${articleAuthorNameFirst}</span>
440 <#elseif showAuthorData?has_content && showAuthorData == 'lastAuthor'>
441 <span class="author">- ${articleAuthorName}</span>
442 </#if>
443 </a>
444 </#if>
445 </div>
446 </#if> <#-- end checking it's not expired or draft article -->
447</#list>
448
449<#if iloscStron gt 1>
450 <#assign adres = currentRenderUrl/>
451 <ul class="paginacja">
452 <#if iloscStron lt 8>
453 <#list 1..iloscStron as s>
454 <#if s == strona>
455 <li><span>${s}</span></li>
456 <#else>
457 <li><a href="${httpUtil.addParameter(adres,'strona', s)}">${s}</a></li>
458 </#if>
459 </#list>
460 <#elseif strona lt 5>
461 <#list 1..6 as s>
462 <#if s == strona>
463 <li><span class="journal-article-page-number">${s}</span></li>
464 <#else>
465 <li><a href="${httpUtil.addParameter(adres, 'strona',s)}">${s}</a></li>
466 </#if>
467 </#list>
468 <li>...</li>
469 <li><a href="${httpUtil.addParameter(adres, 'strona', iloscStron)}">${iloscStron}</a></li>
470 <#elseif strona + 4 gt iloscStron>
471 <li><a href="${httpUtil.addParameter(adres, 'strona', 1)}">1</a></li>
472 <li>...</li>
473 <#assign x = iloscStron -5/>
474 <#list x..iloscStron as s>
475 <#if s == strona>
476 <li><span>${s}</span></li>
477 <#else>
478 <li><a href="${httpUtil.addParameter(adres, 'strona', s)}">${s}</a></li>
479 </#if>
480 </#list>
481 <#else>
482 <li><a href="${httpUtil.addParameter(adres, 'strona', 1)}">1</a></li>
483 <li>...</li>
484 <#assign x = strona - 2/>
485 <#assign y = strona + 2/>
486 <#list x..y as s>
487 <#if s == strona>
488 <li><span>${s}</span></li>
489 <#else>
490 <li><a href="${httpUtil.addParameter(adres, 'strona', s)}">${s}</a></li>
491 </#if>
492 </#list>
493 <li>...</li>
494 <li><a href="${httpUtil.addParameter(adres,'strona', iloscStron)}">${iloscStron}</a></li>
495 </#if>
496 </ul>
497 <ul class="paginacja" style="float:right;">
498 <#if strona gt 1>
499 <#assign poprzednia = strona - 1/>
500 <li><a href="${httpUtil.addParameter(adres, 'strona', poprzednia)}" class="previous">«${languageUtil.get(locale, "previous")}</a></li>
501 </#if>
502 <#if strona lt iloscStron>
503 <#assign nastepna = strona + 1/>
504 <li><a href="${httpUtil.addParameter(adres, 'strona', nastepna)}" class="next">${languageUtil.get(locale, "next")}»</a></li>
505 </#if>
506 </ul>
507</#if>