Compromisos de Agbar

Agbar es un grupo altamente comprometido con la mejora de calidad de vida de las personas y la generación de valor para todos sus grupos de relación, como queda establecido explícitamente en su misión.

Políticas


An error occurred while processing the template.
Failed to "?eval" string with this error:

---begin-message---
Syntax error in ?eval-ed string in line 4, column 33:
Encountered ")", but was expecting one of:
    <STRING_LITERAL>
    <RAW_STRING>
    "false"
    "true"
    <INTEGER>
    <DECIMAL>
    "."
    "+"
    "-"
    "!"
    "["
    "("
    "{"
    <ID>
---end-message---

The failing expression:
==> documentoItem?eval  [in template "576538#576584#577726" at line 104, column 52]

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign docJSON = documentoItem?eval  [in template "576538#576584#577726" at line 104, column 33]
----
1<#if entries?has_content> 
2	<div class="banners"> 
3	    <div class="row"> 
4    		<#list entries as entry> 
5    		 
6    			<#assign renderer = entry.getAssetRenderer() /> 
7    			<#assign className = renderer.getClassName() />		 
8    			<#if className == "com.liferay.journal.model.JournalArticle"> 
9    				<#assign journalArticle = renderer.getArticle() /> 
10    				 
11    				<#-- Cuando haya varios idiomas, hay que utilizar getContentByLocal(locale) y eliminar getContent() --> 
12                    <#-- <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) /> --> 
13                     
14            <#assign document = saxReaderUtil.read(journalArticle.getContentByLocale(locale)) /> 
15    								 
16    				<#assign tituloItem = document.selectSingleNode("//dynamic-element[@name='tituloItem']/dynamic-content") /> 
17    				<#assign tituloApartado = document.selectNodes("//dynamic-element[@name='tituloApartado']") />	 
18    				<#assign descripcionItem = document.valueOf("//dynamic-element[@name='descripcionItem']") /> 
19    				<#assign descripcionApartado = document.valueOf("//dynamic-element[@name='descripcionApartado']") />	 
20    				<#assign imgPrincipal = document.valueOf("//dynamic-element[@name='imgPrincipal']") /> 
21						<#assign imgInterior = document.valueOf("//dynamic-element[@name='imgInterior']") /> 
22						 
23    				<#assign enlaces = document.selectNodes( "//dynamic-element[@name='enlaceItem']") /> 
24    				<#assign docs = document.selectNodes( "//dynamic-element[@name='documentoItem']") /> 
25    				 
26						<#if imgPrincipal?? && imgPrincipal?trim != ""> 
27							<#assign imgPrincipalJSON = imgPrincipal?eval> 
28							<#if imgPrincipalJSON?? && imgPrincipalJSON.uuid??> 
29									<#assign groupId = imgPrincipalJSON.groupId> 
30									<#assign uuid = imgPrincipalJSON.uuid> 
31									<#assign imgPrincipalURL = themeDisplay.getPortalURL() + "/documents/" + groupId + "/" + uuid /> 
32							</#if> 
33						</#if> 
34							 
35				<div class="col-md-4 col-sm-4 banner-item"> 
36					<div class="banner-panel-info-item"> 
37						<div class="banner-img" style="background-image: url('${imgPrincipalURL}') !important"></div> 
38						<p class="subtitle">${entry.getTitle(locale)}</p> 
39						<span class="banner-mostrar-info plus-info" data-url="${entry.getTitle(locale)}"><i class="fa fa-plus" aria-hidden="true"></i></span> 
40					</div> 
41 
42					<div class="banner-panel-info"> 
43						<div class="row">														 
44							<#--<#if stringUtil.equalsIgnoreCase("", imgInterior.getText())>--> 
45								<#if imgInterior?? && imgInterior?trim != ""> 
46								<div class="col-md-12 col-sm-12">	 
47							<#else> 
48								<div class="descripcion"> 
49							</#if> 
50								<h2>${tituloItem.getText()}</h2> 
51								${descripcionItem}	 
52									 
53								<#assign seccionesNodes = document.selectNodes( "//dynamic-element[@name='tituloApartadoFieldSet']") /> 
54									<#if seccionesNodes?has_content && seccionesNodes??> 
55										<#list seccionesNodes as seccionesNode> 
56											<#assign tituloApartadoNode = seccionesNode.selectSingleNode("dynamic-element[@name='tituloApartado']/dynamic-content") /> 
57											<#assign descripcionApartadoFieldset = seccionesNode.selectSingleNode("dynamic-element[@name='tituloApartadoFieldSetFieldSet']") /> 
58											<#assign descripcionApartadoNode = descripcionApartadoFieldset.valueOf("dynamic-element[@name='descripcionApartado']") /> 
59											<h3>${tituloApartadoNode.getText()}</h3> 
60												${descripcionApartadoNode} 
61										</#list> 
62									</#if> 
63									 
64									<#assign enlacesNodes = document.selectNodes( "//dynamic-element[@name='enlaceItemFieldSet']") /> 
65									<#if !stringUtil.equalsIgnoreCase("", enlaces?first.valueOf("dynamic-content")) > 
66										<h3><@liferay.language key="enlaces.proveedor" /></h3>									 
67										<ul class="enlaces"> 
68											<#list enlacesNodes as enlacesNode> 
69												<#assign linkNode = enlacesNode.selectSingleNode("dynamic-element[@name='enlaceItem']/dynamic-content") /> 
70												<#assign linktextFieldset = enlacesNode.selectSingleNode("dynamic-element[@name='enlaceItemFieldSetFieldSet']") /> 
71												<#assign linktextNode = linktextFieldset.valueOf("dynamic-element[@name='enlaceTexto']") /> 
72												<li> 
73													<i class="fa fa-link" aria-hidden="true"></i> 
74													<a href="${linkNode.getText()}" target="_blank">												 
75													<#if linktextNode?? && (linktextNode?trim?length > 0)> 
76														${linktextNode} 
77													<#else> 
78														${linkNode.getText()} 
79													</#if>								 
80													</a>												 
81												</li>							 
82											</#list> 
83										</ul> 
84									</#if> 
85									 
86									<#assign documentoItemFieldSets = document.selectNodes("//dynamic-element[@name='documentoItemFieldSet']") /> 
87<#assign hasContent = false /> 
88<#if documentoItemFieldSets?has_content> 
89	<#list documentoItemFieldSets as fieldSet> 
90		<#assign documentoItem = fieldSet.valueOf("dynamic-element[@name='documentoItem']") /> 
91		<#if documentoItem?? && documentoItem?trim != "" && documentoItem?trim != "{}"> 
92				<#assign hasContent = true /> 
93		</#if> 
94	</#list> 
95</#if> 
96<#if hasContent> 
97	<h3><@liferay.language key="documents" /></h3> 
98	<ul class="docs"> 
99		<#list documentoItemFieldSets as fieldSet> 
100			<#assign documentoItem = fieldSet.valueOf("dynamic-element[@name='documentoItem']") /> 
101			<#assign docTextoFieldset = fieldSet.selectSingleNode("dynamic-element[@name='documentoItemFieldSetFieldSet']") /> 
102			<#assign docTexto = docTextoFieldset.valueOf("dynamic-element[@name='docTexto']") /> 
103			<#if documentoItem?? && documentoItem?has_content && documentoItem != "{}"> 
104				<#assign docJSON = documentoItem?eval /> 
105				</#if> 
106			<#assign docJSON = documentoItem?eval /> 
107			<#if docJSON?? && docJSON.groupId?? && docJSON.uuid??> 
108				<#assign docUrl = themeDisplay.getPortalURL() + "/documents/" + docJSON.groupId + "/" + docJSON.uuid /> 
109				<#assign docTitle = docJSON.title /> 
110				<li> 
111					<i class="fa fa-download" aria-hidden="true"></i> 
112					<a href="${docUrl}" target="_blank"> 
113						<#if docTexto?? && (docTexto?trim?length > 0)>${docTexto?string?html}<#else>${docTitle}</#if> 
114							</a> 
115						</li> 
116				</#if> 
117		</#list> 
118	</ul> 
119</#if> 
120</div> 
121										 
122							<#if imgInterior?? && imgInterior?trim != ""> 
123								<#assign imgInteriorJSON = imgInterior?eval> 
124								<#if imgInteriorJSON?? && imgInteriorJSON.uuid??> 
125									<#assign groupIdInterior = imgInteriorJSON.groupId> 
126									<#assign uuidInterior = imgInteriorJSON.uuid> 
127									<#assign imgURLInterior = themeDisplay.getPortalURL() + "/documents/" + groupIdInterior + "/" + uuidInterior /> 
128									<div class="imagen"> 
129										<img src='${imgURLInterior}' /> 
130									</div> 
131								</#if> 
132							</#if> 
133						</div> 
134					</div>   
135				</div> 
136    		</#if> 
137    	</#list> 
138    		</div>	 
139	</div> 
140</#if>