Ultimas Actualizaciones

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> renderer.getURLViewInContext(renderRequest, renderResponse, viewURL)  [in template "20100#20136#4067011" at line 78, column 36]

----
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 viewURL = renderer.getURLView...  [in template "20100#20136#4067011" at line 78, column 17]
----
1<#assign dlFileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
2<#assign HttpUtil = staticUtil["com.liferay.portal.kernel.util.URLCodec"] /> 
3<#assign HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] /> 
4<style> 
5.lexicon-icon-pencil{float: right;display: inline-block} 
6.icon-monospaced, .icon-monospaced[class^='icon-'], .icon-monospaced[class*=' icon-']{height: 1rem;} 
7.portlet:hover .visible-interaction, .portlet.open .visible-interaction {display: inline-block;} 
8</style> 
9<#if entries?has_content> 
10	<#assign user = themeDisplay.getUser() /> 
11	<#assign groups = user.getUserGroupIds() /> 
12	<#assign usergroup = serviceLocator.findService("com.liferay.portal.kernel.service.UserGroupLocalService") /> 
13	<#list groups as gr> 
14		<#assign group_name = usergroup.getUserGroup(gr) /> 
15	</#list> 
16	<#assign roleServiceLocator = serviceLocator.findService("com.liferay.portal.kernel.service.RoleLocalService")> 
17	<#assign rolekey = roleServiceLocator.getUserRoles(user.userId) /> 
18	 
19	<div class="portlet-body"> 
20		<ul class="list-group show-quick-actions-on-hover"> 
21	 
22	<#list entries as entry> 
23		<#assign renderer = entry.getAssetRenderer() /> 
24		<#assign className = renderer.getClassName() /> 
25		<#assign fTipe = entry.getMimeType() /> 
26		 
27				<li class="list-group-item list-group-item-flex "> 
28					<div class="autofit-col"> 
29						<span class="inline-item"> 
30							<span class="sticker sticker-circle sticker-light user-icon-color-2 "> 
31								<span class="inline-item"> 
32									<#if fTipe == "application/pdf"> 
33										<#assign fIcon = "fa-file-pdf" /> 
34									</#if> 
35									<#if fTipe == "application/msword"> 
36										<#assign fIcon = "fa-file-word" /> 
37									</#if> 
38									<#if fTipe == "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" || fTipe == "application/vnd.ms-excel"> 
39										<#assign fIcon = "fa-file-excel" /> 
40									</#if> 
41									<#if fTipe == "application/vnd.ms-powerpoint"> 
42										<#assign fIcon = "fa-file-powerpoint" /> 
43									</#if> 
44									<#if fTipe == "image/png" || fTipe == "image/gif" || fTipe == "image/jpeg"> 
45										<#assign fIcon = "fa-file-image" /> 
46									</#if> 
47									<#if fTipe == "application/zip"> 
48										<#assign fIcon = "fa-file-archive" /> 
49									</#if> 
50									<#if fTipe == "text/html" || fTipe == "text/plain"> 
51										<#assign fIcon = "fa-file-alt" /> 
52									</#if> 
53									<#if fTipe == "video/mp4"> 
54										<#assign fIcon = "fa-file-video" /> 
55									</#if> 
56									<span class="fas ${fIcon}"></span> 
57								</span> 
58							</span> 
59						</span> 
60					</div> 
61					<div class="autofit-col autofit-col-expand"> 
62						<p class="h4 list-group-title text-truncate"> 
63						 
64	  <#if className == "com.liferay.document.library.kernel.model.DLFileEntry"> 
65        <#assign classPk = entry.getClassPK() /> 
66        <#assign fileEntry = dlFileEntryService.getDLFileEntry(classPk) /> 
67        <#assign folderId = fileEntry.getFolderId() /> 
68        <#assign fileNameUrl = HttpUtil.encodeURL(HtmlUtil.unescape(entry.getTitle())) /> 
69        <#assign url = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() + "/" + folderId + "/" + fileNameUrl /> 
70		 
71							<a href="${url}" target="_blank" title="${entry.getTitle(locale)} - Se abrirá en una Nueva Ventana"> ${entry.getTitle(locale)} <span class="fa fa-external-link-alt"></span></a> 
72						 
73							 
74	  <#elseif className == "com.liferay.journal.model.JournalArticle"> 
75		<#assign journalArticle = renderer.getArticle() /> 
76		<#assign HttpUtil = staticUtil["com.liferay.portal.kernel.util.URLCodec"] /> 
77		<#assign HtmlUtil = staticUtil["com.liferay.portal.kernel.util.HtmlUtil"] /> 
78		<#assign viewURL = renderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
79			 
80						<a href="${viewURL}" title="${entry.getTitle(locale)}"> ${entry.getTitle(locale)} </a> 
81	  <#else> 
82			${entry.getTitle()} 
83	  </#if> 
84		 
85						</p> 
86						<p class="list-group-subtitle text-truncate"> 
87							<#assign dateFormat = "dd MMM yyyy" /> 
88							${dateUtil.getDate(entry.getModifiedDate(), dateFormat, locale)}</small>	 
89						</p> 
90					</div> 
91					<div class="autofit-col"> 
92						<span class="visible-interaction"> 
93							<@getEditIcon /> 
94						</span> 
95					</div> 
96				</li> 
97	</#list> 
98			</ul> 
99		</div> 
100<#else> 
101	<#assign user = themeDisplay.getUser() /> 
102	<#assign groups = user.getUserGroupIds() /> 
103	<#assign usergroup = serviceLocator.findService("com.liferay.portal.kernel.service.UserGroupLocalService") /> 
104	<#list groups as gr> 
105		<#assign group_name = usergroup.getUserGroup(gr) /> 
106	</#list> 
107	<#assign roleServiceLocator = serviceLocator.findService("com.liferay.portal.kernel.service.RoleLocalService")> 
108	<#assign rolekey = roleServiceLocator.getUserRoles(user.userId) /> 
109	<#if rolekey?? || group_name??> 
110		<div><@getAddIcon /></div> 
111	<#else> 
112	</#if> 
113	<div class="card"> 
114	  <div class="card-body"> 
115		No existen elementos para mostrar. 
116	  </div> 
117	</div> 
118</#if> 
119<#macro getEditIcon> 
120	<#list rolekey as roles> 
121		<#if roles??> 
122			<#if group_name??> 
123				<#if group_name.name == "JURIDICA" > 
124					<#assign editPortletURL = renderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("NORMAL"), themeDisplay.getURLCurrent())!"" /> 
125 
126					<#if validator.isNotNull(editPortletURL)> 
127						<#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) /> 
128 
129						<@liferay_ui["icon"] 
130							cssClass="icon-monospaced visible-interaction" 
131							icon="pencil" 
132							markupView="lexicon" 
133							message=title 
134							url=editPortletURL.toString() 
135						/> 
136					</#if> 
137					<#break> 
138				</#if> 
139			<#else> 
140				<#if roles.name == "Administrator"> 
141					<#assign editPortletURL = renderer.getURLEdit(renderRequest, renderResponse, windowStateFactory.getWindowState("NORMAL"), themeDisplay.getURLCurrent())!"" /> 
142 
143					<#if validator.isNotNull(editPortletURL)> 
144						<#assign title = languageUtil.format(locale, "edit-x", entryTitle, false) /> 
145 
146						<@liferay_ui["icon"] 
147							cssClass="icon-monospaced visible-interaction" 
148							icon="pencil" 
149							markupView="lexicon" 
150							message=title 
151							url=editPortletURL.toString() 
152						/> 
153					</#if> 
154					<#break> 
155				</#if> 
156			</#if> 
157		<#else> 
158		</#if> 
159	</#list> 
160</#macro>