Se ha producido un error al procesar la plantilla.
Java method "com.educaixa.common.impl.EduCaixaCommonImpl.getDocumentMetadataInJSON(String, com.liferay.portal.kernel.theme.ThemeDisplay)" threw an exception when invoked on com.educaixa.common.impl.EduCaixaCommonImpl object "com.educaixa.common.impl.EduCaixaCommonImpl@249a8992"; see cause exception in the Java stack trace.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign siteMeta = UtilsService.getDo...  [in template "10154#10192#RECURSO-IMAGEN" at line 98, column 9]
----
1<#-- get services --> 
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
3<#assign UtilsService = serviceLocator.findService("com.educaixa.common.service.EduCaixaCommonService")/> 
4<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
5<#assign dLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") /> 
6<#assign valoracionesDisplay = serviceLocator.findService("com.educaixa.services.service.RatingStatsLocalService")/> 
7<#assign LiteralsToolsServiceUtil = serviceLocator.findService("com.aqua.literals.util.LiteralsToolsService")/> 
8<#assign language = themeDisplay.getLocale()/> 
9<#assign groupId = themeDisplay.getScopeGroupId()/> 
10<#assign restultsLiteral = LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.common.link.resultados") /> 
11<#assign recurso = LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso") /> 
12<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
13<#assign httpServletRequest = serviceContext.getRequest() /> 
14<#assign UserBookmarkLocalService = serviceLocator.findService("com.educaixa.services.service.UserBookmarkLocalService") /> 
15 
16<#-- get the content categories --> 
17<#assign article = journalArticleLocalService.getArticle(getterUtil.getLong(scopeGroupId), .vars['reserved-article-id'].data) /> 
18<#assign asset = assetEntryLocalService.getEntry("com.liferay.journal.model.JournalArticle", article.resourcePrimKey) /> 
19 
20<#-- get the results URL and valoration value--> 
21<#assign results_url = "https://${request.serverName}/${locale.getLanguage()}${restultsLiteral}?q=" /> 
22<#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.imagen") /> 
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<#assign language = themeDisplay.getLocale()/> 
69<#assign nivel_educativo = []> 
70<#assign area_conocimiento = []> 
71<#assign competencias = []> 
72<#assign objectius = []> 
73 
74<#list asset.getCategories() as cur_category> 
75    <#if cur_category.vocabularyId == 10515> 
76        <#assign nivel_educativo = nivel_educativo + [cur_category.getTitle(language)]> 
77    <#elseif cur_category.vocabularyId == 6> 
78        <#assign area_conocimiento = area_conocimiento + [cur_category.getTitle(language)]> 
79    <#elseif cur_category.vocabularyId == 401> 
80        <#assign competencias = competencias + [cur_category.getTitle(language)]> 
81    <#elseif cur_category.vocabularyId == 43203> 
82        <#assign objectius = objectius + [cur_category.getTitle(language)]> 
83    </#if> 
84</#list> 
85 
86<#assign thesaurusCategories = UtilsService.getThesaurusCategories(asset) /> 
87<#assign tagsCategories = UtilsService.getTagsCategories(asset) /> 
88<#assign categories = thesaurusCategories + tagsCategories /> 
89 
90<#-- Login --> 
91<#assign is_signed_in = themeDisplay.isSignedIn()/> 
92<#assign plid = portalUtil.getPlidFromPortletId(themeDisplay.getScopeGroupId(), "EducaixaMyeducaixaLogin") /> 
93<#assign loginURL = portletURLFactory.create(httpServletRequest, "EducaixaMyeducaixaLogin", plid, "RENDER_PHASE") /> 
94${loginURL.setParameter("mvcPath", "/login_modal.jsp")} 
95${loginURL.setWindowState("POP_UP")} 
96 
97<#if docprincipal.getData()??> 
98	<#assign siteMeta = UtilsService.getDocumentMetadataInJSON(docprincipal.getData(), themeDisplay) /> 
99</#if> 
100 
101<#-- Banner section--> 
102<div class="container vertical image-view"> 
103    <div class="row"> 
104        <img src="${imageSrc}" alt="${altImage}" width="900px" height="458px" class="video-player"> 
105        <div class="box-img col-lg square"> 
106            <p class="box-img-pre-rec" >${recurso} | ${resourceType} </p> 
107             <#if titulo?has_content> 
108                <h1 class="box-img-title-rec">${titleEscaped}</h1> 
109            </#if> 
110            <#if subtitulo?has_content> 
111                <p class="box-img-sub-title-rec">${subtituloEscaped}</p> 
112            </#if> 
113            <p class="box-img-categ-rec"> 
114                <#if categories?has_content> 
115					<#list categories as category> 
116						<#-- redirects to the results page with the tag--> 
117						<a onClick="updateTagsCicks('${category.getTitle(locale)}');" href="${results_url}${category.getTitle(locale)}" >${category.getTitle(locale)}</a> 
118					</#list> 
119				</#if> 
120            </p> 
121            <hr> 
122            <button class="card-button-purple color-caixa-purple background-white" id="myBtn">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.common.link.ver")}</button> 
123            <div class="card-actions flex"> 
124				<div class="statistics"> 
125					<svg viewBox="0 0 36 36" class="circular-chart orange"> 
126						<path class="circle-bg" d="M18 2.0845 
127							a 15.9155 15.9155 0 0 1 0 31.831 
128							a 15.9155 15.9155 0 0 1 0 -31.831"></path> 
129						<path class="circle" stroke-dasharray="${valoracionesDisplayAverage*20}, 100" d="M18 2.0845 
130							a 15.9155 15.9155 0 0 1 0 31.831 
131							a 15.9155 15.9155 0 0 1 0 -31.831"></path> 
132						<text x="18" y="22" class="percentage">${valoracionesDisplayAverage}</text> 
133					</svg> 
134				</div> 
135				<div class="share"> 
136                    <button id="share"></button> 
137                    <div class="addthis_inline_share_toolbox tooltip"></div> 
138                </div> 
139				<div class="bookmark"> 
140					<#if is_signed_in> 
141						<#if isUserBookmark> 
142							<button id="bookmark" onClick="updateUserBookmark(${journalArticleId},false);" data-articleid="${journalArticleId}" class="bookmark bookmarked"></button>  
143						<#else> 
144							<button id="bookmark" onClick="updateUserBookmark(${journalArticleId},true);" data-articleid="${journalArticleId}" class="bookmark"></button> 
145						</#if> 
146					<#else> 
147						<button id="bookmark" onClick="event.stopPropagation();openPopup('${loginURL}','','500', '650')"></button> 
148					</#if> 
149                </div> 
150			</div> 
151            <div id="myModal" class="modal-resource"> 
152                <div class="modal-content-resource"> 
153                    <span class="close">&times;</span> 
154                    <div id="modalImages" class="carousel slide" data-ride="carousel" style="width: 100%;"> 
155                        <!-- Indicators --> 
156                        <ul class="carousel-indicators">  
157                            <li data-target="#modalImages" data-slide-to="0" class="active"></li>   
158                            <#if otraimagenficha.getSiblings()?has_content>                
159                                <#list otraimagenficha.getSiblings() as cur_otraimagenficha> 
160                                    <li data-target="#modalImages" data-slide-to="${cur_otraimagenficha?index}"></li> 
161                                </#list> 
162                            </#if> 
163                        </ul>                 
164                        <div class="carousel-inner"> 
165                            <div class="item carousel-item active"> 
166                                <img src="${imageSrc}" alt="${altImage}" style="width:100%;"> 
167                            </div> 
168                            <#if otraimagenficha.getSiblings()?has_content> 
169                                <#list otraimagenficha.getSiblings() as cur_otraimagenficha> 
170                                    <#if cur_otraimagenficha?has_content> 
171                                        <div class="item carousel-item"> 
172                                            <img src="${cur_otraimagenficha.getData()}" alt="${altImage}" style="width:100%;"> 
173                                        </div> 
174                                    </#if> 
175                                </#list> 
176                            </#if> 
177                        </div> 
178                        <!-- Left and right controls --> 
179                        <a class="carousel-control-prev" href="#modalImages" role="button" data-slide="prev"> 
180                            <span class="carousel-control-prev-icon" aria-hidden="true"></span> 
181                            <span class="sr-only">Previous</span> 
182                        </a> 
183                        <a class="carousel-control-next" href="#modalImages" role="button" data-slide="next"> 
184                            <span class="carousel-control-next-icon" aria-hidden="true"></span> 
185                            <span class="sr-only">Next</span> 
186                        </a> 
187                    </div> 
188                </div> 
189            </div>     
190        </div> 
191    </div>     
192</div> 
193 
194<#-- Categories section--> 
195<div class="container vertical info-view"> 
196    <div class="row"> 
197        <#if nivel_educativo?size != 0 > 
198        	<div class="col-lg col-xs-6 col-sm"> 
199                <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.nivel.educativo")}</h2><br> 
200                <ul> 
201                    <#list nivel_educativo as item> 
202                        <li class="marked">${item}</li> 
203                    </#list> 
204                </ul> 
205	        </div> 
206        </#if> 
207        <#if area_conocimiento?size != 0 > 
208        	<div class="col-lg col-xs-6 col-sm"> 
209                <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.area.conocimiento")}</h2><br> 
210                <ul> 
211                    <#list area_conocimiento as item> 
212                        <li class="marked">${item}</li> 
213                    </#list> 
214                </ul> 
215	        </div> 
216        </#if> 
217         <#if area_conocimiento?size != 0 > 
218     		<div class="col-lg col-xs-6 col-sm"> 
219                <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.competencias")}</h2><br> 
220                <ul> 
221                    <#list competencias as item> 
222                        <li class="marked">${item}</li> 
223                    </#list> 
224                </ul> 
225	        </div> 
226        </#if> 
227    </div>     
228    <hr class="line-12">  
229</div> 
230 
231<#-- Content section--> 
232<div class="container vertical info-content"> 
233    <div class="row"> 
234        <div class="col-lg-7 col-xs-12"> 
235            <#if introduccion?has_content> 
236                <h2 class="obj-rec-title"> 
237                    <b style="color: #7B2FA1;">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.descripcion")}</b> 
238                </h2> 
239                <p class="description-text-rec"> 
240                    ${introduccion.getData()} 
241                </p> 
242            </#if> 
243            <#if objetivosdidacticos?has_content> 
244                <h2 class="obj-rec-title"> 
245                    <b>${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.objetivos")}</b> 
246                </h2> 
247                <div class="row" style="margin-top: 4%;"> 
248                    ${objetivosdidacticos.getData()} 
249                </div> 
250            </#if> 
251            <#if competenceGeneralDescription?? && competenceGeneralDescription.getData()?? && competenceGeneralDescription.getData() != ""> 
252                <h2 class="obj-rec-title"> 
253                    <b>${competenceGeneralDescription.getData()}</b> 
254                </h2> 
255                <div class="compet-rec-dropdown"> 
256                    <#--  <li class="compet-rec-sub accordion">${competenceGeneralDescription.competenceTitle.getData()}</li>--> 
257                    <div class="compet-rec-sub-info panel">${competenceGeneralDescription.competenceTitle.competenceDesc.getData()}</div> 
258                </div> 
259            </#if> 
260            <#if otrainfodidactica.getData()?has_content && otrainfodidactica.getData()??> 
261                <h3 class="obj-rec-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.sobre")}</h3> 
262                <p class="desc-rec">${otrainfodidactica.getData()}</p> 
263            </#if> 
264        </div> 
265        <#-- Register content --> 
266		<#if journalArticleLocalService.fetchArticle(groupId, "CAPTACION_RECURSO") ??> 
267		<#assign register = journalArticleLocalService.getArticle(groupId, "CAPTACION_RECURSO")/>  
268			<#if register?? && register != ""> 
269	            <#assign registerContent = journalArticleLocalService.getArticleContent(register, register.DDMTemplateKey, "VIEW", themeDisplay.getLocale(), themeDisplay) />  
270	        </#if> 
271	        <#assign registerContent = journalArticleLocalService.getArticleContent(register, register.DDMTemplateKey, "VIEW", themeDisplay.getLocale(), themeDisplay) />  
272		  	<div class= "captacion-ficha"> 
273		  		${registerContent} 
274	  		</div> 
275	    </#if> 
276    </div> 
277</div> 
278 
279<script> 
280$( document ).ready(function() { 
281    initAddThis(); 
282}); 
283</script> 
0.0
Aún no hay ningún comentario. Sé el primero en enviar comentarios.

Valoración media global sobre 5

Basada en 0 valoraciones