Wiadomości - Sekcja ds. Portalu Uniwersyteckiego
Wystąpił błąd podczas przetwarzania szablonu.
The following has evaluated to null or missing:
==> grafikaLewaField.altGrafikaLewa [in template "20096#20121#02-KOMUNIKAT" at line 257, column 35]
----
Tip: It's the step after the last dot that caused this error, not those before it.
----
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 altGrafikaLewa = grafikaLewaF... [in template "20096#20121#02-KOMUNIKAT" at line 257, column 9]
----
1<#assign plid = "#portlet_" + themeDisplay.getPortletDisplay().getId()/>
2
3<style type="text/css">
4 ${plid} .tresc h2{
5 margin: 0px 0px 18px 0px;
6 padding: 0px 0px 0px 0px;
7 width: 100%;
8 border-bottom: 4px #00519e solid;
9 font-weight: bold;
10 font-size: 16px;
11 color: #00519e;}
12
13 ${plid} .tresc h3{
14 clear:both;
15
16 margin: 0px 0px 10px 0px;
17 padding: 0px 0px 0px 0px;
18 width: 100%;
19 border-bottom: 1px #cccccc dotted;
20 font-weight: bold;
21 font-size: 13px;
22 color: #00519e;}
23
24 ${plid} .tresc ul.niebieska-lista li {
25 text-align: left;
26 list-style-type: square;
27 color: #00519e;
28 margin-bottom: 3px;}
29
30 ${plid} .tresc ul.niebieska-lista li span {
31 color: #666666;}
32
33 ${plid} .tresc ol.lista-liczby li {
34 list-style: decimal inside !important;
35 background: none;
36 padding: 0px 0px 0px 0px;}
37
38 ${plid} .tresc a:link {
39 text-decoration: underline;
40 color: #666666;}
41
42 ${plid} .tresc a:visited {
43 text-decoration: underline;
44 color: #666666;}
45
46 ${plid} .tresc a:hover {
47 text-decoration: underline;
48 color: #6699CC;}
49
50 ${plid} .tresc a:active {
51 text-decoration: underline;
52 color: #00519e;}
53
54 ${plid} .tresc ul.niebieska-lista li span a:link {
55 text-decoration: underline;
56 color: #666666;}
57
58 ${plid} .tresc ul.niebieska-lista li span a:visited {
59 text-decoration: underline;
60 color: #666666;}
61
62 ${plid} .tresc ul.niebieska-lista li span a:hover,
63 ${plid} .tresc ul.niebieska-lista li span a:active {
64 text-decoration: underline;
65 color: #00519e;}
66
67 ${plid} .tresc ul.prosta-lista li {
68 list-style-type: none; margin-bottom: 5px;}
69
70 ${plid} .tresc p {
71 text-align: left;}
72
73 ${plid} .tresc .alert {
74 background-color:#FFBFBF;
75 border:1px solid red;
76 font-weight:bold;margin:5px;
77 padding:5px;}
78
79 ${plid} .tresc a:link.prosty {
80 text-decoration: none;
81 color: #00519e;}
82
83 ${plid} .tresc a:visited.prosty {
84 text-decoration: none;
85 color: #00519e;}
86
87 ${plid} .tresc a:hover.prosty,
88 ${plid} .tresc a:active.prosty {
89 text-decoration: underline;
90 color: #00519e;}
91
92 ${plid} .tresc a:link.czarny,
93 ${plid} .tresc a:visited.czarny,
94 ${plid} .tresc a:hover.czarny,
95 ${plid} .tresc a:active.czarny {
96 text-decoration: underline;
97 color: black;}
98
99 ${plid} .tresc .ramka_img {
100 border: 1px solid #cccccc;
101 padding: 4px;}
102
103 ${plid} .tresc .kreska {
104 border-top: 1px #cccccc dotted;
105 height: 5px;}
106
107 ${plid} .tresc ul.lista-pdf li {
108 list-style-type: none;
109 margin-bottom: 5px;
110 background-image: url('/image/image_gallery?uuid=a45b2adf-141b-427d-a724-9589f0c781c9&groupId=@group_id@&t=1251798591489');
111 background-repeat: no-repeat;
112 padding: 3px 0px 2px 19px;}
113
114 ${plid} .tresc .prosta-tab {
115 border-width: 1px 0px 0px 1px;
116 border-style: solid;
117 border-color: #cccccc;}
118
119 ${plid} .tresc .prosta-tab td,
120 ${plid} .tresc .prosta-tab th {
121 padding: 3px;
122 border-width: 0px 1px 1px 0px;
123 border-style: solid;
124 border-color: #cccccc;}
125
126 ${plid} .tresc .tab-wiersz {
127 width:100%;
128 background-color:#e5e5e5;
129 border:0px;
130 font-weight:bold;
131 padding:5px 0px 5px 0px;}
132
133 ${plid} .tresc .tab-zadanie {
134 padding-left:3px;
135 width:20%;}
136 ${plid} .tresc .tab-left {
137 width:20%;
138 background-color:#e5e5e5;
139 padding-top:5px;
140 padding-bottom:5px;
141 padding-left:3px;}
142 ${plid} .tresc .tab-down {
143 background-color:#e5e5e5;
144 padding-left:3px;}
145
146 ${plid} .tresc .tab-kolumna {
147 width:80%;
148 padding:5px 0px 5px 3px;}
149
150 ${plid} .tresc table {
151 margin-bottom: 15px;
152 width: 100%;}
153
154 ${plid} .tresc .tab-odp {
155 width:20%;
156 padding-left:3px;}
157 ${plid} .tresc .tab-row {
158 padding:2px 0px 2px 3px;
159 border-bottom:1px solid #cccccc;}
160
161 ${plid} .tresc dl.sklad {
162 margin: 0px;
163 padding: 0px;}
164
165 ${plid} .tresc dl.sklad dt{
166 font-weight: bold;
167 margin: 0px;}
168
169 ${plid} .tresc dl.sklad dd{
170 margin: 0px 0px 9px 0px;}
171
172 ${plid} .tresc .tab-data {
173 padding:2px 0px 2px 3px;
174 border-bottom:1px solid #cccccc;}
175
176 ${plid} .tresc .tab-postep {
177 padding: 2px 0px 2px 3px;
178 border-bottom:1px solid #cccccc;}
179
180 ${plid} .tresc a:link.wiecej {
181 text-decoration: none;
182 color: #00519e;}
183
184 ${plid} .tresc a:visited.wiecej {
185 text-decoration: none;
186 color: #00519e;}
187
188 ${plid} .tresc a:hover.wiecej,
189 ${plid} .tresc a:active.wiecej {
190 text-decoration: none;
191 color: #2377cd;}
192
193 ${plid} .tresc .grafika-lewa{
194 border: 1px #cccccc solid;
195 padding: 4px;
196 margin: 0px 10px 10px 0px;
197 float: left;
198 max-width:40%;
199 }
200
201 ${plid} .tresc .grafika-prawa{
202 border: 1px #cccccc solid;
203 padding: 4px;
204 margin: 0px 0px 10px 10px;
205 float: right;
206 max-width:40%;
207 }
208
209
210 ${plid} .tresc .tresc{
211 margin-bottom: 20px;
212 }
213 ${plid} .tresc .publikacja{
214 clear: both;
215
216 font-size: 9px;
217 color: #ababab;
218 float: left;
219 width: auto;
220 margin-bottom: 20px;
221 }
222
223 ${plid} .tresc .plik-link{
224 margin-top: 7px;
225 }
226
227</style>
228
229<article class="tresc" tabindex="-1">
230
231 <#assign
232 titleData = ""
233 naglowkiData = FieldsetNaglowek.getSiblings()
234 />
235
236 <#if (tytul.getData())??>
237 <#assign titleData = tytul.getData()/>
238 </#if>
239
240 <#if titleData?has_content>
241 <h2>${titleData}</h2>
242 </#if>
243
244 <#list naglowkiData as naglowek>
245 <#assign naglowekTytul = "" />
246 <#assign articleTresc = "" />
247 <#assign grafikaLewa = "" />
248 <#assign altGrafikaLewa = "" />
249 <#assign grafikaPrawa = "" />
250 <#assign altGrafikaPrawa = "" />
251
252 <#assign naglowekTytul = naglowek.naglowek.getData()/>
253 <#assign articleTresc = naglowek.tresc.getData()/>
254
255 <#assign grafikaLewaField = naglowek.FieldsetLewaGrafika/>
256 <#assign grafikaLewa = grafikaLewaField.grafikaLewa.getData()/>
257 <#assign altGrafikaLewa = grafikaLewaField.altGrafikaLewa.getData()/>
258
259 <#assign grafikaPrawaField = naglowek.FieldsetPrawaGrafika/>
260 <#assign grafikaPrawa = grafikaPrawaField.grafikaPrawa.getData()/>
261 <#assign altGrafikaPrawa = grafikaPrawaField.altGrafikaPrawa.getData()/>
262
263 <#assign pliki = naglowek.FieldsetPlik.getSiblings()/>
264
265 <#if naglowekTytul?has_content>
266 <h3>${naglowekTytul}</h3>
267 </#if>
268
269 <#if grafikaLewa?has_content>
270 <img class="grafika-lewa"
271 src="${grafikaLewa}"
272 alt="${altGrafikaLewa}"
273 />
274 </#if>
275
276 <#if grafikaPrawa?has_content>
277 <img class="grafika-prawa"
278 src="${grafikaPrawa}"
279 alt="${altGrafikaPrawa}"
280 />
281 </#if>
282
283 <#if articleTresc?has_content>
284 <div>
285 ${articleTresc}
286 </div>
287
288 <div style="margin-bottom: 10px;">
289 <#list pliki as plik>
290
291 <#assign plikTytul = "" />
292 <#assign plikLink = "" />
293 <#assign plikRodzaj = "" />
294
295 <#assign plikTytul = plik.plikTytul.getData() />
296 <#assign plikLink = plik.plikLink.getData() />
297 <#assign plikRodzaj = plik.plikRodzaj.getData() />
298
299
300 <#if plikTytul?has_content>
301 <div class="plik-link" >
302 <a href="${plikLink}" class="${plikRodzaj}">
303 ${plikTytul}
304 </a>
305 </div>
306 </#if>
307
308 </#list> <#-- end of foreach -->
309 </div>
310 </#if>
311 </#list> <#-- end of foreach naglowek.getSiblings() -->
312
313 <#assign journalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")/>
314 <#assign groupService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")/>
315
316 <#assign longGroupId = getterUtil.getLong(groupId)/>
317 <#assign grupaPublikacji = groupService.getGroup(longGroupId).getDescriptiveName()/>
318
319 <#assign articleModified = journalArticleService.getArticle(longGroupId, .vars["reserved-article-id"].data)/>
320 <#assign dateArticleModified = dateUtil.getDate(articleModified.getDisplayDate(), "dd.MM.yyyy", locale, timeZoneUtil.getDefault())/>
321 <#assign authorArticleModified = articleModified.getUserName()/>
322
323 <#assign langPublishedDate = htmlUtil.escape(languageUtil.get(locale ,"published-date"))/>
324 <#assign langPublisher = htmlUtil.escape(languageUtil.get(locale, "uj-main-theme.publisher"))/>
325
326 <div class="publikacja">
327 <#if dateArticleModified?? && dateArticleModified?length == 10>
328 <span> ${langPublishedDate}: </span>
329 <strong>${dateArticleModified}</strong>
330 </#if>
331 <#if authorArticleModified?? && authorArticleModified?length gt 3>
332 <br>
333 <span>${langPublisher}: </span>
334 <strong>${authorArticleModified}</strong>
335 </#if>
336
337 <#-- jesli komunikat wyświetlany w jednostce w której powstał - nazwa jednostki ma się nie wyswietlać -->
338 <#assign groupIdLayout = getterUtil.getLong(themeDisplay.getScopeGroupId())/>
339 <#if groupIdLayout != longGroupId>
340 <br />${grupaPublikacji}
341 </#if>
342 </div>
343</article>