Asset Publisher
11 czerwca w Jasielu upamiętniono kurierów karpackich ZWZ i AK, oraz funkcjonariuszy MO i żołnierzy WOP poległych i zamordowanych podczas walk z oddziałami UPA.
Ośrodek Edukacji Ekologicznej "Hrendówka" po raz kolejny gościł dzieci z okolicznych szkół na Leśnym Dniu Dziecka.
12 czerwca 2012 roku odbył się finał jubileuszowego, XX TURNIEJU WIEDZY EKOLOGICZNEJ. Konkurs ten jak co roku zorganizował GMINNY OŚRODEK KULTURY W RYMANOWIE przy współudziale UG w Rymanowie, Koła...
20 kwietnia Nadleśnictwo Rymanów, wspólnie z Zespołem Karpackich Parków Krajobrazowych, zorganizowało obchody Dnia Ziemi, na które zaproszono przedstawicieli okolicznych szkół.
Wreszcie wiosna! Na szkółce leśnej rozpoczęto wyjmowanie sadzonek, które posłużą do tegorocznych odnowień.
Tegoroczna zima nie rozpieszcza zwierzyny leśnej. Wysoka pokrywa śnieżna, sięgająca miejscami 80 cm oraz silne mrozy (do -30oC) sprawiają, że zdobycie pokarmu jest niezwykle trudne.
Asset Publisher
Fehler bei der Verarbeitung der Vorlage.
Error on line 81, column 17 in 10097#20183917#ARTICLE dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId) is undefined. It cannot be assigned to image
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") />
2<#assign dlFileEntryLocalService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService") />
3<#assign imageLocalService = serviceLocator.findService("com.liferay.portal.service.ImageLocalService") />
4
5<#assign journalArticleId = .vars["reserved-article-id"].data?replace('.', '-') />
6<#assign journalArticle = journalArticleLocalService.getArticle(getterUtil.getLong(groupId), journalArticleId) />
7<#assign journalArticleCreateDate = journalArticle.getCreateDate() />
8<#assign journalArticleModifiedDate = journalArticle.getModifiedDate() />
9<#assign journalArticleAuthor = .vars["reserved-article-author-name"].data />
10<#if coauthors?? && coauthors.data?has_content>
11 <#assign journalArticleAuthor = coauthors.data />
12</#if>
13<#if title?? && title.data?has_content>
14 <#assign journalArticleTitle = title.data />
15<#else>
16 <#assign journalArticleTitle = .vars["reserved-article-title"].data />
17</#if>
18<#assign journalArticleUrlTitle = journalArticle.getUrlTitle() />
19
20<#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext() />
21<#assign themeDisplay = serviceContext.getThemeDisplay() />
22<#assign portletId = themeDisplay.getPortletDisplay().getId() />
23
24<div id="article-${journalArticleId}" class="nfh-cp-article">
25
26 <h1 class="title">${journalArticleTitle}</h1>
27
28 <#if showcreatedate?? && showcreatedate.data == "true">
29 <#assign journalArticleModifiedDate = journalArticle.getCreateDate() />
30 </#if>
31 <div class="metadata">${journalArticleModifiedDate?string["dd.MM.yyyy"]} | ${journalArticleAuthor}</div>
32
33 <#-- MEDIA SPOŁECZNOŚCIOWE -->
34 <#assign printGroupId = "" />
35 <#if journalArticle.groupId != themeDisplay.scopeGroupId>
36 <#assign printGroupId = themeDisplay.scopeGroupId />
37 </#if>
38 <div class="social-media">
39 <div class="addthis_toolbox addthis_default_style">
40 <a class="addthis_button_facebook_like" fb:like:layout="button_count"></a>
41 <a class="addthis_button_google_plusone" g:plusone:size="medium"></a>
42 <a class="addthis_button_tweet"></a>
43 <input type="image" alt="${languageUtil.get(locale, "print")}" src="${themeDisplay.pathThemeImages}/nfh-cp/icon-print-20x17.png" onclick="Nfhcp.AssetPublisherPortlet.printFullContent('${portletId}', '${journalArticleId}', '${printGroupId}', '${journalArticleUrlTitle}');" class="print"/>
44 <script type="text/javascript">var addthis_config = {"data_track_addressbar":true};</script>
45 <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-55c31ccb1e1d814d"></script>
46 </div>
47 </div>
48
49 <#-- ZDJĘCIA DO GALERII -->
50 <#assign galleryImages = [] />
51 <#assign mainGalleryUuid = "" />
52 <#assign imageDesc = ""/>
53
54 <#-- Zdjęcie główne z galerii -->
55 <#if mainphotogallery?? && mainphotogallery.data?has_content>
56 <#assign url = mainphotogallery.data />
57 <#if url?starts_with("/image/image_gallery")>
58 <#assign uuid = httpUtil.getParameter(url, "uuid", false)?string />
59 <#assign groupId = getterUtil.getLong(httpUtil.getParameter(url, "groupId", false), 0) />
60 <#if dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId) ?? >
61 <#assign image = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId) />
62
63 <#if image??>
64 <#assign mainGalleryUuid = uuid />
65 <#assign imageDesc = htmlUtil.escapeAttribute(image.description) />
66 </#if>
67
68 <#assign galleryImage = {"url" : mainphotogallery.data, "thumbUrl" : mainphotogallery.data + "&width=250", "desc" : imageDesc, "uuid" : mainGalleryUuid} />
69 <#assign galleryImages = galleryImages + [galleryImage] />
70 </#if>
71 <#elseif url?contains("/documents/")>
72 <#assign urlParts = stringUtil.split(url, "?") />
73 <#assign urlParts = stringUtil.split(urlParts[0]?string, "/") />
74 <#assign groupId = getterUtil.getLong(urlParts[2]) />
75 <#assign folderId = getterUtil.getLong(urlParts[3]) />
76 <#assign title = httpUtil.decodeURL(urlParts[4]?string, true) />
77
78 <#if urlParts?size gt 5>
79 <#assign uuid = urlParts[5]?string />
80 <#assign mainGalleryUuid = uuid />
81 <#assign image = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId) />
82 <#else>
83 <#assign image = dlFileEntryLocalService.getFileEntry(groupId, folderId, title) />
84 <#assign mainGalleryUuid = image.uuid />
85 </#if>
86
87
88 <#assign galleryImage = {"url" : mainphotogallery.data, "thumbUrl" : mainphotogallery.data, "desc" : htmlUtil.escapeAttribute(image.description), "uuid" : mainGalleryUuid} />
89 <#assign galleryImages = galleryImages + [galleryImage] />
90 </#if>
91 <#-- Zdjęcie główne -->
92 <#elseif mainphoto?? && mainphoto.data?has_content>
93 <#assign galleryImage = {"url" : mainphoto.data, "thumbUrl" : mainphoto.data, "desc" : htmlUtil.escapeAttribute(mainphoto.maindesc.data), "uuid" : "----"} />
94 <#assign galleryImages = galleryImages + [galleryImage] />
95 </#if>
96
97 <#-- Zdjęcia dodatkowe z dysku -->
98 <#if additionalphoto?? >
99 <#list additionalphoto.getSiblings() as additionalphotoItem>
100 <#if additionalphotoItem.data?has_content>
101 <#assign galleryImage = {"url" : additionalphotoItem.data, "thumbUrl" : additionalphotoItem.data, "desc" : htmlUtil.escapeAttribute(additionalphotoItem.photodescription.data), "uuid" : "----"} />
102 <#assign galleryImages = galleryImages + [galleryImage] />
103 </#if>
104 </#list>
105 </#if>
106
107 <#-- Zdjęcia z galerii -->
108 <#if additionalphotogallery?? && additionalphotogallery.data?has_content>
109 <#assign url = additionalphotogallery.data />
110 <#if url?starts_with("/image/image_gallery")>
111 <#assign uuid = httpUtil.getParameter(url, "uuid", false)?string />
112 <#assign groupId = getterUtil.getLong(httpUtil.getParameter(url, "groupId", false), 0) />
113
114 <#if dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId)?? >
115 <#assign image = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId) />
116 </#if>
117 <#elseif url?contains("/documents/")>
118 <#assign urlParts = stringUtil.split(url, "/") />
119 <#assign groupId = getterUtil.getLong(urlParts[2]) />
120 <#assign folderId = getterUtil.getLong(urlParts[3]) />
121 <#assign title = httpUtil.decodeURL(urlParts[4]?string, true) />
122
123 <#if dlFileEntryLocalService.getFileEntry(groupId, folderId, title)?? >
124 <#assign image = dlFileEntryLocalService.getFileEntry(groupId, folderId, title) />
125 </#if>
126 </#if>
127
128 <#if image??>
129 <#assign folderId = image.folderId />
130 <#assign folderImages = dlFileEntryLocalService.getFileEntries(groupId, folderId) />
131 <#if folderImages??>
132 <#list folderImages?sort_by("name") as folderImage>
133 <#if folderImage.uuid != mainGalleryUuid>
134 <#assign folderImageDescription = folderImage.description />
135 <#if folderImage.description?lower_case == folderImage.title?lower_case + folderImage.extension?lower_case>
136 <#assign folderImageDescription = "" />
137 </#if>
138
139 <#assign galleryImage = {"url" : "/image/image_gallery?uuid=" + folderImage.uuid + "&groupId=" + folderImage.groupId,
140 "thumbUrl" : "/image/image_gallery?uuid=" + folderImage.uuid + "&groupId=" + folderImage.groupId,
141 "desc" : htmlUtil.escapeAttribute(folderImageDescription),
142 "uuid" : folderImage.uuid} />
143 <#assign galleryImages = galleryImages + [galleryImage] />
144 </#if>
145 </#list>
146 </#if>
147 </#if>
148 </#if>
149
150 <#-- GALERIA OBRAZÓW -->
151 <#if galleryImages?size gt 1>
152 <div id="gallery-${journalArticleId}" class="multiple-image-gallery royalSlider rsDefault">
153 <#list galleryImages as galleryImage>
154 <a href="${galleryImage.url}&width=560" class="rsImg" data-rsbigimg="${galleryImage.url}">
155 <img src="${galleryImage.thumbUrl}&width=250" uuid="${galleryImage.uuid}" class="rsTmb" />
156 ${galleryImage.desc}
157 </a>
158 </#list>
159 </div>
160 <#elseif galleryImages?size == 1>
161 <div class="single-image-gallery">
162 <div id="gallery-${journalArticleId}">
163 <#list galleryImages as galleryImage>
164 <a href="${galleryImage.url}" rel="lightbox" title="${htmlUtil.escape(galleryImage.desc)}">
165 <img src="${galleryImage.url}&width=716" alt="${htmlUtil.escape(galleryImage.desc)}" />
166 <#if galleryImage.desc?has_content>
167 <div class="mainphotogallery-description">${galleryImage.desc}</div>
168 </#if>
169 </a>
170 </#list>
171 </div>
172 </div>
173 </#if>
174
175 <#-- ZAWARTOŚĆ ARTYKUŁU -->
176 <#if abstract?? && abstract.data?has_content>
177 <p class="description">${abstract.data}</p>
178 <#else>
179 <p class="description">${.vars["reserved-article-description"].data}</p>
180 </#if>
181
182 <div class="content">${content.data}</div>
183
184 <#-- ZAŁĄCZNIKI -->
185 <#assign hasAttachments = false />
186 <#if file?? && file.getSiblings()?size gt 0>
187 <#list file.getSiblings() as fileItem>
188 <#if fileItem.filedescription?? && fileItem.filedescription.data?has_content>
189 <#assign fileItemName = fileItem.filedescription.data />
190 <#elseif fileItem.filetitle?? && fileItem.filetitle.data?has_content>
191 <#assign fileItemName = fileItem.filetitle.data />
192 <#else>
193 <#assign fileItemName = fileItem.data />
194 </#if>
195 <#if fileItemName?? && fileItemName?has_content>
196 <#assign hasAttachments = true />
197 </#if>
198 </#list>
199 </#if>
200 <#if hasAttachments>
201 <div class="attachments">
202 <h2>${languageUtil.get(locale, "resources-to-get")}</h2>
203 <ul class="attachment-list">
204 <#list file.getSiblings() as fileItem>
205 <#if fileItem.filedescription?? && fileItem.filedescription.data?has_content>
206 <#assign fileItemName = fileItem.filedescription.data />
207 <#elseif fileItem.filetitle?? && fileItem.filetitle.data?has_content>
208 <#assign fileItemName = fileItem.filetitle.data />
209 <#else>
210 <#assign fileItemName = fileItem.data />
211 </#if>
212
213 <#if fileItemName?? && fileItemName?has_content>
214 <#assign url = fileItem.data />
215 <#if url?contains("/documents/")>
216 <#assign urlParts = stringUtil.split(url, "?") />
217 <#assign urlParts = stringUtil.split(urlParts[0]?string, "/") />
218 <#assign groupId = getterUtil.getLong(urlParts[2]) />
219 <#assign folderId = getterUtil.getLong(urlParts[3]) />
220 <#assign title = httpUtil.decodeURL(urlParts[4]?string, true) />
221 <#if urlParts?size gt 5>
222 <#assign uuid = urlParts[5]?string />
223 <#if dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId)?? >
224 <#assign file = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(uuid, groupId) />
225 </#if>
226 <#else>
227 <#if dlFileEntryLocalService.getFileEntry(groupId, folderId, title)?? >
228 <#assign file = dlFileEntryLocalService.getFileEntry(groupId, folderId, title) />
229 </#if>
230 </#if>
231 <#if file?? && file.icon??>
232 <#assign fileIcon = file.icon + ".png" />
233 </#if>
234 </#if>
235 <#if !fileIcon?? || !fileIcon?has_content>
236 <#assign fileItemExt = fileItem.data />
237 <#assign indexOfDot = fileItemExt?last_index_of(".") + 1 />
238 <#assign indexOfSlash = fileItemExt?last_index_of("/") />
239 <#if indexOfSlash gt indexOfDot>
240 <#assign fileItemExt = fileItemExt?substring(0, indexOfSlash) />
241 </#if>
242 <#assign fileIcon = fileItemExt?substring(indexOfDot) + ".png" />
243 </#if>
244 <#if fileItem.wcagdescription?? && fileItem.wcagdescription.data?has_content>
245 <#assign fileItemWCAGDesc = fileItem.wcagdescription.data />
246 <#else>
247 <#assign fileItemWCAGDesc = "" />
248 </#if>
249 <#assign fExtension = "" />
250 <#assign sizeFormatted = "" />
251 <#if file?? >
252 <#if file.extension?? >
253 <#assign fExtension = file.extension />
254 </#if>
255 <#if file.size?? && file.size?is_number >
256 <#assign
257 textFormatter = staticUtil["com.liferay.portal.kernel.util.TextFormatter"]
258 sizeFormatted = textFormatter.formatStorageSize(file.size, locale)
259 />
260 </#if>
261 </#if>
262
263 <li>
264 <a href="${fileItem.data}" target="_blank" <#if fileItemWCAGDesc?? && fileItemWCAGDesc?has_content>title="${htmlUtil.escapeAttribute(fileItemWCAGDesc)}"</#if>><img src="${themeDisplay.pathThemeImages}/file_system/small/${fileIcon}"></a>
265 <a href="${fileItem.data}" target="_blank" <#if fileItemWCAGDesc?? && fileItemWCAGDesc?has_content>title="${htmlUtil.escapeAttribute(fileItemWCAGDesc)}"</#if>>${fileItemName} (${stringUtil.upperCase(fExtension)}, ${sizeFormatted})</a>
266 </li>
267 </#if>
268 </#list>
269 </ul>
270 </div>
271 </#if>
272</div>