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 69, 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</style>
9
10
11<!--Ocultamos la fuente y el autor y por jquery lo visualizamos si existe el div fuenteAutor-->
12<#assign numero = "Zenbakia">
13<#assign objDid = "Helburu didaktikoak">
14<#assign numVisitas = "Bisita-kopurua">
15<#assign calendario = "Argitaratze-data">
16<#assign niveles = "Maila">
17<#assign formatos = "Formatua">
18<#assign fuente = "Iturria">
19<#assign dialecto = "Euskalkia">
20<#assign duracion = "Iraupena">
21<#assign parcial = "parcial">
22<#assign dokuteka = "Dokuteka">
23
24<#if locale=='en_US'>
25 <#assign numero = "Number">
26 <#assign objDid = "Educational objectives">
27 <#assign numVisitas = "Number of visits">
28 <#assign calendario = "Publication date">
29 <#assign niveles = "Level">
30 <#assign formatos = "Format">
31 <#assign fuente = "Source">
32 <#assign dialecto = "Basque dialect">
33 <#assign duracion = "Duration">
34 <#assign dokuteka = "Document library">
35</#if>
36<#if locale=='fr_FR'>
37 <#assign numero = "Numéro">
38 <#assign objDid = "Objectifs didactiques">
39 <#assign numVisitas = "Nombre de visites">
40 <#assign calendario = "Date de publication">
41 <#assign niveles = "Niveau">
42 <#assign formatos = "Format">
43 <#assign fuente = "Source">
44 <#assign dialecto = "Dialecte de la langue basque">
45 <#assign duracion = "Durée">
46 <#assign dokuteka = "Docuthèque">
47
48</#if>
49<#if locale=='es_ES'>
50 <#assign numero = "Número">
51 <#assign objDid = "Objetivos didácticos">
52 <#assign numVisitas = "Número de visitas">
53 <#assign calendario = "Fecha de publicación">
54 <#assign niveles = "Nivel">
55 <#assign formatos = "Formato">
56 <#assign fuente = "Fuente">
57 <#assign dialecto = "Dialecto del euskera">
58 <#assign duracion = "Duración">
59 <#assign dokuteka = "Docuteca">
60</#if>
61
62
63<#assign id = paramUtil.getString(request, "articleId")>
64
65<#-- <#assign id = .vars["reserved-article-id"].data> -->
66<#-- <#assign id = getterUtil.getString(.vars["reserved-article-id"].data)> -->
67
68<#if !id?has_content>
69 <#assign serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()>
70 <#assign themeDisplay = serviceContext.getThemeDisplay() />
71 <#assign layout=themeDisplay.getLayout()>
72 <#assign querystring=layout.getTypeSettingsProperty("query-string")>
73 <#assign hayArticleId= querystring?index_of("articleId") >
74
75 <#if hayArticleId?has_content >
76 <#assign indiceInicio=(querystring?index_of("articleId"))+10>
77
78 <#assign indiceFinal=querystring.length()>
79
80 <#assign id=querystring?substring(indiceInicio,indiceFinal) >
81 </#if>
82</#if>
83<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
84<#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.journal.service.JournalArticleResourceLocalServiceUtil"]>
85<#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetCategoryLocalServiceUtil"]>
86<#assign artResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, id)/>
87<#assign categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.journal.model.JournalArticle",artResourcePK) >
88<#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"]>
89
90<!--Lista de vocabularios-->
91<#assign idVocabuOD=0>
92<#assign idVocabuDialecto=0>
93<#assign idTipoDocumento=0>
94
95<#assign assetVocabularyLocalServiceUtil = staticUtil["com.liferay.asset.kernel.service.AssetVocabularyLocalServiceUtil"]>
96<#assign vocabularioList=assetVocabularyLocalServiceUtil.getGroupVocabularies(groupId) >
97<#list vocabularioList as vocabulario>
98 <#if vocabulario.getName() == "Objetivos Didácticos">
99 <#assign idVocabuOD=vocabulario.getVocabularyId() >
100 </#if>
101 <#if vocabulario.getName() == "Eduki_Motak">
102 <#assign idTipoDocumento=vocabulario.getVocabularyId() >
103 </#if>
104 <#if vocabulario.getName() == "Euskalkia">
105 <#assign idVocabuDialecto=vocabulario.getVocabularyId() >
106 </#if>
107</#list>
108
109
110<!-- Propiedades de una categorias-->
111<#assign assetCategoryPropertyLocalServiceUtil = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService")>
112
113<#assign idioma = locale.toString()/>
114<#assign property_value=""/>
115<#assign urlVuelta=""/>
116<!--Tipo de documento-->
117<#assign hrefEM ="&filtros=Eduki_mota">
118<#list categoryList as catEdukiMota>
119 <#if catEdukiMota.getVocabularyId() == idTipoDocumento>
120 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catEdukiMota.getCategoryId())/>
121 <#list assetCategoryPropertyList as assetCategoryProperty>
122 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
123 <#if (assetCategoryKey == idioma)>
124 <#assign property_value=assetCategoryProperty.getValue()/>
125 </#if>
126 </#list>
127 <#assign hrefEM ="${hrefEM}&Eduki_mota=${catEdukiMota.getCategoryId()}">
128
129
130 </#if>
131</#list>
132<#if hrefEM?has_content>
133 <#assign urlAux=hrefEM?substring(1)>
134 <#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=" />
135 <#assign urlVuelta="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1576593315033&bscfilterby=&filtros=Maila&${urlAux}${url2}"/>
136 <#assign urlVueltaDoc="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1576593315033&bscfilterby=&filtros=Eduki_mota&Eduki_mota=20576121"/>
137
138
139</#if>
140<#if id?has_content>
141 <#if journalArticleLocalService??>
142
143 <#-- <#assign articleById = journalArticleLocalService.getArticle(getterUtil.getLong(groupId), id) /> -->
144 <#assign resourcePK =
145 journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(
146 groupId,
147 id
148 )
149/>
150
151<#assign articleById =
152 journalArticleLocalService.getLatestArticle(resourcePK)
153 />
154
155
156 <#assign document = saxReaderUtil.read(articleById.getContentByLocale(locale)) >
157
158
159
160 <#assign hrefCategorias ="&filtros=Maila">
161
162 <!-- Para saber si mostrar el bloque o no-->
163 <#assign mostrarBloqueNivel = "NO">
164 <#assign mostrarBloqueFormato = "NO">
165 <#assign mostrarBloqueObjDidacticos = "NO">
166 <#assign mostrarBloqueObjDidacticosBakarka = "NO">
167 <#assign mostrarBloqueObjDidacticosTaldeLana = "NO">
168 <#assign mostrarBloqueObjDidacticosJardunbikoa = "NO">
169 <#assign mostrarBloqueDialecto="NO"/>
170
171 <#list categoryList as category>
172 <#if category.getName() == "A1" || category.getName() == "A2" ||
173 category.getName() == "B1" || category.getName() == "B2" ||
174 category.getName() == "C1" || category.getName() == "C2">
175 <#assign mostrarBloqueNivel = "SI">
176 </#if>
177 <#if category.getName() == "Entzungaiak" || category.getName() == "Bideoak" || category.getName() == "Idatziak">
178 <#assign mostrarBloqueFormato = "SI">
179 </#if>
180 <#if category.getVocabularyId() == idVocabuOD>
181 <#assign mostrarBloqueObjDidacticos = "SI">
182 </#if>
183 <#if category.getVocabularyId() == idVocabuDialecto>
184 <#assign mostrarBloqueDialecto="SI"/>
185 </#if>
186 </#list>
187
188
189 <!-- DOKUTEKA -->
190 <div class="col-xs-12 col-md-12 col-lg-12 separacionTitulo sinMargenIzq row">
191 <h4 class="text-white p-2">${dokuteka}</h4>
192 </div>
193
194 <!--categorias nivel-->
195 <#if mostrarBloqueNivel == "SI">
196
197 <div class="col-xs-12 col-md-12 col-lg-12 separacionNivelesDokuteka sinMargenIzq row">
198
199 <div class="col-xs-2 col-md-2 col-lg-2">
200 <i class="fa fa-signal-D dokuteka" aria-hidden="true" title="${niveles}"></i>
201 </div>
202 <div class="col-xs-10 col-md-10 col-lg-10">
203 <#list categoryList as category>
204 <#if category.getName() == "A1" || category.getName() == "A2" ||
205 category.getName() == "B1" || category.getName() == "B2" ||
206 category.getName() == "C1" || category.getName() == "C2">
207 <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>
208 <#assign hrefCategorias ="${hrefCategorias}&Maila=${category.getCategoryId()}">
209 </#if>
210 </#list>
211 </div>
212 </div>
213
214
215 </#if>
216
217
218
219 <!--categorias formato -->
220 <#if mostrarBloqueFormato == "SI">
221 <div class="col-xs-12 col-md-12 col-lg-12 separacionCategoriasDokuteka sinMargenIzq row">
222 <div class="col-xs-2 col-md-2 col-lg-2">
223 <i class="fa fa-info-circle-D dokuteka" aria-hidden="true" title="${formatos}"></i>
224 </div>
225 <div class="col-xs-10 col-md-10 col-lg-10">
226 <#list categoryList as category>
227 <#if category.getName() == "Entzungaiak">
228 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(category.getCategoryId())/>
229 <#list assetCategoryPropertyList as assetCategoryProperty>
230 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
231 <#if (assetCategoryKey == idioma)>
232 <#assign property_value=assetCategoryProperty.getValue()/>
233 </#if>
234 </#list>
235 <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>
236 </#if>
237 <#if category.getName() == "Bideoak">
238 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(category.getCategoryId())/>
239 <#list assetCategoryPropertyList as assetCategoryProperty>
240 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
241 <#if (assetCategoryKey == idioma)>
242 <#assign property_value=assetCategoryProperty.getValue()/>
243 </#if>
244 </#list>
245 <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>
246 </#if>
247 <#if category.getName() == "Idatziak">
248 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(category.getCategoryId())/>
249 <#list assetCategoryPropertyList as assetCategoryProperty>
250 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
251 <#if (assetCategoryKey == idioma)>
252 <#assign property_value=assetCategoryProperty.getValue()/>
253 </#if>
254 </#list>
255 <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>
256 </#if>
257 </#list>
258 </div>
259 </div>
260 </#if>
261
262 <!-- Fecha de visualización -->
263
264 <#if mostrarBloqueNivel == "NO" && mostrarBloqueFormato == "NO">
265 <div class="col-xs-12 col-md-12 col-lg-12 separacionNivelesDokuteka sinMargenIzq row">
266 <#else>
267 <div class="col-xs-12 col-md-12 col-lg-12 separacionFechaDokuteka sinMargenIzq row">
268 </#if>
269 <div class="col-xs-2 col-md-2 col-lg-2">
270 <i class="fa fa-clock-o-D dokuteka" aria-hidden="true" title="${calendario}"></i>
271 </div>
272 <div class="col-xs-10 col-md-10 col-lg-10">
273 <#if articleById??>
274 <#if articleById.getDisplayDate()??>
275<#assign date = articleById.getDisplayDate() >
276<#else>
277 <#assign date = articleById.getCreateDate() >
278</#if>
279<#if date??>
280 <#if locale=='es_ES'>
281 ${date?string["dd-MM-yyyy"]}
282 </#if>
283 <#if locale=='eu_ES'>
284 ${date?string["yyyy-MM-dd"]}
285 </#if>
286 <#if locale=='fr_FR'>
287 ${date?string["dd-MM-yyyy"]}
288 </#if>
289 <#if locale=='en_US'>
290 ${date?string["MM-dd-yyyy"]}
291 </#if>
292 </#if>
293 </#if>
294 </div>
295 </div>
296
297 <!--Fuente y Autor-->
298 <div id="embedded-articlenextevents-portlet" class="col-xs-12 col-md-12 col-lg-12 row separacionFuenteAutorDokuteka sinMargenIzq embebido">
299 <@liferay_portlet["runtime"] portletName="x61pRelaContWAR_WAR_x61pRelaContWARportlet" queryString="idArticulo=${id}&visualizacion=${parcial}"/>
300 </div>
301
302 <!-- Id article del contenido -->
303 <div class="col-xs-12 col-md-12 col-lg-12 separacionIdArticleDokuteka sinMargenIzq row">
304 <div class="col-xs-2 col-md-2 col-lg-2">
305 <i class="fa fa-key-D dokuteka" aria-hidden="true" title="${numero}"></i>
306 </div>
307 <div class="col-xs-10 col-md-10 col-lg-10">
308 ${id}
309 </div>
310 </div>
311
312
313 <!-- Objetivos didacticos-->
314 <#if mostrarBloqueObjDidacticos == "SI">
315 <div class="col-xs-12 col-md-12 col-lg-12 separacionObjDidacticosDokuteka sinMargenIzq row">
316 <div class="col-xs-2 col-md-2 col-lg-2">
317 <i class="fa fa-bullseye-D dokuteka" aria-hidden="true" title="${objDid}"></i>
318 </div>
319 <div class="col-xs-10 col-md-10 col-lg-10">
320 <ul class="sinPunto">
321 <#list categoryList as catOD>
322 <#if catOD.getVocabularyId() == idVocabuOD>
323 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catOD.getCategoryId())/>
324 <#list assetCategoryPropertyList as assetCategoryProperty>
325 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
326 <#if (assetCategoryKey == idioma)>
327 <#assign property_value=assetCategoryProperty.getValue()/>
328 </#if>
329 </#list>
330 <#if (property_value == "Bakarka" || property_value == "Tarea individual" || property_value == "Individual task" || property_value == "Tâche individuel")>
331 <#assign mostrarBloqueObjDidacticosBakarka = "SI">
332 <#elseif (property_value == "Talde-lana" || property_value == "Tarea colaborativa" || property_value == "Teamwork" || property_value == "Tâche collaborative")>
333 <#assign mostrarBloqueObjDidacticosTaldeLana = "SI">
334 <#elseif (property_value == "Jardun bikoa" || property_value == "Aprendizaje semipresencial" || property_value == "Blended learnig" || property_value == "Apprentissage semipresentiel")>
335 <#assign mostrarBloqueObjDidacticosJardunbikoa = "SI">
336 <#else>
337 <li>
338 <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>
339 </li>
340 </#if>
341 </#if>
342 </#list>
343 </ul>
344 </div>
345 </div>
346 </#if>
347 <!-- Objetivos didacticos Bakarka-->
348 <#if mostrarBloqueObjDidacticosBakarka == "SI">
349 <div class="col-xs-12 col-md-12 col-lg-12 separacionObjDidacticosDokuteka sinMargenIzq row">
350 <div class="col-xs-2 col-md-2 col-lg-2">
351 <i class="fa-bakarka-D" aria-hidden="true"></i>
352 </div>
353 <div class="col-xs-10 col-md-10 col-lg-10">
354 <ul class="sinPunto">
355 <#list categoryList as catOD>
356 <#if catOD.getVocabularyId() == idVocabuOD>
357 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catOD.getCategoryId())/>
358 <#list assetCategoryPropertyList as assetCategoryProperty>
359 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
360 <#if (assetCategoryKey == idioma)>
361 <#assign property_value=assetCategoryProperty.getValue()/>
362 </#if>
363 </#list>
364 <#if (property_value == "Bakarka" || property_value == "Tarea individual" || property_value == "Individual task" || property_value == "Tâche individuel")>
365 <li>
366 <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>
367 </li>
368 </#if>
369 </#if>
370 </#list>
371 </ul>
372 </div>
373 </div>
374 </#if>
375 <!-- Objetivos didacticos Talde-Lana-->
376 <#if mostrarBloqueObjDidacticosTaldeLana == "SI">
377 <div class="col-xs-12 col-md-12 col-lg-12 separacionObjDidacticosDokuteka sinMargenIzq row">
378 <div class="col-xs-2 col-md-2 col-lg-2">
379 <i class="fa-taldeLana-D" aria-hidden="true"></i>
380 </div>
381 <div class="col-xs-10 col-md-10 col-lg-10">
382 <ul class="sinPunto">
383 <#list categoryList as catOD>
384 <#if catOD.getVocabularyId() == idVocabuOD>
385 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catOD.getCategoryId())/>
386 <#list assetCategoryPropertyList as assetCategoryProperty>
387 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
388 <#if (assetCategoryKey == idioma)>
389 <#assign property_value=assetCategoryProperty.getValue()/>
390 </#if>
391 </#list>
392 <#if (property_value == "Talde-lana" || property_value == "Tarea colaborativa" || property_value == "Teamwork" || property_value == "Tâche collaborative")>
393 <li>
394 <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>
395 </li>
396 </#if>
397 </#if>
398 </#list>
399 </ul>
400 </div>
401 </div>
402 </#if>
403 <!-- Objetivos didacticos Jardunbikoa-->
404 <#if mostrarBloqueObjDidacticosJardunbikoa == "SI">
405 <div class="col-xs-12 col-md-12 col-lg-12 separacionObjDidacticosDokuteka sinMargenIzq row">
406 <div class="col-xs-2 col-md-2 col-lg-2">
407 <i class="fa-jardunbikoa-D" aria-hidden="true"></i>
408 </div>
409 <div class="col-xs-10 col-md-10 col-lg-10">
410 <ul class="sinPunto">
411 <#list categoryList as catOD>
412 <#if catOD.getVocabularyId() == idVocabuOD>
413 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catOD.getCategoryId())/>
414 <#list assetCategoryPropertyList as assetCategoryProperty>
415 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
416 <#if (assetCategoryKey == idioma)>
417 <#assign property_value=assetCategoryProperty.getValue()/>
418 </#if>
419 </#list>
420 <#if (property_value == "Jardun bikoa" || property_value == "Aprendizaje semipresencial" || property_value == "Blended learnig" || property_value == "Apprentissage semipresentiel")>
421 <li>
422 <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>
423 </li>
424 </#if>
425 </#if>
426 </#list>
427 </ul>
428 </div>
429 </div>
430 </#if>
431
432 <!-- Dialecto-->
433 <#if (mostrarBloqueDialecto == "SI")>
434 <div class="col-xs-12 col-md-12 col-lg-12 separacionDialectoDokuteka sinMargenIzq row">
435 <div class="col-xs-2 col-md-2 col-lg-2">
436 <i class="fa fa-file-o-D dokuteka" aria-hidden="true" title="${dialecto}"></i>
437 </div>
438 <div class="col-xs-10 col-md-10 col-lg-10">
439 <ul class="sinPunto">
440 <#list categoryList as catDialecto>
441 <#if catDialecto.getVocabularyId() == idVocabuDialecto>
442 <#assign assetCategoryPropertyList =assetCategoryPropertyLocalServiceUtil.getCategoryProperties(catDialecto.getCategoryId())/>
443 <#list assetCategoryPropertyList as assetCategoryProperty>
444 <#assign assetCategoryKey = assetCategoryProperty.getKey()/>
445 <#if (assetCategoryKey == idioma)>
446 <#assign property_value=assetCategoryProperty.getValue()/>
447 </#if>
448 </#list>
449 <li>
450 <a href="/bilatzaile-orokorra?_x61pbuscadorGeneralWAR_WAR_x61pbuscadorGeneralWARportlet_formDate=1554897302092&Nivel=${catDialecto.getCategoryId()}&ordenarPor=Pub.+data" title="${property_value}">${property_value}</a>
451 </li>
452 </#if>
453 </#list>
454 </ul>
455 </div>
456 </div>
457 </#if>
458
459 <!--Duración -->
460 <#assign iraupena = document.valueOf("//dynamic-element[@name='iraupena']/dynamic-content/text()") />
461 <#if iraupena!=''>
462 <div class="col-xs-12 col-md-12 col-lg-12 separacionDuracionDokuteka sinMargenIzq row">
463 <div class="col-xs-2 col-md-2 col-lg-2">
464 <i class="fa fa-duracion-D dokuteka" aria-hidden="true" title="${duracion}"></i>
465 </div>
466 <div class="col-xs-10 col-md-10 col-lg-10">
467 ${iraupena}
468 </div>
469 </div>
470 </#if>
471 <!-- Incrementamos el valor de las visitas cada vez que se entra en el detalle-->
472 <#if artResourcePK !=0 >
473 <#assign assetEntryLocalServiceUtil = staticUtil['com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil']>
474 <#assign assetEntry = assetEntryLocalServiceUtil.getEntry("com.liferay.journal.model.JournalArticle", artResourcePK)>
475
476 <#assign assetEntryIncrementado =assetEntryLocalServiceUtil.incrementViewCounter(assetEntry.getUserId(), assetEntry)>
477
478 <!-- Numero de visitas pendiente de mirar Hegoa como sacarlo-->
479 <div class="col-xs-12 col-md-12 col-lg-12 separacionVisitasDokuteka sinMargenIzq row">
480 <div class="col-xs-2 col-md-2 col-lg-2">
481 <i class="fa fa-users-D dokuteka" aria-hidden="true" title="${numVisitas}"></i>
482 </div>
483 <div class="col-xs-10 col-md-10 col-lg-10">
484 <@liferay_portlet["runtime"] portletName="x61pViewCountWAR_WAR_x61pViewCountWARportlet" queryString="idArticulo=${id}"/>
485 </div>
486 </div>
487 <div class="hidden tipoFicha"><span class="urlVuelta"><a href="${urlVuelta}"> </a></span><span class="urlVueltaDoc"><a href="${urlVueltaDoc}"> </a></span></div>
488
489 </#if>
490
491 </#if>
492</#if>
493
494<script>
495
496if($("#embedded-articlenextevents-portlet.embebido ul li div.fuenteAutor").length){
497 $("#embedded-articlenextevents-portlet.embebido ul li div.fuenteAutor").parents("#embedded-articlenextevents-portlet").show();
498}
499</script>
