Ficha de los Cuentos
Se ha producido un error al procesar la plantilla.
Denied access to method or field getAttribute of class org.apache.catalina.core.ApplicationHttpRequest
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign url = request.getAttribute("C... [in template "20902#20940#7261207" at line 39, column 1]
----
1<#assign autor = "Egilea">
2<#assign autorMusica = "Musikaren egilea">
3<#assign tipoCuento = "Mota">
4<#assign bajar = "Jaitsi">
5<#assign palabrasClave="Hitz gakoak">
6
7<#if locale=='en_US'>
8 <#assign autor = "Author">
9 <#assign autorMusica = "Autor de la música">
10 <#assign tipoCuento = "Type">
11 <#assign bajar = "Download">
12 <#assign palabrasClave="Keywords">
13</#if>
14<#if locale=='fr_FR'>
15 <#assign autor = "Auteor">
16 <#assign autorMusica = "Auteur de la musique">
17 <#assign tipoCuento = "Type">
18 <#assign bajar = "Télécharger">
19 <#assign palabrasClave="Mots-clés">
20</#if>
21<#if locale=='es_ES'>
22 <#assign autor = "Autor">
23 <#assign autorMusica = "Music Author">
24 <#assign tipoCuento = "Tipo">
25 <#assign bajar = "Bajar">
26 <#assign palabrasClave="Palabras clave">
27</#if>
28
29<#-- Id del vocabulario Cuentos-->
30<#assign assetVocabularyLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil"]>
31<#assign lisVocabularios=assetVocabularyLocalServiceUtil.getGroupVocabularies(getterUtil.getLong(groupId))/>
32<#assign IdCategoriaCuentos=0>
33<#list lisVocabularios as vocabulario>
34 <#if vocabulario.getName() == "Cuento">
35 <#assign IdCategoriaCuentos=vocabulario.getVocabularyId()/>
36 </#if>
37</#list>
38
39<#assign url = request.getAttribute("CURRENT_URL")>
40<#assign journalArticleId = paramUtil.getString(request, "articleId")>
41<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
42<#assign DLAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService")>
43
44<#if journalArticleId?has_content>
45 <#if journalArticleLocalService??>
46 <#assign articleById = journalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), journalArticleId) />
47 <#assign document = saxReaderUtil.read(articleById.getContentByLocale(locale)) >
48 <#assign irudia = document.valueOf("//dynamic-element[@field-reference='irudia']/dynamic-content/text()") />
49 <#assign egilea = document.valueOf("//dynamic-element[@field-reference='egilea']/dynamic-content/text()") />
50 <#assign musikaren_egilea = document.valueOf("//dynamic-element[@field-reference='musikaren_egilea']/dynamic-content/text()") />
51 <#assign izenburua = document.valueOf("//dynamic-element[@field-reference='izenburua']/dynamic-content/text()") />
52 <#assign audioa = document.valueOf("//dynamic-element[@field-reference='audioa']/dynamic-content/text()") />
53 <#assign deskribapena = document.valueOf("//dynamic-element[@field-reference='deskribapena']/dynamic-content/text()") />
54
55 <#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
56 <#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.journal.service.JournalArticleResourceLocalServiceUtil"]>
57 <#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, journalArticleId)/>
58 <#assign categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.journal.model.JournalArticle",articleResourcePK) >
59 <#assign assetCategoryPropertyLocalServiceUtil =serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService")>
60
61 <#-- Etiquetas de un contenido-->
62 <#assign contadorEtiquetas=0/>
63 <#assign listAssetTag = [] />
64
65 <#assign assetEntryLocalServiceUtil = staticUtil['com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil']>
66 <#assign assetEntry=assetEntryLocalServiceUtil.getEntry("com.liferay.journal.model.JournalArticle", articleResourcePK)/>
67 <#list assetEntry.getTags() as tag>
68 <#assign listAssetTag=assetEntry.getTags()/>
69 </#list>
70 <#list listAssetTag as assetTag>
71 <#assign contadorEtiquetas=contadorEtiquetas+1/>
72 </#list>
73
74 <div class="col-xs-12 col-md-12 col-lg-12 separadorDerecho" id="detalle-fitxa">
75 <#--PARTE IZQUIERDA-->
76 <div class="col-xs-12 col-md-4 col-lg-4">
77 <#if irudia !="">
78 <#assign jsonImagen = jsonFactoryUtil.createJSONObject(irudia)>
79 <#assign imagenFile = DLAppLocalService.getFileEntryByUuidAndGroupId(jsonImagen.getString("uuid"), getterUtil.getLong(groupId)) >
80 <#assign imagenUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() +
81 "/" + imagenFile.getFolderId() + "/" + htmlUtil.unescape(imagenFile.getTitle())>
82 <img id="imgDetalle" src="${imagenUrl}"/>
83 <#else>
84 <img id="imgDetalle" src="/o/x61tThemeIkasbilWAR-theme/images/Logo_Sin_resultados_Habe.jpg"/>
85 </#if>
86 <br/>
87 <div class="resumen">
88 <ul class="sinPunto">
89 <#if egilea !="">
90 <li>
91 <span style="font-weight:bold">${autor}:</span> ${egilea}
92 </li>
93 </#if>
94 <#if musikaren_egilea !="">
95 <li>
96 <span style="font-weight:bold">${autorMusica}:</span> ${musikaren_egilea}
97 </li>
98 </#if>
99
100 <#assign contCuentos = 0/>
101 <#list categoryList as category>
102 <#if category.getVocabularyId() == IdCategoriaCuentos>
103 <#assign contCuentos =contCuentos + 1/>
104 </#if>
105 </#list>
106 <#if contCuentos !=0>
107 <li>
108 <span style="font-weight:bold">${tipoCuento}: </span>
109 <#list categoryList as category>
110 <#if category.getVocabularyId() ==IdCategoriaCuentos>
111 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(category.getCategoryId())/>
112 <#list assetCategoryPropertyList as assetCategoryProperty>
113 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
114 <#assign idioma = locale.toString()/>
115 <#if (assetCategoryKey == idioma)>
116 <#assign property_value=assetCategoryProperty.getValue()/>
117 </#if>
118 </#list>
119 <#if category.getName() == "Euskal tradiziokoak">
120 <img title="${property_value}"
121 src="/o/x61tThemeIkasbilWAR-theme/images/icono-estrategias-aprendizaje.png"
122 alt="${property_value}">
123 </#if>
124 <#if category.getName() == "Munduko ipuin tradizionalak">
125 <img title="${property_value}"
126 src="/o/x61tThemeIkasbilWAR-theme/images/icono-concepto-localizaciones.png"
127 alt="${property_value}">
128 </#if>
129 <#if category.getName() == "Haurrentzakoak">
130 <img title="${property_value}"
131 src="/o/x61tThemeIkasbilWAR-theme/images/icono-expresion-oral.png"
132 alt="${property_value}">
133 </#if>
134 <#if category.getName() == "Bestelakoak">
135 <img title="${property_value}"
136 src="/o/x61tThemeIkasbilWAR-theme/images/icono-negro-cuentos.png"
137 alt="${property_value}">
138 </#if>
139 </#if>
140 </#list>
141 </li>
142 </#if>
143
144 <#if contadorEtiquetas != 0>
145 <li>
146 <span style="font-weight:bold">${palabrasClave}: </span>
147 <#list listAssetTag as assetTag>
148 <#assign contadorEtiquetas=contadorEtiquetas -1/>
149 <#if contadorEtiquetas != 0>
150 ${assetTag.getName()},
151 <#else>
152 ${assetTag.getName()}
153 </#if>
154 </#list>
155 </li>
156 </#if>
157 </ul>
158 </div>
159 </div>
160 <#--PARTE DERECHA-->
161 <div class="col-xs-12 col-md-8 col-lg-8">
162 <#if izenburua != ''>
163 <h2>${izenburua}</h2>
164 <br/>
165 </#if>
166 <#if audioa !="">
167 <#assign jsonAudio = jsonFactoryUtil.createJSONObject(audioa)>
168 <#assign audioFile = DLAppLocalService.getFileEntryByUuidAndGroupId(jsonAudio.getString("uuid"), getterUtil.getLong(groupId)) >
169 <#assign audioUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() +
170 "/" + audioFile.getFolderId() + "/" + htmlUtil.unescape(audioFile.getTitle())>
171 <div id="audioa">
172 <a class="botonEnlace" href="${audioUrl}" target="_blank">
173 ${bajar} <i class="detalle-dokuteka-Revista-Nabarmena"></i>
174 </a>
175 <div>
176 <audio controls class="anchoAudio">
177 <source src="audio.ogg" type="audio/ogg">
178 <source src="${audioUrl}" type="audio/mp3">
179 </audio>
180 </div>
181 </div>
182 <br/>
183 </#if>
184 <#if deskribapena != ''>
185 <p>${deskribapena}</p>
186 </#if>
187 </div>
188 </div>
189 </#if>
190</#if>
