Cervell humà focus atenció
S'ha produït un error mentre es processava la plantilla.
No compatible overloaded variation was found; wrong number of arguments. The FTL type of the argument values were: extended_hash+string (com.liferay.journal.model.impl.JournalArticleImpl wrapped into f.e.b.StringModel), string (wrapper: f.t.SimpleScalar), string (wrapper: f.t.SimpleScalar), extended_hash+string (Locale wrapped into f.e.b.StringModel), extended_hash+string (com.liferay.portal.kernel.theme.ThemeDisplay wrapped into f.e.b.StringModel). The matching overload was searched among these members: com.sun.proxy.$Proxy1251.getArticleContent(com.liferay.journal.model.JournalArticle, String, String, String, com.liferay.portal.kernel.portlet.PortletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay), com.sun.proxy.$Proxy1251.getArticleContent(long, String, double, String, String, String, com.liferay.portal.kernel.portlet.PortletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay), com.sun.proxy.$Proxy1251.getArticleContent(long, String, String, String, String, com.liferay.portal.kernel.portlet.PortletRequestModel, com.liferay.portal.kernel.theme.ThemeDisplay) ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign registerContent = journalArti... [in template "76121110924137#32361#RECURSO-MICROSITE" at line 360, column 21] ----
1<#-- get services -->
2<#assign LiteralsToolsServiceUtil = serviceLocator.findService("com.aqua.literals.util.LiteralsToolsService")/>
3<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
4<#assign UtilsService = serviceLocator.findService("com.educaixa.common.service.EduCaixaCommonService")/>
5<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
6<#assign dLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") />
7<#assign valoracionesDisplay = serviceLocator.findService("com.educaixa.services.service.RatingStatsLocalService")/>
8<#assign LiteralsToolsServiceUtil = serviceLocator.findService("com.aqua.literals.util.LiteralsToolsService")/>
9<#assign language = themeDisplay.getLocale()/>
10<#assign groupId = themeDisplay.getScopeGroupId()/>
11<#assign restultsLiteral = LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.common.link.resultados") />
12<#assign recurso = LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso") />
13<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
14<#assign httpServletRequest = serviceContext.getRequest() />
15<#assign UserBookmarkLocalService = serviceLocator.findService("com.educaixa.services.service.UserBookmarkLocalService") />
16
17<#-- get the content categories -->
18<#assign article = journalArticleLocalService.getArticle(getterUtil.getLong(scopeGroupId), .vars['reserved-article-id'].data) />
19<#assign asset = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
20
21<#-- get the results URL and valoration value-->
22<#assign results_url = "https://${request.serverName}/${locale.getLanguage()}${restultsLiteral}?q=" /><#assign valoracionesDisplayAverage = 0/>
23<#if valoracionesDisplay.fetchByResourcePK(scopeGroupId,themeDisplay.getCompanyId(),article.getResourcePrimKey()) ??>
24 <#assign valoracionesDisplayValue = valoracionesDisplay.findByResourcePK(scopeGroupId,themeDisplay.getCompanyId(),article.getResourcePrimKey()) />
25 <#assign valoracionesDisplayAverage = valoracionesDisplayValue.getAverageGlobalScore() />
26</#if>
27
28<#assign journalArticleId = .vars['reserved-article-id'].data/>
29<#assign userId =themeDisplay.getUserId()/>
30<#assign isUserBookmark = UserBookmarkLocalService.isUserBookmark(themeDisplay.getCompanyId(),userId,journalArticleId,groupId)/>
31
32<#-- Resource type -->
33<#assign resourceType = LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.microsite") />
34<#assign imgType = "/o/educaixa-theme/images/interaccion-icon.png">
35
36<#-- Escape title text -->
37<#assign titleEscaped = "" />
38<#if titulo.getData()??>
39 <#assign titleEscaped = titulo.getData()?replace('<p>','','r')/>
40 <#assign titleEscaped = titleEscaped?replace('</p>','','r')/>
41 <#assign titleEscaped = titleEscaped?replace('<div>','','r')/>
42 <#assign titleEscaped = titleEscaped?replace('</div>','','r')/>
43 <#assign titleEscaped = titleEscaped?replace('<h1>','','r')/>
44 <#assign titleEscaped = titleEscaped?replace('</h1>','','r')/>
45</#if>
46
47<#assign subtituloEscaped = "" />
48<#if subtitulo.getData()??>
49 <#assign subtituloEscaped = subtitulo.getData() />
50 <#assign subtituloEscaped = subtituloEscaped?replace('<p>','','r')/>
51 <#assign subtituloEscaped = subtituloEscaped?replace('</p>','','r')/>
52</#if>
53
54<#-- get image alt -->
55<#if image_alt?? && image_alt.getData()?? && image_alt.getData() != "">
56 <#assign altImage = image_alt.getData() />
57<#else>
58 <#assign altImage = titleEscaped />
59</#if>
60
61<#-- get image banner -->
62<#if imagenficha ?? && imagenficha.getData() ?? && imagenficha.getData() != "">
63 <#assign imageSrc = imagenficha.getData() />
64<#else>
65 <#assign imageSrc = "/o/educaixa-theme/images/blured-lights-recursos.png" />
66</#if>
67
68<#-- get the content categories -->
69<#assign article = journalArticleLocalService.getArticle(getterUtil.getLong(scopeGroupId), .vars['reserved-article-id'].data) />
70<#assign asset = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) />
71
72<#assign language = themeDisplay.getLocale()/>
73<#assign nivel_educativo = []>
74<#assign area_conocimiento = []>
75<#assign competencias = []>
76<#assign objectius = []>
77
78<#list asset.getCategories() as cur_category>
79 <#if cur_category.vocabularyId == 10515>
80 <#assign nivel_educativo = nivel_educativo + [cur_category.getTitle(language)]>
81 <#elseif cur_category.vocabularyId == 6>
82 <#assign area_conocimiento = area_conocimiento + [cur_category.getTitle(language)]>
83 <#elseif cur_category.vocabularyId == 401>
84 <#assign competencias = competencias + [cur_category.getTitle(language)]>
85 <#elseif cur_category.vocabularyId == 43203>
86 <#assign objectius = objectius + [cur_category.getTitle(language)]>
87 </#if>
88</#list>
89
90<#assign thesaurusCategories = UtilsService.getThesaurusCategories(asset) />
91<#assign tagsCategories = UtilsService.getTagsCategories(asset) />
92<#assign categories = thesaurusCategories + tagsCategories />
93
94<#-- Login -->
95<#assign is_signed_in = themeDisplay.isSignedIn()/>
96<#assign plid = portalUtil.getPlidFromPortletId(themeDisplay.getScopeGroupId(), "EducaixaMyeducaixaLogin") />
97<#assign loginURL = portletURLFactory.create(httpServletRequest, "EducaixaMyeducaixaLogin", plid, "RENDER_PHASE") />
98${loginURL.setParameter("mvcPath", "/login_modal.jsp")}
99${loginURL.setWindowState("POP_UP")}
100
101<#if docprincipal.getData()??>
102 <#assign siteMeta = UtilsService.getDocumentMetadataInJSON(docprincipal.getData(), themeDisplay) />
103</#if>
104
105<#-- Banner section-->
106<div class="container vertical image-view">
107 <div class="row">
108 <img src="${imageSrc}" alt="${altImage}" width="900px" height="458px" class="video-player">
109 <div class="box-img col-lg square">
110 <#if resourceType != "">
111 <p class="box-img-pre-rec" >${recurso} - ${resourceType} </p>
112 </#if>
113 <#if titulo?has_content>
114 <h1 class="box-img-title-rec">${titleEscaped}</h1>
115 </#if>
116 <#if subtitulo?has_content>
117 <p class="box-img-sub-title-rec">${subtituloEscaped}</p>
118 </#if>
119 <p class="box-img-categ-rec">
120 <#if categories?has_content>
121 <#list categories as category>
122 <#-- redirects to the results page with the tag-->
123 <a onClick="updateTagsCicks('${category.getTitle(locale)}');" href="${results_url}${category.getTitle(locale)}" >${category.getTitle(locale)}</a>
124 </#list>
125 </#if>
126 </p>
127 <hr>
128 <#if siteMeta?? && siteMeta.get(0)?? && siteMeta.get(0).url?? && siteMeta.get(0).url != "">
129 <button class="card-button-purple color-caixa-purple background-white" id="myBtn" onclick="window.open('${siteMeta.get(0).url}', '_blank'); return false;">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.common.link.ver")}</button>
130 </#if>
131 <div class="card-actions flex">
132 <div class="statistics">
133 <svg viewBox="0 0 36 36" class="circular-chart orange"><line x1="18" y1="-5" x2="18" y2="5" stroke="black" stroke-width="2"></line>
134 <path class="circle-bg" d="M18 2.0845
135 a 15.9155 15.9155 0 0 1 0 31.831
136 a 15.9155 15.9155 0 0 1 0 -31.831"></path>
137 <path class="circle" stroke-dasharray="${valoracionesDisplayAverage*20}, 100" d="M18 2.0845
138 a 15.9155 15.9155 0 0 1 0 31.831
139 a 15.9155 15.9155 0 0 1 0 -31.831"></path>
140 <text x="18" y="22" class="percentage">${valoracionesDisplayAverage}</text>
141 </svg>
142 </div>
143 <div class="share">
144 <button id="share"></button>
145 <div class="a2a_kit a2a_kit_size_32 a2a_default_style tooltip" data-a2a-title="${titleEscaped}" data-a2a-icon-color="#009AD8">
146 <a class="a2a_button_facebook"></a>
147 <a class="a2a_button_x"></a>
148 <a class="a2a_button_whatsapp"></a>
149 <a class="a2a_button_email"></a>
150 </div>
151 </div>
152 <div class="bookmark">
153 <#if is_signed_in>
154 <#if isUserBookmark>
155 <button id="bookmark" onClick="updateUserBookmark(${journalArticleId},false);" data-articleid="${journalArticleId}" class="bookmark bookmarked"></button>
156 <#else>
157 <button id="bookmark" onClick="updateUserBookmark(${journalArticleId},true);" data-articleid="${journalArticleId}" class="bookmark"></button>
158 </#if>
159 <#else>
160 <button id="bookmark" onClick="event.stopPropagation();openPopup('${loginURL}','','500', '650')"></button>
161 </#if>
162 </div>
163 </div>
164 </div>
165 </div>
166</div>
167
168<#-- Categories section-->
169<div class="container vertical info-view">
170 <div class="row">
171 <#if nivel_educativo?size != 0 >
172 <div class="col-lg col-xs-6 col-sm">
173 <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.nivel.educativo")}</h2>
174 <ul>
175 <#list nivel_educativo as item>
176 <li class="marked">${item}</li>
177 </#list>
178 </ul>
179 </div>
180 </#if>
181
182 <#if area_conocimiento?size != 0 >
183 <div class="col-lg col-xs-6 col-sm">
184 <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.area.conocimiento")}</h2>
185 <ul>
186 <#list area_conocimiento as item>
187 <li class="marked">${item}</li>
188 </#list>
189 </ul>
190 </div>
191 </#if>
192 <#if area_conocimiento?size != 0 >
193 <div class="col-lg col-xs-6 col-sm">
194 <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.competencias")}</h2>
195 <ul>
196 <#list competencias as item>
197 <li class="marked">${item}</li>
198 </#list>
199 </ul>
200 </div>
201 </#if>
202 <#if siteMeta?? && siteMeta.get(0) ?? && siteMeta.get(0).idioma?? && siteMeta.get(0).idioma != "">
203 <div class="col-lg col-xs-6 col-sm">
204 <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.idioma")}</h2>
205 <ul>
206 <#assign idioma = siteMeta.get(0).idioma?keep_after('"')?keep_before('"') />
207 <li class="marked">${idioma} </li>
208 </ul>
209 </div>
210 </#if>
211 <#if siteMeta?? && siteMeta.get(0) ?? && siteMeta.get(0).ano?? && siteMeta.get(0).ano != "">
212 <div class="col-lg col-xs-6 col-sm">
213 <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.ano")}</h2>
214 <ul>
215 <#assign year = siteMeta.get(0).ano />
216 <li class="marked">${year} </li>
217 </ul>
218 </div>
219 </#if>
220 </div>
221 <hr class="line-12">
222</div>
223
224<#-- Content section-->
225<div class="container vertical info-content">
226 <div class="row">
227 <div class="col-lg-7 col-xs-12">
228 <#if introduccion?has_content>
229 <h2 class="obj-rec-title">
230 <b style="color: #7B2FA1;">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.descripcion")}</b>
231 </h2>
232 <p class="description-text-rec">
233 ${introduccion.getData()}
234 </p>
235 </#if>
236 <#if objetivosdidacticos?? && objetivosdidacticos.getData()?? && objetivosdidacticos.getData() != "">
237 <h2 class="obj-rec-title"><b>${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.objetivos")}</b></h2>
238 <div class="description-text-rec" style="margin-top: 4%;">
239 ${objetivosdidacticos.getData()}
240 </div>
241 <#elseif objetivosText?? && objetivosText.getData()?has_content>
242 <h2 class="obj-rec-title">
243 <b>${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.objetivos")}</b>
244 </h2>
245 <div class="row">
246 <#list objetivosText.getSiblings() as cur_objetivosText>
247 <#if cur_objetivosText.getData()?has_content && cur_objetivosText.getData()??>
248 <div class="col-md-6 mt-3">
249 <div class="objetivo"><h4>#${cur_objetivosText?index + 1}</h4></div>
250 <div >${cur_objetivosText.getData()}</div>
251 </div>
252 </#if>
253 </#list>
254 </div>
255 </#if>
256 <#if competenceGeneralDescription?? && competenceGeneralDescription.getData()?? && competenceGeneralDescription.getData() != "">
257 <h2 class="obj-rec-title">
258 <b>${competenceGeneralDescription.getData()}</b>
259 </h2>
260 <div class="compet-rec-dropdown">
261 <#--
262 Por ahora no está el campo relleno. HAbilitar cuando se solicite
263 <li class="compet-rec-sub accordion">${competenceGeneralDescription.competenceTitle.getData()}</li>-->
264 <div class="compet-rec-sub-info panel">${competenceGeneralDescription.competenceTitle.competenceDesc.getData()}</div>
265 </div>
266 </#if>
267 <#assign existDownload = false />
268 <#if materialrelacionado.getData()?has_content || linkTxt.getSiblings()?has_content || materialrelacionado.titulomaterial.getSiblings()?has_content >
269 <div class="row">
270 <h2 class="obj-rec-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.materials.and.downloads")}</h2>
271 <#if materialesTexto.getData()?has_content>
272 <div>
273 ${materialesTexto.getData()}
274 </div>
275 </#if>
276 <#if linkTxt.internalLink.getData()?has_content>
277 <#list linkTxt.getSiblings() as linkTxt>
278 <ul>
279 <li class="resource-lis">
280 <#if linkTxt.internalLink.getData()?has_content && is_signed_in>
281 <a href="${linkTxt.internalLink.getData()}">
282 <#elseif linkTxt.externalLink.getData()?has_content && is_signed_in>
283 <a href="${linkTxt.externalLink.getData()}" target="_blank">
284 <#else>
285 <a onClick="openPopup('${loginURL}','','500', '650')">
286 </#if>
287 <span>${linkTxt.getData()}</span>
288 </a>
289 <br>
290 <#assign existDownload = true />
291 </li>
292 </ul>
293 </#list>
294 </#if>
295 <#assign materialDescargable = false />
296 <#if materialrelacionado.getSiblings()?has_content>
297 <ul>
298 <#list materialrelacionado.getSiblings() as material>
299 <#if material.getData()?has_content>
300 <#assign existDownload = true />
301 <#assign materialDescargable = true />
302 <#assign file = dLFileEntryLocalService.getFileEntryByUuidAndGroupId(material.getData()?keep_after_last("/")?keep_before("?"),groupId) />
303 <#if file?? && file != "">
304 <li class="resource-lis">
305 <#if is_signed_in>
306 <#if material.getData()?contains("?t")>
307 <#assign materialUrl = material.getData()[0..(material.getData()?last_index_of("/") - 1)]/>
308 <#else>
309 <#assign materialUrl = material.getData()[0..material.getData()?length]/>
310 </#if>
311 <a href="${material.getData()}" target="_blank" onClick="addGTMEvent('contenido', 'descarga recursos', '${materialUrl}')">
312 <#else>
313 <a onClick="openPopup('${loginURL}','','500', '650')">
314 </#if>
315 <span>${material.titulomaterial.getData()}</span>
316 <span> (${file.getMimeType()?keep_after_last("/")?upper_case} ${file.getSize()[0..(file.getSize()?length - 4)]}Kb)</span>
317 </a>
318 <br>
319 </li>
320 </#if>
321 </#if>
322 </#list>
323 </ul>
324 </#if>
325 </div>
326 <#if descargable.getData()?has_content && materialDescargable>
327 <div class = "row">
328 <#if is_signed_in>
329 <#if descargable.getData()?contains("?t")>
330 <#assign descargableUrl = descargable.getData()[0..(descargable.getData()?last_index_of("/")- 1)]/>
331 <#else>
332 <#assign descargableUrl = descargable.getData()[0..descargable.getData()?length]/>
333 </#if>
334 <p class="center"><a href="${descargable.getData()}" class="link-rec" onClick="addGTMEvent('contenido', 'descarga recursos', '${descargableUrl}')">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.download.all")}</a></p>
335 <#else>
336 <p class="center"><a href="#" onClick="openPopup('${loginURL}','','500', '650')" class="link-rec">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.download.all")}</a></p>
337 </#if>
338 <#assign existDownload = true />
339 </div>
340 </#if>
341 <#if !existDownload>
342 <div>
343 <span>${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.download.nocontent")}</span>
344 </div>
345 </#if>
346 </#if>
347 <#if casosuso.getData()?has_content>
348 <h2 class="obj-rec-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.example.use")}</h2>
349 <p class="desc-rec">${casosuso.getData()}</p>
350 </#if>
351 <#if otrainfodidactica.getData()?has_content>
352 <h2 class="obj-rec-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.other.didactic.info")?upper_case}</h2>
353 <p class="desc-rec">${otrainfodidactica.getData()}</p>
354 </#if>
355 </div>
356 <#-- Register content -->
357 <#if journalArticleLocalService.fetchArticle(groupId, "CAPTACION_RECURSO") ??>
358 <#assign register = journalArticleLocalService.getArticle(groupId, "CAPTACION_RECURSO")/>
359 <#if register?? && register != "">
360 <#assign registerContent = journalArticleLocalService.getArticleContent(register, register.DDMTemplateKey, "VIEW", themeDisplay.getLocale(), themeDisplay) />
361 </#if>
362 <#assign registerContent = journalArticleLocalService.getArticleContent(register, register.DDMTemplateKey, "VIEW", themeDisplay.getLocale(), themeDisplay) />
363 <div class= "captacion-ficha">
364 ${registerContent}
365 </div>
366 </#if>
367 </div>
368</div>
369<style>
370.objetivo{
371 color: #7B2FA1;
372}
373.contenido-dcha-item > span {
374 width: 100%;
375 height: 1px;
376 display: inline-block;
377}
378.asset-full-content.clearfix.mb-5.default-asset-publisher.no-title > .align-items-center.d-flex.mb-2 {
379 max-width: 1140px;
380 margin: 0 auto;
381 margin-bottom: 0px;
382 margin-top:20px;
383}
384
385p.component-title.h4 span.header-back-to > a.taglib-icon::after {
386 content: "${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.atras")}";
387 color:#009AD8;
388}
389
390
391.asset-full-content.clearfix.mb-5.default-asset-publisher.no-title > .align-items-center.d-flex.mb-2 .lexicon-icon.lexicon-icon-angle-left {
392 fill: #009AD8;
393 width: 15px;
394 height: 15px;
395 margin-right: 10px;
396}
397.container.vertical.image-view.ficha-evidencias .box-img.col-lg.square {
398 box-shadow: 1px 1px 8px #d0d0d0;
399}
400</style>
401<script>
402$( document ).ready(function() {
403 initAddThis();
404 $("span.header-back-to a").attr('onClick','');
405 $("span.header-back-to a").attr("href","/es/landing-recursos");
406 <#if language=='ca_ES'>
407 $("span.header-back-to a").attr("href","/ca/landing-recursos");
408 </#if>
409});
410</script>