Animated Stories Card
An error occurred while processing the template.
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#7261276" at line 141, column 1]
----
1<style>
2 #naranja {
3 color: orange !important;
4 }
5
6 #siguiente, #anterior {
7 font-size: 90px;
8 top: 100px;
9 }
10
11 #siguiente a, #anterior a {
12 cursor: pointer;
13 }
14
15 .image, .bloqueAudio {
16 display: none;
17 }
18
19 #image0 {
20 display: block;
21 }
22
23 .resumen {
24 color: #707070;
25 border-top: 1px dotted #E9C1DB;
26 border-bottom: 1px dotted #E9C1DB;
27 clear: both;
28 margin: 20px 0;
29 padding: 0 0 20px;
30 }
31
32 .nivo-controlNav {
33 position: absolute;
34 right: 0;
35 }
36
37 .nivo-controlNav a {
38 display: block;
39 width: 22px;
40 height: 22px;
41 background: url(/o/x61tThemeIkasbilWAR-theme/images/slider/bullets.png) no-repeat;
42 text-indent: -9999px;
43 border: 0;
44 margin-right: 3px;
45 float: left;
46 }
47
48 .nivo-controlNav a.active {
49 background-position: 0 -22px;
50 }
51
52 #detalle-habe-aldizkaria-fitxa > div:last-of-type #imgNode {
53 text-align: center;
54 }
55
56 #detalle-habe-aldizkaria-fitxa > div:last-of-type #imgNode + #siguiente a {
57 float: right;
58 }
59
60 @media only screen and (max-device-width: 1024px) and (min-device-width: 768px) and (orientation: portrait) {
61 #siguiente, #anterior {
62 font-size: 60px;
63 padding: 0;
64 }
65
66 #detalle-habe-aldizkaria-fitxa > div:last-of-type #imgNode {
67 padding: 0;
68 }
69 }
70
71 @media (max-width: 480px) {
72 #siguiente, #anterior {
73 font-size: 50px;
74 top: 55px;
75 }
76 }
77</style>
78
79<script>
80 $(document).ready(function () {
81 $("#audio0").trigger('play');
82 });
83
84 var slideIndex = 0;
85
86 function showSlides(pos, posPunto) {
87 var i;
88 var slides = document.getElementsByClassName("image");
89 var nivos = document.getElementsByClassName("nivo-control");
90 var audio = document.getElementById("audio" + slideIndex);
91 $(".nivo-control").removeClass("active");
92
93 //Interrumpe el audio si no se ha reproducido del todo al pasar a otro
94 if (audio.duration > 0 && !audio.paused) {
95 audio.pause();
96 audio.currentTime = 0;
97 }
98
99 //Pone invisibles todas las imagenes
100 for (i = 0; i < slides.length; i++) {
101 slides[i].style.display = "none";
102 }
103
104 if (pos == 1 && posPunto == -1) {
105 //Flecha derecha
106 slideIndex++;
107 if (slideIndex == slides.length) {
108 slideIndex = 0;
109 }
110 } else if (pos == -1 && posPunto == -1) {
111 //Flecha izquierda
112 slideIndex--;
113 if (slideIndex == -1) {
114 slideIndex = slides.length - 1;
115 }
116 } else {
117 //Se hace click en cualquier punto
118 $(".nivo-control").removeClass("active");
119 slideIndex = posPunto;
120 }
121
122 //Actualiza el estilo de los botones cuando se haga click sobre alguna flecha
123 for (i = 0; i < nivos.length; i++) {
124 if (nivos[i].getAttribute("rel") == slideIndex) {
125 nivos[i].className = "nivo-control active";
126 }
127 }
128
129 //Actualiza el estilo de los botones cuando se haga click en uno
130 $(".nivo-control").click(function () {
131 $(this).addClass("active");
132 });
133
134 //Muestra la imagen que corresponde junto a su reproduccion
135 slides[slideIndex].style.display = "block";
136 audio = document.getElementById("audio" + slideIndex);
137 audio.play();
138 }
139</script>
140
141<#assign url = request.getAttribute("CURRENT_URL")>
142<#assign id = paramUtil.getString(request, "articleId")>
143
144<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
145<#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.journal.service.JournalArticleResourceLocalServiceUtil"]>
146<#assign artResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, id)/>
147<#assign DLAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService")>
148
149<#--Incrementamos el valor de las visitas cada vez que se entra en el detalle-->
150<#assign assetEntryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil"]>
151<#assign assetEntry = assetEntryLocalServiceUtil.getEntry("com.liferay.journal.model.JournalArticle", artResourcePK)>
152
153<#--Contadores-->
154<#assign $contadorImg = 0 />
155<#assign $contadorAudio = 0 />
156
157<#if id?has_content>
158 <#if journalArticleLocalService??>
159 <#assign articleById = journalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), id) />
160 <#assign document = saxReaderUtil.read(articleById.getContentByLocale(locale)) >
161
162 <#assign titulo = document.valueOf("//dynamic-element[@field-reference='izenburua']/dynamic-content/text()") />
163 <#assign descripcion = document.valueOf("//dynamic-element[@field-reference='deskribapena']/dynamic-content/text()") />
164 <#assign imagen = document.valueOf("//dynamic-element[@field-reference='irudia']/dynamic-content/text()") />
165
166 <#assign slideNodes = document.selectNodes("//dynamic-element[@field-reference='slide']") />
167 <#assign imagenNodes = document.selectNodes("//dynamic-element[@field-reference='imagen']/dynamic-content/text()") />
168 <#assign audiosNodes = document.selectNodes("//dynamic-element[@field-reference='audio']/dynamic-content/text()") />
169
170 <div class="col-xs-12 col-md-12 col-lg-12 separadorDerecho" id="detalle-habe-aldizkaria-fitxa">
171 <#--PARTE IZQUIERDA-->
172 <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4">
173 <#if imagen != ''>
174 <#assign jsonImagen = jsonFactoryUtil.createJSONObject(imagen)>
175 <#assign imagenFile = DLAppLocalService.getFileEntryByUuidAndGroupId(jsonImagen.getString("uuid"), getterUtil.getLong(groupId)) >
176 <#assign imagenUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() +
177 "/" + imagenFile.getFolderId() + "/" + htmlUtil.unescape(imagenFile.getTitle())>
178 <img src="${imagenUrl}" width="210" height="176">
179 </#if>
180 </div>
181 <#--PARTE DERECHA-->
182 <div class="col-xs-12 col-sm-8 col-md-8 col-lg-8">
183 <#if titulo != ''>
184 <div class="titulo">
185 <h2>${titulo}</h2>
186 </div>
187 </#if>
188 <div class="descripcion">
189 <p>${descripcion}</p>
190 </div>
191 <#--PARTE FLECHA ANTERIOR-->
192 <div id="anterior" class="col-xs-2 col-sm-1 col-md-2 col-lg-2">
193 <a onclick="showSlides(-1, -1)"><i id="naranja" class="glyphicon glyphicon-triangle-left"></i></a>
194 </div>
195 <#--PARTE IMAGEN Y PUNTOS-->
196 <div id="imgNode" class="col-xs-8 col-sm-10 col-md-8 col-lg-8">
197 <#if imagenNodes?is_sequence>
198 <#assign temporary_image_src = "" />
199 <#list imagenNodes as imagenNodes_e>
200 <#assign temporary_image_src = imagenNodes_e.getText() />
201 <#assign jsonImagen = jsonFactoryUtil.createJSONObject(temporary_image_src)>
202 <#assign imagenFile = DLAppLocalService.getFileEntryByUuidAndGroupId(jsonImagen.getString("uuid"), getterUtil.getLong(groupId)) >
203 <#assign imagenUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() +
204 "/" + imagenFile.getFolderId() + "/" + htmlUtil.unescape(imagenFile.getTitle())>
205 <#assign $idImg = "image" + $contadorImg />
206 <div id=${$idImg} class="image">
207 <img id="image" src="${imagenUrl}">
208 </div>
209 <#assign $contadorImg = $contadorImg + 1 />
210 </#list>
211 </#if>
212 <div id="nivo-controlNav" class="nivo-controlNav">
213 <script type="text/javascript">
214 //Se crean los puntos con sus respectivos onclicks para que el orden no se pierda
215 var noPos = 0;
216 var nivo = document.getElementById("nivo-controlNav");
217 for (j = 0; j < ${$contadorImg}; j++) {
218 var a = document.createElement("a");
219 var node = document.createTextNode(j + 1);
220 if (j == 0) {
221 a.className = "nivo-control active";
222 } else {
223 a.className = "nivo-control";
224 }
225 a.rel = j;
226 a.appendChild(node);
227
228 a.onclick = (function (noPos, j) {
229 return function () {
230 showSlides(noPos, j);
231 };
232 })(noPos, j);
233
234 nivo.appendChild(a);
235
236 }
237 </script>
238 </div>
239 </div>
240 <#--PARTE FLECHA SIGUIENTE-->
241 <div id="siguiente" class="col-xs-2 col-sm-1 col-md-2 col-lg-2">
242 <a onclick="showSlides(1, -1)"><i id="naranja" class="glyphicon glyphicon-triangle-right"></i></a>
243 </div>
244 <#if audiosNodes?is_sequence>
245 <#assign temporary_image_src = "" />
246 <#list audiosNodes as audiosNodes_e>
247 <#assign temporary_audio_src = audiosNodes_e.getText() />
248 <#assign jsonAudio = jsonFactoryUtil.createJSONObject(temporary_audio_src)>
249 <#assign audioFile = DLAppLocalService.getFileEntryByUuidAndGroupId(jsonAudio.getString("uuid"), getterUtil.getLong(groupId)) >
250 <#assign audioUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() +
251 "/" + audioFile.getFolderId() + "/" + htmlUtil.unescape(audioFile.getTitle())>
252 <#assign $idAudio = "audio" + $contadorAudio />
253 <div class="bloqueAudio">
254 <#--<#if $contadorAudio == 0>
255 <audio id=${$idAudio} preload="auto" autoplay controls>
256 <#else>-->
257 <audio id=${$idAudio} preload="auto" controls>
258 <#--</#if>-->
259 <source src="${audioUrl}" type="audio/mpeg">
260 </audio>
261 </div>
262 <#assign $contadorAudio = $contadorAudio + 1 />
263 </#list>
264 </#if>
265 </div>
266 </div>
267 </#if>
268</#if>
An error occurred while processing the template.
Failed to get value for key "com.liferay.portal.service.ServiceContextThreadLocal"; see cause exception.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign serviceContext = staticUtil["... [in template "20902#20940#29628628" at line 73, column 5]
----
1<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
2
3<style>
4.col-xs-12.col-md-12.col-lg-12.separacionNivelesDokuteka.sinMargenIzq {
5 border-top: none !important;
6 border-radius: 0 !important;
7}
8
9.journal-content-article[data-analytics-asset-title="detalle2"] {
10 padding: 0 .5em !important;
11}
12</style>
13
14
15<!--Ocultamos la fuente y el autor y por jquery lo visualizamos si existe el div fuenteAutor-->
16<#assign numero = "Zenbakia">
17<#assign objDid = "Helburu didaktikoak">
18<#assign numVisitas = "Bisita-kopurua">
19<#assign calendario = "Argitaratze-data">
20<#assign niveles = "Maila">
21<#assign formatos = "Formatua">
22<#assign fuente = "Iturria">
23<#assign dialecto = "Euskalkia">
24<#assign duracion = "Iraupena">
25<#assign parcial = "parcial">
26<#assign dokuteka = "Dokuteka">
27
28<#if locale=='en_US'>
29 <#assign numero = "Number">
30 <#assign objDid = "Educational objectives">
31 <#assign numVisitas = "Number of visits">
32 <#assign calendario = "Publication date">
33 <#assign niveles = "Level">
34 <#assign formatos = "Format">
35 <#assign fuente = "Source">
36 <#assign dialecto = "Basque dialect">
37 <#assign duracion = "Duration">
38 <#assign dokuteka = "Document library">
39</#if>
40<#if locale=='fr_FR'>
41 <#assign numero = "Numéro">
42 <#assign objDid = "Objectifs didactiques">
43 <#assign numVisitas = "Nombre de visites">
44 <#assign calendario = "Date de publication">
45 <#assign niveles = "Niveau">
46 <#assign formatos = "Format">
47 <#assign fuente = "Source">
48 <#assign dialecto = "Dialecte de la langue basque">
49 <#assign duracion = "Durée">
50 <#assign dokuteka = "Docuthèque">
51
52</#if>
53<#if locale=='es_ES'>
54 <#assign numero = "Número">
55 <#assign objDid = "Objetivos didácticos">
56 <#assign numVisitas = "Número de visitas">
57 <#assign calendario = "Fecha de publicación">
58 <#assign niveles = "Nivel">
59 <#assign formatos = "Formato">
60 <#assign fuente = "Fuente">
61 <#assign dialecto = "Dialecto del euskera">
62 <#assign duracion = "Duración">
63 <#assign dokuteka = "Docuteca">
64</#if>
65
66
67<#assign id = paramUtil.getString(request, "articleId")>
68
69<#-- <#assign id = .vars["reserved-article-id"].data> -->
70<#-- <#assign id = getterUtil.getString(.vars["reserved-article-id"].data)> -->
71
72<#if !id?has_content>
73 <#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()>
74 <#assign themeDisplay = serviceContext.getThemeDisplay() />
75 <#assign layout=themeDisplay.getLayout()>
76 <#assign querystring=layout.getTypeSettingsProperty("query-string")>
77 <#assign hayArticleId= querystring?index_of("articleId") >
78
79 <#if hayArticleId?has_content >
80 <#assign indiceInicio=(querystring?index_of("articleId"))+10>
81
82 <#assign indiceFinal=querystring.length()>
83
84 <#assign id=querystring?substring(indiceInicio,indiceFinal) >
85 </#if>
86</#if>
87<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
88<#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.journal.service.JournalArticleResourceLocalServiceUtil"]>
89<#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
90<#assign artResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, id)/>
91<#assign categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.journal.model.JournalArticle",artResourcePK) >
92<#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"]>
93
94<!--Lista de vocabularios-->
95<#assign idVocabuOD=0>
96<#assign idVocabuDialecto=0>
97<#assign idTipoDocumento=0>
98
99<#assign assetVocabularyLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil"]>
100<#assign vocabularioList=assetVocabularyLocalServiceUtil.getGroupVocabularies(groupId) >
101<#list vocabularioList as vocabulario>
102 <#if vocabulario.getName() == "Objetivos Didácticos">
103 <#assign idVocabuOD=vocabulario.getVocabularyId() >
104 </#if>
105 <#if vocabulario.getName() == "Eduki_Motak">
106 <#assign idTipoDocumento=vocabulario.getVocabularyId() >
107 </#if>
108 <#if vocabulario.getName() == "Euskalkia">
109 <#assign idVocabuDialecto=vocabulario.getVocabularyId() >
110 </#if>
111</#list>
112
113
114<!-- Propiedades de una categorias-->
115<#assign assetCategoryPropertyLocalServiceUtil = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService")>
116
117<#assign idioma = locale.toString()/>
118<#assign property_value=""/>
119<#assign urlVuelta=""/>
120<!--Tipo de documento-->
121<#assign hrefEM ="&filtros=Eduki_mota">
122<#list categoryList as catEdukiMota>
123 <#if catEdukiMota.getVocabularyId() == idTipoDocumento>
124 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catEdukiMota.getCategoryId())/>
125 <#list assetCategoryPropertyList as assetCategoryProperty>
126 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
127 <#if (assetCategoryKey == idioma)>
128 <#assign property_value=assetCategoryProperty.getValue()/>
129 </#if>
130 </#list>
131 <#assign hrefEM ="${hrefEM}&Eduki_mota=${catEdukiMota.getCategoryId()}">
132
133
134 </#if>
135</#list>
136<#if hrefEM?has_content>
137 <#assign urlAux=hrefEM?substring(1)>
138 <#assign url2="&bsczmb=&id_structure_autor=16131006&filtros=Formatua&filtros=Helburu_didaktikoa&filtros=Ikasteredua&filtros=Bildumak&filtros=Aldizkaria&filtros=Baliabideak&ordenarPor=Pub.+data&bsctags=&bscAutor=" />
139 <#assign urlVuelta="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1576593315033&bscfilterby=&filtros=Maila&${urlAux}${url2}"/>
140 <#assign urlVueltaDoc="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1576593315033&bscfilterby=&filtros=Eduki_mota&Eduki_mota=20576121"/>
141
142
143</#if>
144<#if id?has_content>
145 <#if journalArticleLocalService??>
146
147 <#-- <#assign articleById = journalArticleLocalService.getArticle(getterUtil.getLong(groupId), id) /> -->
148 <#assign resourcePK =
149 journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(
150 groupId,
151 id
152 )
153/>
154
155<#assign articleById =
156 journalArticleLocalService.getLatestArticle(resourcePK)
157 />
158
159
160 <#assign document = saxReaderUtil.read(articleById.getContentByLocale(locale)) >
161
162
163
164 <#assign hrefCategorias ="&filtros=Maila">
165
166 <!-- Para saber si mostrar el bloque o no-->
167 <#assign mostrarBloqueNivel = "NO">
168 <#assign mostrarBloqueFormato = "NO">
169 <#assign mostrarBloqueObjDidacticos = "NO">
170 <#assign mostrarBloqueObjDidacticosBakarka = "NO">
171 <#assign mostrarBloqueObjDidacticosTaldeLana = "NO">
172 <#assign mostrarBloqueObjDidacticosJardunbikoa = "NO">
173 <#assign mostrarBloqueDialecto="NO"/>
174
175 <#list categoryList as category>
176 <#if category.getName() == "A1" || category.getName() == "A2" ||
177 category.getName() == "B1" || category.getName() == "B2" ||
178 category.getName() == "C1" || category.getName() == "C2">
179 <#assign mostrarBloqueNivel = "SI">
180 </#if>
181 <#if category.getName() == "Entzungaiak" || category.getName() == "Bideoak" || category.getName() == "Idatziak">
182 <#assign mostrarBloqueFormato = "SI">
183 </#if>
184 <#if category.getVocabularyId() == idVocabuOD>
185 <#assign mostrarBloqueObjDidacticos = "SI">
186 </#if>
187 <#if category.getVocabularyId() == idVocabuDialecto>
188 <#assign mostrarBloqueDialecto="SI"/>
189 </#if>
190 </#list>
191
192
193 <!-- DOKUTEKA -->
194 <div class="col-xs-12 col-md-12 col-lg-12 separacionTitulo sinMargenIzq row">
195 <h4 class="text-white p-2">${dokuteka}</h4>
196 </div>
197
198 <!--categorias nivel-->
199 <#if mostrarBloqueNivel == "SI">
200
201 <div class="col-xs-12 col-md-12 col-lg-12 separacionNivelesDokuteka sinMargenIzq row">
202
203 <div class="col-xs-2 col-md-2 col-lg-2">
204 <i class="fa fa-signal-D dokuteka" aria-hidden="true" title="${niveles}"></i>
205 </div>
206 <div class="col-xs-10 col-md-10 col-lg-10">
207 <#list categoryList as category>
208 <#if category.getName() == "A1" || category.getName() == "A2" ||
209 category.getName() == "B1" || category.getName() == "B2" ||
210 category.getName() == "C1" || category.getName() == "C2">
211 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1569830512685&filtros=Maila&Maila=${category.getCategoryId()}&ordenarPor=Pub.+data" class="${category.getName()}" title="${category.getName()}">${category.getName()}</a>
212 <#assign hrefCategorias ="${hrefCategorias}&Maila=${category.getCategoryId()}">
213 </#if>
214 </#list>
215 </div>
216 </div>
217
218
219 </#if>
220
221
222
223 <!--categorias formato -->
224 <#if mostrarBloqueFormato == "SI">
225 <div class="col-xs-12 col-md-12 col-lg-12 separacionCategoriasDokuteka sinMargenIzq row">
226 <div class="col-xs-2 col-md-2 col-lg-2">
227 <i class="fa fa-info-circle-D dokuteka" aria-hidden="true" title="${formatos}"></i>
228 </div>
229 <div class="col-xs-10 col-md-10 col-lg-10">
230 <#list categoryList as category>
231 <#if category.getName() == "Entzungaiak">
232 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(category.getCategoryId())/>
233 <#list assetCategoryPropertyList as assetCategoryProperty>
234 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
235 <#if (assetCategoryKey == idioma)>
236 <#assign property_value=assetCategoryProperty.getValue()/>
237 </#if>
238 </#list>
239 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1569830512685&filtros=Formato&Formato=${category.getCategoryId()}${hrefCategorias}${hrefEM}&ordenarPor=Pub.+data" class="fa fa-headphones-H" title="${property_value}"></a>
240 </#if>
241 <#if category.getName() == "Bideoak">
242 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(category.getCategoryId())/>
243 <#list assetCategoryPropertyList as assetCategoryProperty>
244 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
245 <#if (assetCategoryKey == idioma)>
246 <#assign property_value=assetCategoryProperty.getValue()/>
247 </#if>
248 </#list>
249 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1569830512685&filtros=Formato&Formato=${category.getCategoryId()}${hrefCategorias}${hrefEM}&ordenarPor=Pub.+data" class="fa fa-television-H" title="${property_value}"></a>
250 </#if>
251 <#if category.getName() == "Idatziak">
252 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(category.getCategoryId())/>
253 <#list assetCategoryPropertyList as assetCategoryProperty>
254 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
255 <#if (assetCategoryKey == idioma)>
256 <#assign property_value=assetCategoryProperty.getValue()/>
257 </#if>
258 </#list>
259 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1569830512685&filtros=Formato&Formato=${category.getCategoryId()}${hrefCategorias}${hrefEM}&ordenarPor=Pub.+data" class="fa fa-newspaper-o-H" title="${property_value}"></a>
260 </#if>
261 </#list>
262 </div>
263 </div>
264 </#if>
265
266 <!-- Fecha de visualización -->
267
268 <#if mostrarBloqueNivel == "NO" && mostrarBloqueFormato == "NO">
269 <div class="col-xs-12 col-md-12 col-lg-12 separacionNivelesDokuteka sinMargenIzq row">
270 <#else>
271 <div class="col-xs-12 col-md-12 col-lg-12 separacionFechaDokuteka sinMargenIzq row">
272 </#if>
273 <div class="col-xs-2 col-md-2 col-lg-2">
274 <i class="fa fa-clock-o-D dokuteka" aria-hidden="true" title="${calendario}"></i>
275 </div>
276 <div class="col-xs-10 col-md-10 col-lg-10">
277 <#if articleById??>
278 <#if articleById.getDisplayDate()??>
279<#assign date = articleById.getDisplayDate() >
280<#else>
281 <#assign date = articleById.getCreateDate() >
282</#if>
283<#if date??>
284 <#if locale=='es_ES'>
285 ${date?string["dd-MM-yyyy"]}
286 </#if>
287 <#if locale=='eu_ES'>
288 ${date?string["yyyy-MM-dd"]}
289 </#if>
290 <#if locale=='fr_FR'>
291 ${date?string["dd-MM-yyyy"]}
292 </#if>
293 <#if locale=='en_US'>
294 ${date?string["MM-dd-yyyy"]}
295 </#if>
296 </#if>
297 </#if>
298 </div>
299 </div>
300
301 <!--Fuente y Autor-->
302 <div id="embedded-articlenextevents-portlet" class="col-xs-12 col-md-12 col-lg-12 row separacionFuenteAutorDokuteka sinMargenIzq embebido">
303 <@liferay_portlet["runtime"] portletName="x61pRelaContWAR_WAR_x61pRelaContWARportlet" queryString="idArticulo=${id}&visualizacion=${parcial}"/>
304 </div>
305
306 <!-- Id article del contenido -->
307 <div class="col-xs-12 col-md-12 col-lg-12 separacionIdArticleDokuteka sinMargenIzq row">
308 <div class="col-xs-2 col-md-2 col-lg-2">
309 <i class="fa fa-key-D dokuteka" aria-hidden="true" title="${numero}"></i>
310 </div>
311 <div class="col-xs-10 col-md-10 col-lg-10">
312 ${id}
313 </div>
314 </div>
315
316
317 <!-- Objetivos didacticos-->
318 <#if mostrarBloqueObjDidacticos == "SI">
319 <div class="col-xs-12 col-md-12 col-lg-12 separacionObjDidacticosDokuteka sinMargenIzq row">
320 <div class="col-xs-2 col-md-2 col-lg-2">
321 <i class="fa fa-bullseye-D dokuteka" aria-hidden="true" title="${objDid}"></i>
322 </div>
323 <div class="col-xs-10 col-md-10 col-lg-10">
324 <ul class="sinPunto">
325 <#list categoryList as catOD>
326 <#if catOD.getVocabularyId() == idVocabuOD>
327 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catOD.getCategoryId())/>
328 <#list assetCategoryPropertyList as assetCategoryProperty>
329 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
330 <#if (assetCategoryKey == idioma)>
331 <#assign property_value=assetCategoryProperty.getValue()/>
332 </#if>
333 </#list>
334 <#if (property_value == "Bakarka" || property_value == "Tarea individual" || property_value == "Individual task" || property_value == "Tâche individuel")>
335 <#assign mostrarBloqueObjDidacticosBakarka = "SI">
336 <#elseif (property_value == "Talde-lana" || property_value == "Tarea colaborativa" || property_value == "Teamwork" || property_value == "Tâche collaborative")>
337 <#assign mostrarBloqueObjDidacticosTaldeLana = "SI">
338 <#elseif (property_value == "Jardun bikoa" || property_value == "Aprendizaje semipresencial" || property_value == "Blended learnig" || property_value == "Apprentissage semipresentiel")>
339 <#assign mostrarBloqueObjDidacticosJardunbikoa = "SI">
340 <#else>
341 <li>
342 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1554897302092&filtros=Formato&Formato=${catOD.getCategoryId()}${hrefCategorias}${hrefEM}&ordenarPor=Pub.+data" title="${property_value}">${property_value}</a>
343 </li>
344 </#if>
345 </#if>
346 </#list>
347 </ul>
348 </div>
349 </div>
350 </#if>
351 <!-- Objetivos didacticos Bakarka-->
352 <#if mostrarBloqueObjDidacticosBakarka == "SI">
353 <div class="col-xs-12 col-md-12 col-lg-12 separacionObjDidacticosDokuteka sinMargenIzq row">
354 <div class="col-xs-2 col-md-2 col-lg-2">
355 <i class="fa-bakarka-D" aria-hidden="true"></i>
356 </div>
357 <div class="col-xs-10 col-md-10 col-lg-10">
358 <ul class="sinPunto">
359 <#list categoryList as catOD>
360 <#if catOD.getVocabularyId() == idVocabuOD>
361 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catOD.getCategoryId())/>
362 <#list assetCategoryPropertyList as assetCategoryProperty>
363 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
364 <#if (assetCategoryKey == idioma)>
365 <#assign property_value=assetCategoryProperty.getValue()/>
366 </#if>
367 </#list>
368 <#if (property_value == "Bakarka" || property_value == "Tarea individual" || property_value == "Individual task" || property_value == "Tâche individuel")>
369 <li>
370 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1554897302092&filtros=Formato&Formato=${catOD.getCategoryId()}${hrefCategorias}${hrefEM}&ordenarPor=Pub.+data" title="${property_value}">${property_value}</a>
371 </li>
372 </#if>
373 </#if>
374 </#list>
375 </ul>
376 </div>
377 </div>
378 </#if>
379 <!-- Objetivos didacticos Talde-Lana-->
380 <#if mostrarBloqueObjDidacticosTaldeLana == "SI">
381 <div class="col-xs-12 col-md-12 col-lg-12 separacionObjDidacticosDokuteka sinMargenIzq row">
382 <div class="col-xs-2 col-md-2 col-lg-2">
383 <i class="fa-taldeLana-D" aria-hidden="true"></i>
384 </div>
385 <div class="col-xs-10 col-md-10 col-lg-10">
386 <ul class="sinPunto">
387 <#list categoryList as catOD>
388 <#if catOD.getVocabularyId() == idVocabuOD>
389 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catOD.getCategoryId())/>
390 <#list assetCategoryPropertyList as assetCategoryProperty>
391 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
392 <#if (assetCategoryKey == idioma)>
393 <#assign property_value=assetCategoryProperty.getValue()/>
394 </#if>
395 </#list>
396 <#if (property_value == "Talde-lana" || property_value == "Tarea colaborativa" || property_value == "Teamwork" || property_value == "Tâche collaborative")>
397 <li>
398 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1554897302092&filtros=Formato&Formato=${catOD.getCategoryId()}${hrefCategorias}${hrefEM}&ordenarPor=Pub.+data" title="${property_value}">${property_value}</a>
399 </li>
400 </#if>
401 </#if>
402 </#list>
403 </ul>
404 </div>
405 </div>
406 </#if>
407 <!-- Objetivos didacticos Jardunbikoa-->
408 <#if mostrarBloqueObjDidacticosJardunbikoa == "SI">
409 <div class="col-xs-12 col-md-12 col-lg-12 separacionObjDidacticosDokuteka sinMargenIzq row">
410 <div class="col-xs-2 col-md-2 col-lg-2">
411 <i class="fa-jardunbikoa-D" aria-hidden="true"></i>
412 </div>
413 <div class="col-xs-10 col-md-10 col-lg-10">
414 <ul class="sinPunto">
415 <#list categoryList as catOD>
416 <#if catOD.getVocabularyId() == idVocabuOD>
417 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catOD.getCategoryId())/>
418 <#list assetCategoryPropertyList as assetCategoryProperty>
419 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
420 <#if (assetCategoryKey == idioma)>
421 <#assign property_value=assetCategoryProperty.getValue()/>
422 </#if>
423 </#list>
424 <#if (property_value == "Jardun bikoa" || property_value == "Aprendizaje semipresencial" || property_value == "Blended learnig" || property_value == "Apprentissage semipresentiel")>
425 <li>
426 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1554897302092&filtros=Formato&Formato=${catOD.getCategoryId()}${hrefCategorias}${hrefEM}&ordenarPor=Pub.+data" title="${property_value}">${property_value}</a>
427 </li>
428 </#if>
429 </#if>
430 </#list>
431 </ul>
432 </div>
433 </div>
434 </#if>
435
436 <!-- Dialecto-->
437 <#if (mostrarBloqueDialecto == "SI")>
438 <div class="col-xs-12 col-md-12 col-lg-12 separacionDialectoDokuteka sinMargenIzq row">
439 <div class="col-xs-2 col-md-2 col-lg-2">
440 <i class="fa fa-file-o-D dokuteka" aria-hidden="true" title="${dialecto}"></i>
441 </div>
442 <div class="col-xs-10 col-md-10 col-lg-10">
443 <ul class="sinPunto">
444 <#list categoryList as catDialecto>
445 <#if catDialecto.getVocabularyId() == idVocabuDialecto>
446 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catDialecto.getCategoryId())/>
447 <#list assetCategoryPropertyList as assetCategoryProperty>
448 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
449 <#if (assetCategoryKey == idioma)>
450 <#assign property_value=assetCategoryProperty.getValue()/>
451 </#if>
452 </#list>
453 <li>
454 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1554897302092&Nivel=${catDialecto.getCategoryId()}&ordenarPor=Pub.+data" title="${property_value}">${property_value}</a>
455 </li>
456 </#if>
457 </#list>
458 </ul>
459 </div>
460 </div>
461 </#if>
462
463 <!--Duración -->
464 <#assign iraupena = document.valueOf("//dynamic-element[@name='iraupena']/dynamic-content/text()") />
465 <#if iraupena!=''>
466 <div class="col-xs-12 col-md-12 col-lg-12 separacionDuracionDokuteka sinMargenIzq row">
467 <div class="col-xs-2 col-md-2 col-lg-2">
468 <i class="fa fa-duracion-D dokuteka" aria-hidden="true" title="${duracion}"></i>
469 </div>
470 <div class="col-xs-10 col-md-10 col-lg-10">
471 ${iraupena}
472 </div>
473 </div>
474 </#if>
475 <!-- Incrementamos el valor de las visitas cada vez que se entra en el detalle-->
476 <#if artResourcePK !=0 >
477 <#assign assetEntryLocalServiceUtil = staticUtil['com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil']>
478 <#assign assetEntry = assetEntryLocalServiceUtil.getEntry("com.liferay.journal.model.JournalArticle", artResourcePK)>
479
480 <#assign assetEntryIncrementado =assetEntryLocalServiceUtil.incrementViewCounter(assetEntry.getUserId(), assetEntry)>
481
482 <!-- Numero de visitas pendiente de mirar Hegoa como sacarlo-->
483 <div class="col-xs-12 col-md-12 col-lg-12 separacionVisitasDokuteka sinMargenIzq row">
484 <div class="col-xs-2 col-md-2 col-lg-2">
485 <i class="fa fa-users-D dokuteka" aria-hidden="true" title="${numVisitas}"></i>
486 </div>
487 <div class="col-xs-10 col-md-10 col-lg-10">
488 <@liferay_portlet["runtime"] portletName="x61pViewCountWAR_WAR_x61pViewCountWARportlet" queryString="idArticulo=${id}"/>
489 </div>
490 </div>
491 <div class="hidden tipoFicha"><span class="urlVuelta"><a href="${urlVuelta}"> </a></span><span class="urlVueltaDoc"><a href="${urlVueltaDoc}"> </a></span></div>
492
493 </#if>
494
495 </#if>
496</#if>
497
498<script>
499
500if($("#embedded-articlenextevents-portlet.embebido ul li div.fuenteAutor").length){
501 $("#embedded-articlenextevents-portlet.embebido ul li div.fuenteAutor").parents("#embedded-articlenextevents-portlet").show();
502}
503</script>
