Web edukia bistaratu Web edukia bistaratu
Errorea gertatu da txantiloia prozesatzerakoan.
Error on line 35, column 9 in 20902#20940#20680190
journalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), id) is undefined.
It cannot be assigned to articleById
1<#assign url = request.attributes['CURRENT_URL']> 
2<#assign id = httpUtil.getParameter(url, "articleId", false)> 
3<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
4<#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"] /> 
5 
6 
7<#assign journalArticleResourceLocalServiceUtil = staticUtil["com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil"]> 
8<#assign articleResourcePK = journalArticleResourceLocalServiceUtil.getArticleResourcePrimKey(groupId, id)/> 
9<#assign assetCategoryLocalServiceUtil = staticUtil["com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil"]> 
10<#assign categoryList=assetCategoryLocalServiceUtil.getCategories("com.liferay.portlet.journal.model.JournalArticle",articleResourcePK) > 
11 
12 
13<#assign katalogoanikusi = 'Katalogoan ikusi'> 
14<#assign etiquetaAutor = 'Egilea'> 
15<#assign tipo = 'Mota'> 
16 
17<#if locale=='es_ES'> 
18	<#assign katalogoanikusi = 'Ver catálogo'> 
19	<#assign etiquetaAutor = 'Autor'> 
20	<#assign tipo = 'Tipo'> 
21</#if> 
22<#if locale=='fr_FR'> 
23	<#assign etiquetaAutor = 'Auteor'> 
24	<#assign tipo = 'Type'> 
25</#if> 
26<#if locale=='en_US'> 
27	<#assign etiquetaAutor = 'Author'> 
28	<#assign tipo = 'Type'> 
29</#if> 
30 
31 
32<#if id?has_content> 
33    <#if journalArticleLocalService??> 
34 
35        <#assign articleById = journalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), id) /> 
36         
37        <#assign document = saxReaderUtil.read(articleById.getContentByLocale(locale)) > 
38                     
39        <#assign izenburua = document.valueOf("//dynamic-element[@name='izenburua']/dynamic-content/text()") /> 
40        <#assign laburpena = document.valueOf("//dynamic-element[@name='laburpena']/dynamic-content/text()") /> 
41        <#assign deskribapena = document.valueOf("//dynamic-element[@name='deskribapena']/dynamic-content/text()") /> 
42        <#assign irudia = document.valueOf("//dynamic-element[@name='irudia']/dynamic-content/text()") /> 
43		<#assign url = document.valueOf("//dynamic-element[@name='url']/dynamic-content/text()") /> 
44		<#assign autor = document.valueOf("//dynamic-element[@name='egilea']/dynamic-content/text()") /> 
45		<#assign id_categoria_novedad_Biblioteca = 6979869 /> 
46  
47		<div> 
48			<div class="col-md-3 col-xs-12"> 
49                <img alt="irudia" src="${irudia}" /> 
50				<#if url!= ""> 
51					<div style="margin-bottom: 1em;margin-top: 1em;"> 
52						<a class="botoiaKatalogo" href="${url}" target="_blank">${katalogoanikusi}</a> 
53					</div> 
54				</#if> 
55				 
56				<div> 
57					<span class="etiquetaAutor">${tipo}: </span> 
58					<#list categoryList as category> 
59						<#if category.getName() == "Eduki didaktikoa" || category.getName() == "Euskal biblioteka" || category.getName() == "Hizkuntzalaritza aplikatua"> 
60							<a href="/web/biblioteca/liburu-berriak?_x61pnovedadesBiblioteca_WAR_x61pnovedadesBibliotecaportlet_formDate=1557296511639&tipoArticulo=${id_categoria_novedad_Biblioteca}&categoriasCH=${category.getCategoryId()}">${category.getName()}</a> 
61						</#if> 
62					</#list> 
63				</div> 
64				<#if autor!= ""> 
65					<div><span class="etiquetaAutor">${etiquetaAutor}: </span>${autor}</div> 
66				</#if> 
67				<br> 
68				<!-- AddThis Button BEGIN --> 
69 
70				<div class="addthis_toolbox addthis_default_style "> 
71					<a class="addthis_button_preferred_1"></a> 
72					<a class="addthis_button_preferred_2"></a> 
73					<a class="addthis_button_preferred_3"></a> 
74					<a class="addthis_counter addthis_bubble_style"></a> 
75				</div> 
76				<script type="text/javascript">var addthis_config = {"data_track_clickback":true};</script> 
77				<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4db687e767ecaf5c"></script> 
78 
79				<!-- AddThis Button END --> 
80            </div> 
81			<div class="col-md-9 col-xs-12"> 
82				<h3>${izenburua}</h3> 
83				<p class="justificado">${laburpena}</p> 
84			</div> 
85		</div> 
86 
87    </#if> 
88</#if> 

 

 

 

Visit HABE's profile on Pinterest.