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@40615da8"; 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-INFOGRAFIA" 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 
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.infografia") /> 
34<#assign imgType = "/o/educaixa-theme/images/pildora-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            <#if resourceType != ""> 
107				<p class="box-img-pre-rec" >${recurso} | ${resourceType} </p> 
108            </#if> 
109            <#if titulo?has_content> 
110                <h1 class="box-img-title-rec">${titleEscaped}</h1> 
111            </#if> 
112            <#if subtitulo?has_content> 
113                <p class="box-img-sub-title-rec">${subtituloEscaped}</p> 
114            </#if> 
115            <p class="box-img-categ-rec"> 
116                <#if categories?has_content> 
117                    <#list categories as category> 
118                        <#-- redirects to the results page with the tag--> 
119						<a onClick="updateTagsCicks('${category.getTitle(locale)}');" href="${results_url}${category.getTitle(locale)}" >${category.getTitle(locale)}</a> 
120                    </#list> 
121                </#if> 
122            </p> 
123            <hr> 
124            <button class="card-button-purple color-caixa-purple background-white" id="myBtn">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.common.link.ver")}</button> 
125            <div class="card-actions flex"> 
126                <div class="statistics"> 
127                    <svg viewBox="0 0 36 36" class="circular-chart orange"> 
128                        <path class="circle-bg" d="M18 2.0845 
129                            a 15.9155 15.9155 0 0 1 0 31.831 
130                            a 15.9155 15.9155 0 0 1 0 -31.831"></path> 
131                        <path class="circle" stroke-dasharray="${valoracionesDisplayAverage*20}, 100" d="M18 2.0845 
132                            a 15.9155 15.9155 0 0 1 0 31.831 
133                            a 15.9155 15.9155 0 0 1 0 -31.831"></path> 
134                        <text x="18" y="22" class="percentage">${valoracionesDisplayAverage}</text> 
135                    </svg> 
136                </div> 
137                <div class="share"> 
138                    <button id="share"></button> 
139                    <div class="addthis_inline_share_toolbox tooltip"></div> 
140                </div> 
141                <div class="bookmark"> 
142					<#if is_signed_in> 
143						<#if isUserBookmark> 
144							<button id="bookmark" onClick="updateUserBookmark(${journalArticleId},false);" data-articleid="${journalArticleId}" class="bookmark bookmarked"></button>  
145						<#else> 
146							<button id="bookmark" onClick="updateUserBookmark(${journalArticleId},true);" data-articleid="${journalArticleId}" class="bookmark"></button> 
147						</#if> 
148					<#else> 
149						<button id="bookmark" onClick="event.stopPropagation();openPopup('${loginURL}','','500', '650')"></button> 
150					</#if> 
151                </div> 
152            </div> 
153            <div id="myModal" class="modal-resource"> 
154                <div class="modal-content-resource"> 
155                    <span class="close">&times;</span> 
156                     <#if siteMeta?? && siteMeta.get(0)?? && siteMeta.get(0).url?? && siteMeta.get(0).url != ""> 
157                        <div class="" onclick="javascript:window.open('${siteMeta.get(0).url}', '_blank')"> 
158                            <div class="wrapper-recurso-microsite recurso-item-image" > 
159                                <#if imagenficha.getData()?has_content> 
160                                    <img src="${imageSrc}" alt="${altImage}">  
161                                </#if> 
162                            </div> 
163                            <div class="wrapper-recurso-redirect uppercase"><span>RECURSO</span></div> 
164                        </div> 
165                    <#else> 
166                        <img src="${docprincipal.getData()}" alt="${altImage}">  
167                    </#if> 
168                </div> 
169            </div>     
170        </div> 
171    </div> 
172</div> 
173<div class="container vertical info-view"> 
174    <div class="row"> 
175        <#if nivel_educativo?size != 0 > 
176        	<div class="col-lg col-xs-6 col-sm"> 
177                <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.nivel.educativo")}</h2><br> 
178                <ul> 
179                    <#list nivel_educativo as item> 
180                        <li class="marked">${item}</li> 
181                    </#list> 
182                </ul> 
183	        </div> 
184        </#if> 
185        <#if area_conocimiento?size != 0 > 
186        	<div class="col-lg col-xs-6 col-sm"> 
187                <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.area.conocimiento")}</h2><br> 
188                <ul> 
189                    <#list area_conocimiento as item> 
190                        <li class="marked">${item}</li> 
191                    </#list> 
192                </ul> 
193	        </div> 
194        </#if> 
195        <#if area_conocimiento?size != 0 > 
196        	<div class="col-lg col-xs-6 col-sm"> 
197                <h2 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.competencias")}</h2><br> 
198                <ul> 
199                    <#list competencias as item> 
200                        <li class="marked">${item}</li> 
201                    </#list> 
202                </ul> 
203	        </div> 
204        </#if> 
205    	<#if siteMeta?? && siteMeta.get(0)?? && siteMeta.get(0).idioma?? && siteMeta.get(0).idioma != ""> 
206    		<div class="col-lg col-xs-6 col-sm"> 
207                <h3 class="purple-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.ficha.idioma")} </h3><br> 
208                <ul> 
209                    <#assign idioma = siteMeta.get(0).idioma?keep_after('"')?keep_before('"') /> 
210                    <li class="marked">${idioma} </li> 
211                </ul> 
212	        </div> 
213        </#if>       
214    </div> 
215    <hr class="line-12">  
216</div> 
217 
218<#-- Content section--> 
219<div class="container vertical info-content"> 
220    <div class="row"> 
221        <div class="col-lg-7 col-xs-12"> 
222            <#if introduccion?has_content> 
223                <h2 class="obj-rec-title"> 
224                    <b style="color: #7B2FA1;">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.descripcion")}</b> 
225                </h2> 
226                <p class="description-text-rec"> 
227                    ${introduccion.getData()} 
228                </p> 
229            </#if> 
230            <#if objetivosdidacticos?has_content> 
231                <h2 class="obj-rec-title"> 
232                    <b>${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.objetivos")}</b> 
233                </h2> 
234                <div class="row" style="margin-top: 4%;"> 
235                    ${objetivosdidacticos.getData()} 
236                </div> 
237            </#if> 
238            <#if competenceGeneralDescription.getData()?has_content && competenceGeneralDescription.getData()??> 
239		        <h2 class="obj-rec-title"> 
240                    <b>${competenceGeneralDescription.getData()}</b> 
241                </h2> 
242                <div class="compet-rec-dropdown"> 
243                    <#-- 
244                    Por ahora no está el campo relleno. HAbilitar cuando se solicite   
245                    <li class="compet-rec-sub accordion">${competenceGeneralDescription.competenceTitle.getData()}</li>--> 
246                    <div class="compet-rec-sub-info panel">${competenceGeneralDescription.competenceTitle.competenceDesc.getData()}</div> 
247                </div> 
248            </#if> 
249            <#if otrainfodidactica.getData()?? && otrainfodidactica.getData() != ""> 
250                <h2 class="obj-rec-title">${LiteralsToolsServiceUtil.getLiteral(groupId, language, "com.educaixa.seccion.recurso.sobre")}</h2> 
251                <p class="desc-rec">${otrainfodidactica.getData()}</p> 
252            </#if> 
253            <#if materialrelacionado.getSiblings()?has_content && materialrelacionado.getData()?has_content> 
254                <h2 class="compet-rec">Descargar material relacionado</h2> 
255                <#list materialrelacionado.getSiblings() as fileText> 
256                    <#assign file = dLFileEntryLocalService.getFileEntryByUuidAndGroupId(fileText.getData()?keep_after_last("/")?keep_before("?"),groupId) /> 
257                    <#if file?? && file != ""> 
258	                    <li class="resource-lis"> 
259	                        <#if is_signed_in> 
260	                        	<#if fileText.getData()?contains("?t")> 
261										<#assign materialUrl = fileText.getData()[0..(fileText.getData()?last_index_of("/") - 1)]/> 
262                                	<#else> 
263										<#assign materialUrl = fileText.getData()[0..fileText.getData()?length]/> 
264									</#if> 
265	                            <a href="${fileText.getData()}" target="_blank" onClick="addGTMEvent('contenido', 'descarga recursos', '${materialUrl}')" > 
266	                        <#else> 
267	                            <a onClick="openPopup('${loginURL}','','500', '650')"> 
268	                        </#if> 
269		                        <span>${file.title} </span> 
270		                        <span> (${file.getMimeType()?keep_after_last("/")?upper_case} ${file.getSize()[0..(file.getSize()?length - 4)]}Kb) </span> 
271		                        </a> 
272	                    </li> 
273                    </#if> 
274                </#list> 
275            </#if> 
276        </div> 
277        <#-- Register content --> 
278		<#if journalArticleLocalService.fetchArticle(groupId, "CAPTACION_RECURSO") ??> 
279		<#assign register = journalArticleLocalService.getArticle(groupId, "CAPTACION_RECURSO")/>  
280			<#if register?? && register != ""> 
281	            <#assign registerContent = journalArticleLocalService.getArticleContent(register, register.DDMTemplateKey, "VIEW", themeDisplay.getLocale(), themeDisplay) />  
282	        </#if> 
283	        <#assign registerContent = journalArticleLocalService.getArticleContent(register, register.DDMTemplateKey, "VIEW", themeDisplay.getLocale(), themeDisplay) />  
284		  	<div class= "captacion-ficha"> 
285		  		${registerContent} 
286	  		</div> 
287	    </#if> 
288    </div> 
289</div> 
290 
291<script> 
292$( document ).ready(function() { 
293    initAddThis(); 
294}); 
295</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