Errorea gertatu da txantiloia prozesatzerakoan.
Expected hash. subambitoEntry evaluated instead to freemarker.template.SimpleScalar on line 155, column 43 in 20746#20784#21324.
1<!-- INICIO DE LA PLANTILLA --> 
2 
3<#-- CONSTANTES --> 
4<#assign classNameIds = [20109]> 
5<#assign ambitoClassTypeId = 22263> 
6<#assign subambitoClassTypeId = 22272> 
7<#assign indicadorClassTypeId = 22267> 
8 
9 
10<#-- IMPORTS --> 
11<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")> 
12<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService")> 
13<#assign assetVocabularyLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetVocabularyLocalService" )> 
14<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
15<#assign DDMStructureLocalService = serviceLocator.findService("com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService") > 
16<#assign assetCategoryServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetCategoryServiceUtil"]> 
17<#assign journalArticleLocalServiceUtil = staticUtil["com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil"]> 
18<#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil"]> 
19<#assign OrderByComparatorFactoryUtil = staticUtil["com.liferay.portal.kernel.util.OrderByComparatorFactoryUtil"]> 
20<#assign assetUtil = staticUtil["com.liferay.portlet.asset.util.AssetUtil"] /> 
21 
22 
23<#-- AMBITOS LIST --> 
24<#assign assetEntryQuery = objectUtil("com.liferay.portlet.asset.service.persistence.AssetEntryQuery") /> 
25<#assign searchContext = objectUtil("com.liferay.portal.kernel.search.SearchContext") /> 
26${searchContext.setCompanyId(companyId)} 
27<#assign ambitoClassTypeIds = [ambitoClassTypeId]> 
28${assetEntryQuery.setClassNameIds(classNameIds)} 
29${assetEntryQuery.setClassTypeIds(ambitoClassTypeIds)} 
30${assetEntryQuery.setOrderByCol1("ddm/" + ambitoClassTypeId + "/orden")} 
31${assetEntryQuery.setOrderByType1("ASC")} 
32<#assign hits = assetUtil.search(searchContext, assetEntryQuery, 0, 1000) /> 
33<#assign ambitosAssetEntries = assetUtil.getAssetEntries(hits) /> 
34 
35<#assign ambitoDefaultEntry = ambitosAssetEntries[0] /> 
36<#assign ambitoDefaultCategories = ambitoDefaultEntry.getCategories() > 
37<#assign ambitoDefaultCategory = ambitoDefaultCategories[0] >         
38 
39 
40<#-- AMBITO SELECTED --> 
41<#assign ambitoCategory = "" > 
42<#assign subambitoCategory = "" > 
43 
44<#if renderRequest.getParameter("categoryId") ? has_content> 
45 
46    <#assign categoryIdRequest = renderRequest.getParameter("categoryId") /> 
47    <#assign categoryRequest = assetCategoryLocalService.getCategory(categoryIdRequest?number) /> 
48     
49    <#if categoryRequest.isRootCategory() > 
50        <#assign ambitoCategory = categoryRequest /> 
51    <#else> 
52        <#assign subambitoCategory = categoryRequest /> 
53        <#assign ambitoCategory = assetCategoryLocalService.getCategory(subambitoCategory.getParentCategoryId()) /> 
54    </#if> 
55     
56<#else> 
57    <#assign ambitoCategory = ambitoDefaultCategory /> 
58</#if> 
59 
60 
61<#assign ambitoCategoryAssetEntries = assetEntryLocalService.getAssetCategoryAssetEntries(ambitoCategory.getCategoryId()) /> 
62<#assign ambitoEntry = ambitoCategoryAssetEntries[0] /> 
63 
64 
65<#assign subambitoEntry = "" /> 
66 
67 
68<div id="nav-ctrl"> 
69	<div id="cerrar" title="Ocultar menú"></div> 
70	<div id="abrir" title="Mostrar menú"></div> 
71</div> 
72 
73<div class="submenu-indicadores-ambitos"> 
74									 
75	<div class="accordion submenu" id="accordion2"> 
76	 
77		<ul> 
78		<#list ambitosAssetEntries as ambitoEntryCur> 
79             
80            <#assign journalArticleResource = journalArticleResourceLocalServiceUtil.getJournalArticleResource(ambitoEntryCur.getClassPK()) > 
81            <#assign ambitoArticleCur = journalArticleLocalServiceUtil.getArticle(groupId, journalArticleResource.getArticleId()) > 
82            <#assign docXml = saxReaderUtil.read(ambitoArticleCur.getContentByLocale(locale.toString())) /> 
83             
84            <#assign ambitoCategoryIdsCur = ambitoEntryCur.getCategoryIds() > 
85            <#assign ambitoCategoryIdCur = ambitoCategoryIdsCur[0] > 
86             
87            <li class="accordion-group"> 
88             
89      			<a class="accordion-heading accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse${ambitoCategoryIdCur}"> 
90      				${ambitoEntryCur.getTitle(locale)} 
91           		</a> 
92             
93            	<ul id="collapse${ambitoCategoryIdCur}" class="accordion-body collapse in"> 
94            	 
95	            	<#-- SUBAMBITOS LIST --> 
96					<#assign assetEntryQuery = objectUtil("com.liferay.portlet.asset.service.persistence.AssetEntryQuery") /> 
97					<#assign subambitoClassTypeIds = [subambitoClassTypeId]> 
98					${assetEntryQuery.setClassNameIds(classNameIds)} 
99					${assetEntryQuery.setClassTypeIds(subambitoClassTypeIds)} 
100					${assetEntryQuery.setOrderByCol1("ddm/" + subambitoClassTypeId + "/orden")} 
101					${assetEntryQuery.setOrderByType1("ASC")} 
102					${assetEntryQuery.setAllCategoryIds([ambitoCategoryIdCur])} 
103					<#assign hits = assetUtil.search(searchContext, assetEntryQuery, 0, 1000) /> 
104					<#assign subambitosAssetEntries = assetUtil.getAssetEntries(hits) /> 
105					 
106					 
107					<#assign subambitoDefaultEntry = subambitosAssetEntries[0] /> 
108					<#assign subambitoDefaultCategories = subambitoDefaultEntry.getCategories() /> 
109					<#assign subambitoDefaultCategory = subambitoDefaultCategories[0] /> 
110					 
111					<#if (ambitoCategoryIdCur == ambitoCategory.getCategoryId()) && (!subambitoCategory ? has_content) > 
112					    <#assign subambitoCategory = subambitoDefaultCategory > 
113					</#if> 
114					 
115					<#list subambitosAssetEntries as subambitoEntryCur> 
116	             
117			            <#assign subambitoCategoriesCur = subambitoEntryCur.getCategories() /> 
118			             
119			            <#assign subambitoCategoryCur = subambitoCategoriesCur[0] /> 
120			             
121			            <#assign subambitoUrlCur = renderResponse.createRenderURL() /> 
122			            ${subambitoUrlCur.setParameter("resetCur", "true")} 
123			            ${subambitoUrlCur.setParameter("categoryId", "" + subambitoCategoryCur.getCategoryId())} 
124			             
125			            <#if (ambitoCategoryIdCur == ambitoCategory.getCategoryId()) && (subambitoCategoryCur.getCategoryId() == subambitoCategory.getCategoryId()) > 
126			                <#assign subambitoEntry = subambitoEntryCur /> 
127			                <#assign subambitoUrl = subambitoUrlCur /> 
128			                <li><a class="active" href="${subambitoUrlCur}">${subambitoEntryCur.getTitle(locale)}</a></li> 
129			            <#else> 
130			            	<li><a href="${subambitoUrlCur}">${subambitoEntryCur.getTitle(locale)}</a></li>     
131			            </#if> 
132			 
133			        </#list> 
134					         
135				</ul> 
136 
137	  		</li> 
138	  		   
139        </#list> 
140         
141        </ul> 
142	 
143	</div> 
144	 
145</div> 
146 
147 
148<#assign ambitoUrl = renderResponse.createRenderURL() /> 
149${ambitoUrl.setParameter("resetCur", "true")} 
150${ambitoUrl.setParameter("categoryId", "" + ambitoCategory.getCategoryId())} 
151 
152<script> 
153	jQuery(document).ready(function() { 
154		breadcrumbAddEntryLast('${ambitoEntry.getTitle(locale)}','${ambitoUrl}'); 
155		breadcrumbAddEntryLast('${subambitoEntry.getTitle(locale)}', null);   
156	}); 
157</script> 
158	 
159	 
160 
161<#assign docXml = saxReaderUtil.read(ambitoEntry.getAssetRenderer().getArticle().getContentByLocale(locale.toString())) /> 
162<#assign ambitoDescripcion = docXml.valueOf("//dynamic-element[@name='descripcion']/dynamic-content/text()") /> 
163 
164<div class="contenido-central"> 
165 
166	<div class="indicadores-ambitos"> 
167	    <div class="indicador-intro"> 
168	        <h3 class="title-header">${ambitoEntry.getTitle(locale)}</h3> 
169	        <p>${ambitoDescripcion}</p> 
170	 	</div> 
171	</div> 
172	 
173	<div class="listado-indices"> 
174	           
175        <#assign journalArticleResource = journalArticleResourceLocalServiceUtil.getJournalArticleResource(subambitoEntry.getClassPK()) > 
176        <#assign subambitoArticle = journalArticleLocalServiceUtil.getArticle(groupId, journalArticleResource.getArticleId()) > 
177     
178        <h4 class="title-header">${subambitoArticle.getTitle(locale)}</h4> 
179         
180		<div class="submensaje"> 
181         
182            <#assign docXml = saxReaderUtil.read(subambitoArticle.getContentByLocale(locale.toString())) /> 
183            <#assign subambitoDescripcion = docXml.valueOf("//dynamic-element[@name='descripcion']/dynamic-content/text()") /> 
184             
185        </div> 
186 
187		<ul class="ambitos"> 
188	    	<#list entries as indicadorEntry> 
189	    	    <#if assetEntryLocalService.hasAssetCategoryAssetEntry(subambitoCategory.getCategoryId(), indicadorEntry.getEntryId())  > 
190	    	        <li> 
191	            	    <#assign docXml = saxReaderUtil.read(indicadorEntry.getAssetRenderer().getArticle().getContentByLocale(locale.toString())) /> 
192	                    <#assign tipo_indicador = docXml.valueOf("//dynamic-element[@name='tipo_indicador']/dynamic-content/text()") /> 
193	                     
194	                    <#assign viewURL = "" /> 
195	                    <#if tipo_indicador == "external-link" > 
196	                        <#assign viewURL = docXml.valueOf("//dynamic-element[@name='external-link']/dynamic-content/text()") /> 
197	                    <#else> 
198	                        <#assign assetRenderer = indicadorEntry.getAssetRenderer() /> 
199	                        <#assign viewURL = assetRenderer.getURLViewInContext(renderRequest, renderResponse, viewURL) /> 
200	                    </#if> 
201	                    <a href="${viewURL}" >${indicadorEntry.getTitle(locale)}<span class="circle"></span></a> 
202	            	</li> 
203	    	    </#if> 
204	    	</#list> 
205    	</ul> 
206    	 
207	</div> 
208 
209</div> 
210 
211 
212<script> 
213 
214    $( document ).ready(function() { 
215     
216        menuOpen = Cookies.get("transparencia-ambitos-menu-open"); 
217         
218        if (menuOpen == "false") { 
219         
220            $(".submenu-indicadores-ambitos").css({ 
221                width: "0%", 
222                opacity: 0, 
223            }); 
224     
225            $(".contenido-central").css({ 
226                width: "100%", 
227            }); 
228               
229            $( "#cerrar" ).css({ display: 'none'});	 
230            $( "#abrir" ).css({ display: 'block'}); 
231            $( ".aui body .indicador-intro .title-header" ).css({ marginLeft: '19px'}); 
232             
233        } else { 
234         
235            $( ".submenu-indicadores-ambitos" ).css({ 
236    	        width: "30%", 
237    	        opacity: 1, 
238    	  	}); 
239    	  	 
240    	  	$( ".contenido-central" ).css({ 
241    	        width: "70%", 
242    	  	}); 
243    	  	 
244    	    $( "#cerrar" ).css({ display: 'block'});	 
245    	    $( "#abrir" ).css({ display: 'none'}); 
246    	    $( ".aui body .indicador-intro .title-header" ).css({ marginLeft: '0px'}); 
247
248         
249        // para accesibilidad 
250        $(".accordion-body.collapse").each(function(index) { 
251            if ($(this).attr('id') != "collapse${ambitoCategory.getCategoryId()}") { 
252                $(this).removeClass("in"); 
253
254        }); 
255         
256    }); 
257 
258	$( "#cerrar" ).click(function() { 
259		 
260	    Cookies.set("transparencia-ambitos-menu-open", "false"); 
261										 
262        $( ".submenu-indicadores-ambitos" ).animate({ 
263            width: "0%", 
264            opacity: 0, 
265        }, 200 ); 
266 
267        $( ".contenido-central" ).animate({ 
268            width: "100%", 
269        }, 300 ); 
270           
271        $( "#cerrar" ).css({ display: 'none'});	 
272        $( "#abrir" ).css({ display: 'block'}); 
273        $( ".aui body .indicador-intro .title-header" ).css({ marginLeft: '19px'}); 
274	}); 
275								 
276									 
277	$( "#abrir" ).click(function() { 
278 
279	    Cookies.set("transparencia-ambitos-menu-open", "true"); 
280	     
281	  	$( ".submenu-indicadores-ambitos" ).animate({ 
282	        width: "30%", 
283	        opacity: 0, 
284	  	}, 200 ); 
285	  	 
286	  	$( ".contenido-central" ).animate({ 
287	        width: "70%", 
288	  	}, 200 ); 
289	  	 
290	  	$( ".submenu-indicadores-ambitos" ).animate({ 
291	        opacity: 1, 
292	  	}, 200 ); 
293	  	 
294	  $( "#cerrar" ).css({ display: 'block'});	 
295	  $( "#abrir" ).css({ display: 'none'}); 
296	  $( ".aui body .indicador-intro .title-header" ).css({ marginLeft: '0px'});	 
297	   
298	}); 
299	 
300</script> 
301 
302<!-- FINAL DE LA PLANTILLA -->