Noticias
Se ha producido un error al procesar la plantilla.
Error on line 48, column 25 in 10154#10194#305732
journalTool.getJournalArticleByAssetEntry(entry) is undefined.
It cannot be assigned to journalArticle
1<#assign journalTool = utilLocator.findUtil("lportal-6.2-GA3-hook", "as.asac.velocity.tools.JournalTool")/> 
2<#assign dlTool= utilLocator.findUtil("lportal-6.2-GA3-hook", "as.asac.velocity.tools.DLTool")/> 
3<#assign assetPublisherTool = utilLocator.findUtil("lportal-6.2-GA3-hook", "as.asac.velocity.tools.AssetPublisherTool")/> 
4 
5<#assign liferay_ui = taglibLiferayHash["/WEB-INF/tld/liferay-ui.tld"] /> 
6<#assign portletURL = assetPublisherTool.getAssetPublisherPortletURL(renderResponse, themeDisplay, portletSetupLinkToLayoutUuid) /> 
7 
8<#assign rowIndex = 0 /> 
9<#assign cols = 2 /> 
10<#assign size = entries?size /> 
11<#assign count = 0> 
12 
13<div class="template-assets container-fluid"> 
14 
15<#list entries as entry> 
16	<#assign entry = entry /> 
17 
18	<#assign assetRenderer = entry.getAssetRenderer() /> 
19 
20	<#assign entryTitle = entry.getTitle(locale) /> 
21	<#if entry.getClassName() = "com.liferay.portlet.journal.model.JournalArticle"> 
22		<#assign entryTitle = journalTool.getJournalArticleTitleFromAsset(entry, ["Titulo","Nombre"], locale) /> 
23	</#if> 
24 
25	<#assign viewURL = assetPublisherTool.getAssetViewURL(renderRequest, renderResponse, entry, portletURL) /> 
26 
27	<#if assetLinkBehavior != "showFullContent"> 
28		<#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
29	</#if> 
30	 
31	<#assign mod = rowIndex % cols /> 
32	 
33	<#if rowIndex = 0 > 
34		<div class="row-fluid"> 
35	</#if> 
36 
37	<div class="template box span6"> 
38	    <span class="overlay"><!--overlay--></span> 
39		<div class="lfr-meta-actions asset-actions"> 
40			<@getPrintIcon /> 
41 
42			<@getFlagsIcon /> 
43 
44			<@getEditIcon /> 
45		</div> 
46		 
47		<#if entry.getClassName() = "com.liferay.portlet.journal.model.JournalArticle"> 
48			<#assign journalArticle = journalTool.getJournalArticleByAssetEntry(entry) /> 
49			<#if validator.isNotNull(journalArticle.getSmallImageURL())> 
50				<#assign imagePath = dlTool.getThumbnail(journalArticle.getSmallImageURL(), 2)> 
51				<#assign imageBg = htmlUtil.escape(imagePath)>				 
52				<span class="image-wrapper image-wrapper-cover" style="background-image: url(${htmlUtil.escape(imagePath)});">				   
53					<img class="image" src="${htmlUtil.escape(imagePath)}" alt="<@liferay.language key="image" /> ${htmlUtil.escape(entryTitle)}"/> 
54				</span> 
55			<#else> 
56				<#assign imagePath = themeDisplay.getCompanyLogo()> 
57				<span class="image-wrapper image-wrapper-initial" style="background-image: url(${htmlUtil.escape(imagePath)});">				   
58					<img class="image" src="${htmlUtil.escape(imagePath)}" alt="<@liferay.language key="image" /> ${htmlUtil.escape(entryTitle)}"/> 
59				</span> 
60			</#if> 
61		<#elseif entry.getClassName() = "com.liferay.calendar.model.CalendarBooking"> 
62			 
63			<#if validator.isNotNull(assetRenderer.getThumbnailPath(renderRequest))> 
64				<#assign imagePath = assetRenderer.getThumbnailPath(renderRequest)> 
65				<#assign imageBg = htmlUtil.escape(imagePath)>				 
66				<span class="image-wrapper image-wrapper-cover" style="background-image: url(${htmlUtil.escape(imagePath)});">				   
67					<img class="image" src="${htmlUtil.escape(imagePath)}" alt="<@liferay.language key="image" /> ${htmlUtil.escape(entryTitle)}"/> 
68				</span> 
69			<#else> 
70				<#assign imagePath = themeDisplay.getCompanyLogo()> 
71				<span class="image-wrapper image-wrapper-initial" style="background-image: url(${htmlUtil.escape(imagePath)});">				   
72					<img class="image" src="${htmlUtil.escape(imagePath)}" alt="<@liferay.language key="image" /> ${htmlUtil.escape(entryTitle)}"/> 
73				</span> 
74			</#if> 
75		<#else> 
76			<#assign imagePath = themeDisplay.getCompanyLogo()> 
77			<span class="image-wrapper image-wrapper-initial" style="background-image: url(${htmlUtil.escape(imagePath)});">				   
78				<img class="image" src="${htmlUtil.escape(imagePath)}" alt="<@liferay.language key="image" /> ${htmlUtil.escape(entryTitle)}"/> 
79			</span> 
80		</#if> 
81		 
82		<div class="box-content"> 
83 
84 
85			<@getMetadataField fieldName="create-date" /> 
86			 
87			<@getMetadataField fieldName="expiration-date" /> 
88			 
89			<@getMetadataField fieldName="modified-date" /> 
90			 
91			<@getMetadataField fieldName="publish-date" /> 
92			 
93			<a class="title" href="${viewURL}">${entryTitle}</a> 
94			 
95			<#if enableSocialBookmarks == "true"> 
96				<a id="share-link-image-${entry.getEntryId()}" class="share-link-image"><@liferay.language key="share" /></a>  
97				<script type="text/javascript"> 
98					AUI().ready( 
99						'aui-node', 
100						function(A) { 
101							if (typeof stWidget != 'undefined') 
102								stWidget.addEntry({ 
103										"onhover":false, 
104										 "service":"sharethis", 
105										 "element":document.getElementById('share-link-image-${entry.getEntryId()}'), 
106										 "url":"${htmlUtil.escape(viewURL)}", 
107										 "title":"${htmlUtil.escape(entryTitle)}", 
108										 "type":"custom", 
109										 "image":"${htmlUtil.escapeURL(imagePath)}" 
110								 }); 
111							  
112					 }); 
113				</script> 
114			</#if> 
115			 
116			<@getMetadataField fieldName="priority" /> 
117			 
118			<@getMetadataField fieldName="tags" /> 
119			 
120			<@getMetadataField fieldName="categories" /> 
121 
122			<@getMetadataField fieldName="view-count" /> 
123			 
124			<@getMetadataField fieldName="author" /> 
125 
126			<div class="text"> 
127				 
128				${htmlUtil.extractText(assetRenderer.getSummary(locale))} 
129				 
130			</div> 
131 
132			<@getRatings /> 
133 
134			<@getRelatedAssets /> 
135 
136			<@getDiscussion /> 
137			 
138		</div> 
139	</div> 
140	 
141	<#assign count = count + 1> 
142	 
143	<#if rowIndex = 1 || count = size > 
144		<#assign rowIndex = 0 > 
145		</div> 
146	<#else> 
147		<#assign rowIndex = rowIndex + 1> 
148	</#if> 
149 
150</#list> 
151</div> 
152 
153<#macro getDiscussion> 
154	<#if validator.isNotNull(assetRenderer.getDiscussionPath()) && (enableComments == "true")> 
155		<br /> 
156 
157		<#assign discussionURL = renderResponse.createActionURL() /> 
158 
159		${discussionURL.setParameter("struts_action", "/asset_publisher/" + assetRenderer.getDiscussionPath())} 
160 
161		<@liferay_ui["discussion"] 
162			className=entry.getClassName() 
163			classPK=entry.getClassPK() 
164			formAction=discussionURL?string 
165			formName="fm" + entry.getClassPK() 
166			ratingsEnabled=enableCommentRatings == "true" 
167			redirect=portalUtil.getCurrentURL(request) 
168			userId=assetRenderer.getUserId() 
169		/> 
170	</#if> 
171</#macro> 
172 
173<#macro getEditIcon> 
174	<#if assetRenderer.hasEditPermission(themeDisplay.getPermissionChecker())> 
175		<#assign redirectURL = renderResponse.createRenderURL() /> 
176 
177		${redirectURL.setParameter("struts_action", "/asset_publisher/add_asset_redirect")} 
178		${redirectURL.setWindowState("pop_up")} 
179 
180		<#assign editPortletURL = assetRenderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("pop_up"), redirectURL)!"" /> 
181 
182		<#if validator.isNotNull(editPortletURL)> 
183			<#assign title = languageUtil.format(locale, "edit-x", entryTitle) /> 
184 
185			<@liferay_ui["icon"] 
186				image="edit" 
187				message=title 
188				url="javascript:Liferay.Util.openWindow({dialog: {width: 960}, id:'" + renderResponse.getNamespace() + "editAsset', title: '" + title + "', uri:'" + htmlUtil.escapeURL(editPortletURL.toString()) + "'});" 
189			/> 
190		</#if> 
191	</#if> 
192</#macro> 
193 
194<#macro getFlagsIcon> 
195	<#if enableFlags == "true"> 
196		<@liferay_ui["flags"] 
197			className=entry.getClassName() 
198			classPK=entry.getClassPK() 
199			contentTitle=entry.getTitle(locale) 
200			label=false 
201			reportedUserId=entry.getUserId() 
202		/> 
203	</#if> 
204</#macro> 
205 
206<#macro getMetadataField 
207	fieldName 
208
209	<#if stringUtil.split(metadataFields)?seq_contains(fieldName)> 
210		<div class="metadata-entry metadata-${fieldName}"> 
211			<#assign dateFormat = "dd MMM yyyy" /> 
212 
213			<#if fieldName == "author"> 
214				<@liferay.language key="by" /> ${portalUtil.getUserName(assetRenderer.getUserId(), assetRenderer.getUserName())} 
215			<#elseif fieldName == "categories"> 
216				<@liferay_ui["asset-categories-summary"] 
217					className=entry.getClassName() 
218					classPK=entry.getClassPK() 
219					portletURL=renderResponse.createRenderURL() 
220				/> 
221			<#elseif fieldName == "create-date"> 
222				<div class="date">${dateUtil.getDate(entry.getCreateDate(), dateFormat, locale, themeDisplay.getTimeZone())}</div> 
223			<#elseif fieldName == "expiration-date"> 
224				<div class="date">${dateUtil.getDate(entry.getExpirationDate(), dateFormat, locale, themeDisplay.getTimeZone())}</div> 
225			<#elseif fieldName == "modified-date"> 
226				<div class="date">${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale, themeDisplay.getTimeZone())}</div> 
227			<#elseif fieldName == "priority"> 
228				${entry.getPriority()} 
229			<#elseif fieldName == "publish-date"> 
230				<#if entry.getClassName() = "com.liferay.portlet.journal.model.JournalArticle"> 
231					<div class="date">${dateUtil.getDate(entry.getPublishDate(), dateFormat, locale, themeDisplay.getTimeZone())}</div> 
232				</#if> 
233				 
234				<#if entry.getClassName() = "com.liferay.calendar.model.CalendarBooking"> 
235					<div class="date">${dateUtil.getDate(assetRenderer.getDisplayDate(), dateFormat, locale, themeDisplay.getTimeZone())}</div> 
236				</#if> 
237				 
238			<#elseif fieldName == "tags"> 
239				<@liferay_ui["asset-tags-summary"] 
240					className=entry.getClassName() 
241					classPK=entry.getClassPK() 
242					portletURL=renderResponse.createRenderURL() 
243				/> 
244			<#elseif fieldName == "view-count"> 
245				<@liferay_ui["icon"] 
246					image="history" 
247				/> 
248 
249				${entry.getViewCount()} <@liferay.language key="views" /> 
250			</#if> 
251		</div> 
252	</#if> 
253</#macro> 
254 
255<#macro getPrintIcon> 
256	<#if enablePrint == "true" > 
257		<#assign printURL = renderResponse.createRenderURL() /> 
258 
259		${printURL.setParameter("struts_action", "/asset_publisher/view_content")} 
260		${printURL.setParameter("assetEntryId", entry.getEntryId()?string)} 
261		${printURL.setParameter("viewMode", "print")} 
262		${printURL.setParameter("type", entry.getAssetRendererFactory().getType())} 
263 
264		<#if (validator.isNotNull(assetRenderer.getUrlTitle()))> 
265			<#if (assetRenderer.getGroupId() != themeDisplay.getScopeGroupId())> 
266				${printURL.setParameter("groupId", assetRenderer.getGroupId()?string)} 
267			</#if> 
268 
269			${printURL.setParameter("urlTitle", assetRenderer.getUrlTitle())} 
270		</#if> 
271 
272		${printURL.setWindowState("pop_up")} 
273 
274		<@liferay_ui["icon"] 
275			image="print" 
276			message="print" 
277			url="javascript:Liferay.Util.openWindow({id:'" + renderResponse.getNamespace() + "printAsset', title: '" + languageUtil.format(locale, "print-x-x", ["hide-accessible", entryTitle]) + "', uri: '" + htmlUtil.escapeURL(printURL.toString()) + "'});" 
278		/> 
279	</#if> 
280</#macro> 
281 
282<#macro getRatings> 
283	<#if (enableRatings == "true")> 
284		<div class="asset-ratings"> 
285			<@liferay_ui["ratings"] 
286				className=entry.getClassName() 
287				classPK=entry.getClassPK() 
288			/> 
289		</div> 
290	</#if> 
291</#macro> 
292 
293<#macro getRelatedAssets> 
294	<#if enableRelatedAssets == "true"> 
295		<@liferay_ui["asset-links"] 
296			assetEntryId=entry.getEntryId() 
297		/> 
298	</#if> 
299</#macro> 
agenda
“Miguel Delibes ilustrador. Los dibujos de EL Camino”
lunes, 09 diciembre 2019
Todo el día
Inauguración Navidad 2019/2020
viernes, 13 diciembre 2019
19:30 - 21:00
Taller para adultos. Cómo montar tu mesa para Navidad?
sábado, 14 diciembre 2019
12:00 - 13:30