An error occurred while processing the template.
Invocation of method 'getArticle' in  class com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil threw exception com.liferay.portlet.journal.NoSuchArticleException at 20252DOKUMENTUEN_FITXA_TEMPLATE[line 14, column 67]
1#if ($request.lifecycle == "RENDER_PHASE") 
2	## articleId 
3	#set ($articleId = $request.get("parameters").get("articleId")) 
4	#set ($articleId = "$!articleId") 
5	#if ($articleId == "") 
6		#set($url = $request.attributes.CURRENT_URL) 
7		#set($articleId = $httpUtil.getParameter($url, "articleId", false)) 
8		#set ($articleId = "$!articleId") 
9		#set ($articleId = $decoder.decode($articleId, "UTF-8")) 
10	#end 
11	#if ($articleId != "") 
12		#set ($templategroupId = $getterUtil.getLong("10138")) 
13		#set ($JournalArticleLocalServiceUtil = $portal.getClass().forName("com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil").newInstance()) 
14		#set ($jarticle = $JournalArticleLocalServiceUtil.getArticle($templategroupId, $articleId)) 
15		 
16		## formatoak 
17		#set( $kategori_ikurrak_font = {'101228' : '<i class="fa fa-newspaper-o"></i>'}) ## Idatziak 
18		#set( $temp = $kategori_ikurrak_font.put('100857', '<i class="fa fa-headphones"></i>')) ## Entzungaiak 
19		#set( $temp = $kategori_ikurrak_font.put('100936', '<i class="fa fa-television"></i>')) ## Bideoak 
20 
21		## Helburu didaktikoak 
22		#set( $temp = $kategori_ikurrak_font.put("102976", '<i class="fa fa-comments-o"></i>')) ## Mintzamena 
23		#set( $temp = $kategori_ikurrak_font.put("223854", '<i class="fa fa-pencil-square-o"></i>')) ## Idazmena 
24		##set( $temp = $kategori_ikurrak_font.put("100891", '<i class="fa fa-headphones"></i>')) ## Ahozkoaren ulermena 
25		##set( $temp = $kategori_ikurrak_font.put("100862", '<i class="fa fa-newspaper-o"></i>')) ## Irakurriaren ulermena 
26 
27		##set( $temp = $kategori_ikurrak_font.put("Hizkuntz-formak", '<i class="fa fa-hospital-o"></i>')) ## desagertutako helburu didaktikoa 
28		##set( $temp = $kategori_ikurrak_font.put("Elkar-eragina", '<i class="fa fa-medkit"></i>')) ## desagertutako helburu didaktikoa 
29		##set( $temp = $kategori_ikurrak_font.put("Lexikoa", '<i class="fa fa-stethoscope"></i>')) 
30		##set( $temp = $kategori_ikurrak_font.put("Testu erak", '<i class="fa fa-user-md"></i>')) 
31		##set( $temp = $kategori_ikurrak_font.put("Ikas estrategiak", '<i class="fa fa-wheelchair"></i>')) 
32		 
33		#set ($journalArticleResourceService = $portal.getClass().forName("com.liferay.portlet.journal.service.JournalArticleResourceLocalServiceUtil").getMethod("getService",null).invoke(null,null)) 
34		#set ($tagsService = $portal.getClass().forName("com.liferay.portlet.tags.service.TagsAssetLocalServiceUtil").getMethod("getService",null).invoke(null,null)) 
35		#set ($longGroupId = $getterUtil.getLong($groupId)) 
36		#set ($articleResourcePK = $journalArticleResourceService.getArticleResourcePrimKey($longGroupId, $articleId)) 
37		#set ($tagsAsset = $tagsService.getAsset("com.liferay.portlet.journal.model.JournalArticle", $articleResourcePK)) 
38		 
39		#set ($tagsEntries = $tagsAsset.getEntries()) 
40		#set ($tagsCategories = $tagsAsset.getCategories()) 
41		#set ($propertiesService = $portal.getClass().forName("com.liferay.portlet.tags.service.TagsPropertyServiceUtil").getMethod("getService",null).invoke(null,null)) 
42		 
43		#set ($journalArticleLocalService = $portal.getClass().forName("com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil").getMethod("getService",null).invoke(null,null)) 
44		#set ($journalArticle = $journalArticleLocalService.getArticle($longGroupId,$articleId)) 
45		 
46		#set ($ratingsStatsLocalService = $portal.getClass().forName("com.liferay.portlet.ratings.service.RatingsStatsLocalServiceUtil").getMethod("getService",null).invoke(null,null)) 
47		#set ($ratingsStatsLocal = $ratingsStatsLocalService.getStats("com.liferay.portlet.journal.model.JournalArticle", $articleResourcePK)) 
48		#set ($averageScore = $ratingsStatsLocal.getAverageScore()) 
49		#set ($roundScore = $mathTool.ceil($averageScore)) 
50		 
51		 
52		#set( $helburudidaktikoak = {}) 
53		#set( $mailak = {}) 
54		#set( $formatoak = {}) 
55		#set( $euskalkiak = {}) 
56		 
57		#foreach( $category in $tagsCategories ) 
58			#set ($entryId = $category.getEntryId()) 
59			#set ($properties =$propertiesService.getProperties($entryId)) 
60			#set ($vocabulary = $category.getVocabulary()) 
61			## Berezko baloreak jarri 
62			#if( $vocabulary.getName() == 'Objetivos Didácticos') 
63				#set( $temp = $helburudidaktikoak.put($entryId,$category.getName())) 
64			#elseif( $vocabulary.getName() == 'Nivel') 
65				#set( $temp = $mailak.put($entryId,$category.getName())) 
66			#elseif( $vocabulary.getName() == 'Formato') 
67				#set( $temp = $formatoak.put($entryId,$category.getName())) 
68			#elseif( $vocabulary.getName() == 'Euskalkia') 
69				#set( $temp = $euskalkiak.put($entryId,$category.getName())) 
70			#end 
71			#foreach( $property in $properties ) 
72				#if($vocabulary.getName() == 'Objetivos Didácticos') 
73					#if($property.getKey() == $request.theme-display.language-id) 
74						#set( $temp = $helburudidaktikoak.put($entryId,$property.getValue())) 
75					#end 
76				#elseif($vocabulary.getName() == 'Nivel') 
77					#if($property.getKey() == $request.theme-display.language-id) 
78						#set( $temp = $mailak.put($entryId,$property.getValue())) 
79					#end 
80				#elseif($vocabulary.getName() == 'Formato') 
81					#if($property.getKey() == $request.theme-display.language-id) 
82						#set( $temp = $formatoak.put($entryId,$property.getValue())) 
83					#end 
84				#elseif($vocabulary.getName() == 'Euskalkia') 
85					#if($property.getKey() == $request.theme-display.language-id) 
86						#set( $temp = $euskalkiak.put($entryId,$property.getValue())) 
87					#end 
88				#end 
89			#end 
90		#end 
91		 
92		#set ($formatoak_img = "") 
93		#if($formatoak.size() > 0) 
94			#foreach ($formatoa in $formatoak.entrySet()) 
95				#set ($formatoastr = $formatoa.getKey().toString()) 
96				#if($kategori_ikurrak_font.containsKey($formatoastr)) 
97					#set ($formatoak_img = $formatoak_img+' <a class="formatoikurrak" href="/web/ikasbil/bilatzaile-orokorra?tagsentryid0='+$formatoastr+'" alt="'+$formatoa.getValue()+'" title="'+$formatoa.getValue()+'">'+$kategori_ikurrak_font.get($formatoastr)+'</a>') 
98				#end	 
99			#end 
100		#end 
101		#set ($helburudidaktikoak_img = "") 
102		#if($helburudidaktikoak.size() > 0) 
103			#foreach ($helburudidaktikoa in $helburudidaktikoak.entrySet()) 
104				#set ($helburudidaktikoastr = $helburudidaktikoa.getKey().toString()) 
105				#if($kategori_ikurrak_font.containsKey($helburudidaktikoastr)) 
106					#set ($helburudidaktikoak_img = $helburudidaktikoak_img+' <a class="formatoikurrak" href="/web/ikasbil/bilatzaile-orokorra?tagCloudId='+$helburudidaktikoastr+'" alt="'+$helburudidaktikoa.getValue()+'" title="'+$helburudidaktikoa.getValue()+'">'+$kategori_ikurrak_font.get($helburudidaktikoastr)+'</a>') 
107				#end 
108			#end 
109		#end 
110		 
111		 
112		#set( $egileak = []) 
113		#set( $iturriak = []) 
114		#set( $erlazioak = []) 
115							 
116		#set ($PropertyFactoryUtilrc = $portal.getClass().forName("com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil").newInstance()) 
117		#set ($DynamicQueryFactoryUtilrc = $portal.getClass().forName("com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil").newInstance()) 
118		#set ($PortletBeanLocatorUtilrc = $portal.getClass().forName("com.liferay.portal.kernel.bean.PortletBeanLocatorUtil").newInstance()) 
119		#set ($portletClassLoaderx61cRelaContWAR = $PortletBeanLocatorUtilrc.locate('x61cRelaContWAR-portlet', "portletClassLoader")) 
120		#set ($x61CRelaCont = $portletClassLoaderx61cRelaContWAR.loadClass("com.ejie.x61c.model.X61CRelaCont")) 
121		#set ($OrderFactoryUtilrc = $portal.getClass().forName("com.liferay.portal.kernel.dao.orm.OrderFactoryUtil").newInstance()) 
122		#set ($x61CRelaContLocalServiceUtil = $portletClassLoaderx61cRelaContWAR.loadClass("com.ejie.x61c.service.X61CRelaContLocalServiceUtil")) 
123		#set ($queryRelaCont = $DynamicQueryFactoryUtilrc.forClass($x61CRelaCont, "x61cRelaContWAR-portlet", $portletClassLoaderx61cRelaContWAR)) 
124		#set ($queryRelaCont = $queryRelaCont.add($PropertyFactoryUtilrc.forName('primaryKey.contenidoId1').eq($journalArticle.getPrimaryKey()))) 
125		#set ($queryRelaCont = $queryRelaCont.addOrder($OrderFactoryUtilrc.desc("primaryKey.contenidoId2"))) 
126		$queryRelaCont.setLimit(0, 20) 
127		#set ($dynamicQueryRelaCont = $x61CRelaContLocalServiceUtil.dynamicQuery($queryRelaCont)) 
128		#if (!$dynamicQueryRelaCont.isEmpty()) 
129			#foreach($erlazioa in $dynamicQueryRelaCont) 
130				#set ($idJournal = $erlazioa.contenidoId2) 
131				#set ($jarticlex = $journalArticleLocalService.getArticle($idJournal)) 
132				##  && $jarticlex.getType() != 'Fuentes'  
133				#if ($jarticlex.isExpired() == false) 
134					#if ($jarticlex.getType() == 'Autores') 
135						#set( $temp = $egileak.add($jarticlex.articleId)) 
136					#elseif($jarticlex.getType() == 'Fuentes' ) 
137						#set( $temp = $iturriak.add($jarticlex.articleId)) 
138					#else 
139						#if ($jarticlex.isExpired() == false) 
140							#set( $temp = $erlazioak.add($jarticlex.articleId)) 
141						#end 
142					#end 
143				#end 
144			#end 
145		#end 
146		#set ($queryRelaCont = $DynamicQueryFactoryUtilrc.forClass($x61CRelaCont, "x61cRelaContWAR-portlet", $portletClassLoaderx61cRelaContWAR)) 
147		#set ($queryRelaCont = $queryRelaCont.add($PropertyFactoryUtilrc.forName('primaryKey.contenidoId2').eq($journalArticle.getPrimaryKey()))) 
148		#set ($queryRelaCont = $queryRelaCont.addOrder($OrderFactoryUtilrc.desc("primaryKey.contenidoId1"))) 
149		$queryRelaCont.setLimit(0, 20) 
150		#set ($dynamicQueryRelaCont = $x61CRelaContLocalServiceUtil.dynamicQuery($queryRelaCont)) 
151		#if (!$dynamicQueryRelaCont.isEmpty()) 
152			#foreach($erlazioa in $dynamicQueryRelaCont) 
153				#set ($idJournal = $erlazioa.contenidoId1) 
154				#set ($jarticlex = $journalArticleLocalService.getArticle($idJournal)) 
155				#if ($jarticlex.isExpired() == false) 
156					#if ($jarticlex.getType() == 'Autores') 
157						#set( $temp = $egileak.add($jarticlex.articleId)) 
158					#elseif($jarticlex.getType() == 'Fuentes' ) 
159						#set( $temp = $iturriak.add($jarticlex.articleId)) 
160					#else 
161						#if ($jarticlex.isExpired() == false) 
162							#set( $temp = $erlazioak.add($jarticlex.articleId)) 
163						#end 
164					#end 
165				#end 
166			#end 
167		#end 
168		 
169		#set ($document = $saxReaderUtil.read($jarticle.getContentByLocale("$locale"))) 
170		 
171		#set ($irudia = "") 
172		#set ($irudi_oina = "") 
173		#set ($testu_generoa = "") 
174		#set ($iraupena = "") 
175		#set ($irudia = $document.selectSingleNode("/root/dynamic-element[@name='irudia']/dynamic-content").getText()) 
176		#set ($irudi_oina = $document.selectSingleNode("/root/dynamic-element[@name='irudia']/dynamic-element[@name='irudi_oina']/dynamic-content").getText()) 
177		#set ($testu_generoa = $document.selectSingleNode("/root/dynamic-element[@name='testu_generoa']/dynamic-content").getText()) 
178		#set ($iraupena = $document.selectSingleNode("/root/dynamic-element[@name='iraupena']/dynamic-content").getText()) 
179		 
180		#set ($atala_lang = "") 
181		#foreach( $atalhau in $atala.getSiblings()) 
182			#if ($atalhau.getData() == $jarticle.getType()) 
183				#set ($atala_lang = $atalhau.izena.getData()) 
184			#end 
185		#end 
186		#if ($atala_lang == "") 
187			#set ($atala_lang = $jarticle.getType()) 
188		#end 
189		 
190		#set ($facebookurl = "https://www.facebook.com/sharer/sharer.php?u="+$escapeTool.url($request.attributes.CURRENT_COMPLETE_URL)) 
191		#set ($twitterurl = "http://twitter.com/home?status="+$escapeTool.url($request.attributes.CURRENT_COMPLETE_URL)) 
192		#set ($googleplusurl = "https://plus.google.com/share?url="+$escapeTool.url($request.attributes.CURRENT_COMPLETE_URL)) 
193		 
194		#if ($journalArticle.getType() == "Dokuteka" || $journalArticle.getType() == "Dokuteka_Revista") 
195			#set ($plus_iragazkia = "&mota_iragazkia=0") 
196		#elseif ($journalArticle.getType() == "Secuencias_Ejercicios") 
197			#set ($plus_iragazkia = "&mota_iragazkia=1") 
198		#else 
199			#set ($plus_iragazkia = "") 
200		#end 
201		 
202		#set ($attributes = $request.parameters) 
203		#set ($viewmode = $attributes.get('viewMode')) 
204		#if($viewmode == "print") 
205			<style type="text/css"> 
206				#fitxa{ 
207					text-align: left; 
208					margin-left: auto; 
209					margin-right: auto; 
210					margin-bottom: 1em; 
211					width: 500px; 
212
213				#impsareak{ 
214					display: none; 
215
216				#impblokea{ 
217					width: 50%; 
218					margin-left: 50%; 
219
220				#impirudia{ 
221					float: left; 
222					width: 45%; 
223
224			</style> 
225		#else 
226			<style type="text/css"> 
227				#fitxa{ 
228					padding: 5px; 
229					margin-bottom: 1em; 
230
231				#nube-tags .extralarge { 
232					color: #2579A7 !important; 
233					font-size: 1.4em !important; 
234
235				#nube-tags .large{ 
236					color: #2579A7 !important; 
237					font-size: 1.2em !important; 
238
239				#nube-tags .medium{ 
240					color: #2579A7 !important; 
241					font-size: 1em !important; 
242
243				#nube-tags .small{ 
244					color: #2579A7 !important; 
245					font-size: 0.8em !important; 
246
247 
248				.formatoikurrak{ 
249					color: black; 
250					font-size: 2em; 
251
252				 
253				#impsareak, #impsareak a { 
254					color: #7B7B7B;; 
255					font-size: 1.2em; 
256
257				 
258				#impsareak a:hover { 
259					color: #2579A7;; 
260
261				 
262			</style> 
263		#end 
264		 
265		<div id="fitxa"> 
266			<div id="impsareak"> 
267			<ul class="separetedlist"> 
268				<li><a href="$facebookurl" title="Facebookera gehitu"><i class="fa fa-facebook-official"></i></a></li> 
269				<li><a href="$twitterurl" title="Twitterera gehitu"><i class="fa fa-twitter-square"></i></a></li> 
270				<li><a href="$googleplusurl" title="Googleplusera gehitu"><i class="fa fa-google-plus-square"></i></a></li> 
271				<li><a href="javascript:misFavoritos(10146,1479012 ,10114, 10138)" title="Gogokoenetara gehitu"><i class="fa fa-bookmark"></i></a></li> 
272				<li><a href="javascript:imprimirContenido();" title="Inprimatzeko bertsioa"><i class="fa fa-print"></i></a></li> 
273				<li> 
274					#set($start = 1) 
275					#set($end = 5) 
276					#set($range = [$start..$end]) 
277					#foreach($i in $range) 
278					   #if($roundScore >= $i) 
279							<i class="fa fa-star"></i> 
280					   #else 
281							<i class="fa fa-star-o"></i> 
282					   #end 
283					#end 
284				</li> 
285			</ul> 
286			</div> 
287		##if ($irudia != "") 
288		#if (false) 
289			<div id="impirudia" style="display: block; margin: 0 0 10px 0; padding: 0 0 10px 0; border-bottom: 1px dotted #e9c1db;">  
290				<img src="$irudia" width="99%"/> 
291			#if ($irudi_oina != "") 
292				<div align="center"> $irudi_oina </div> 
293			#end 
294			</div> 
295		#end 
296			<div id="impblokea"> 
297		#if($mailak.size() > 0) 
298			#set ($mailastr = "") 
299			#set ($mailairagazkia = "") 
300			#foreach ($maila in $mailak.entrySet()) 
301				#if($mailastr == "") 
302					#set ($mailastr = '<a class="levelball level'+$maila.getKey()+'" href="/web/ikasbil/bilatzaile-orokorra?tagsentryid1='+$maila.getKey()+$plus_iragazkia+'">'+$maila.getValue()+'</a>') 
303					#set ($mailairagazkia = "&tagsentryid1="+$maila.getKey()) 
304				#else 
305					#set ($mailastr = $mailastr+" / "+'<a class="levelball level'+$maila.getKey()+'" href="/web/ikasbil/bilatzaile-orokorra?tagsentryid1='+$maila.getKey()+$plus_iragazkia+'">'+$maila.getValue()+'</a>') 
306				#end 
307			#end 
308			#set ($plus_iragazkia = $plus_iragazkia+$mailairagazkia) 
309				<div style="margin-bottom: 0.2em;"> 
310					$mailastr 
311					$formatoak_img 
312					$helburudidaktikoak_img 
313				</div> 
314		#end 
315		 
316		#if($formatoak.size() > 0) 
317				<div style="margin-bottom: 0.2em;"> 
318			#foreach ($formatoa in $formatoak.entrySet()) 
319							<a  style="font-size: 1em;" href="/web/ikasbil/bilatzaile-orokorra?tagsentryid0=$formatoa.getKey()${plus_iragazkia}"> 
320							 $formatoa.getValue() 
321							</a> 
322			#end 
323				</div> 
324		#end 
325		 
326				<div style="margin-bottom: 0.2em; font-size: 1em;">$dateTool.format("default", "", $journalArticle.getDisplayDate(), $locale)</div> 
327				<div>#language("dokuteka.numero"):  
328					<span style="margin-bottom: 0.2em;  font-size: 1em;">$articleId </span> 
329				</div> 
330		 
331		#if($egileak.size() > 0) 
332				<div style="margin-bottom: 0.2em;"> 
333					<span>#language("dokuteka.autor"): </span> 
334					<span style="font-size: 1em;"> 
335			#foreach ($egilea in $egileak) 
336				#set ($hauContent = $journalContentUtil.getContent($templategroupId,$egilea,"EGILEA_TEMPLATE",null,$request.theme-display.language-id,$xmlRequest)) 
337				$hauContent 
338			#end 
339					</span> 
340				</div> 
341		#end 
342		 
343		#if($iturriak.size() > 0) 
344				<div style="margin-bottom: 0.2em;"> 
345					<span>#language("dokuteka.fuente"): </span> 
346					<ul style="margin-left: 20px;"> 
347			#foreach ($iturria in $iturriak) 
348				#set ($hauContent = $journalContentUtil.getContent($templategroupId,$iturria,"ITURRIAREN_TEMPLATE",null,$request.theme-display.language-id,$xmlRequest)) 
349				$hauContent 
350			#end 
351					</ul> 
352				</div> 
353		#end 
354		 
355		#if($helburudidaktikoak.size() > 0) 
356				<div style="margin-bottom: 0.2em;"> 
357				#if($helburudidaktikoak.size() > 0) 
358					#set ($helburudidaktikoakiragazkiak = "") 
359					#foreach ($helburudidaktikoa in $helburudidaktikoak.entrySet()) 
360						#if($helburudidaktikoakiragazkiak == "") 
361							#set ($helburudidaktikoakiragazkiak = "/web/ikasbil/bilatzaile-orokorra?tagCloudId=$helburudidaktikoa.getKey()") 
362						#else 
363							#set ($helburudidaktikoakiragazkiak = $helburudidaktikoakiragazkiak+"&tagCloudId=$helburudidaktikoa.getKey()") 
364						#end 
365					#end 
366					#set ($helburudidaktikoakiragazkiak = $helburudidaktikoakiragazkiak+$plus_iragazkia) 
367					<span><a href="$helburudidaktikoakiragazkiak">#language("dokuteka.objetivos.didacticos"): </a></span> 
368				#else 
369					<span>#language("dokuteka.objetivos.didacticos"): </span> 
370				#end 
371					<ul style="margin-left: 20px;"> 
372			#foreach ($helburudidaktikoa in $helburudidaktikoak.entrySet()) 
373						<li style="font-size: 1em;"> 
374							<a href="/web/ikasbil/bilatzaile-orokorra?tagCloudId=$helburudidaktikoa.getKey()${plus_iragazkia}"> 
375							 $helburudidaktikoa.getValue() 
376							</a> 
377						</li> 
378			#end 
379					</ul> 
380				</div> 
381		#end 
382		 
383		#if ($testu_generoa != "") 
384				<div>#language("dokuteka.genero.textual"):  
385					<span style="margin-bottom: 0.2em;  font-size: 1em;">$testu_generoa </span> 
386				</div> 
387		#end 
388		 
389		#if ($testu_generoa != "") 
390				<div>#language("dokuteka.genero.textual"):  
391					<span style="margin-bottom: 0.2em;  font-size: 1em;">$testu_generoa </span> 
392				</div> 
393		#end 
394		 
395		#if($euskalkiak.size() > 0) 
396				<div style="margin-bottom: 0.2em;"> 
397					<span>#language("dokuteka.dialecto"): </span> 
398					<ul style="margin-left: 20px;"> 
399			#foreach ($euskalkia in $euskalkiak.entrySet()) 
400						<li style=" font-size: 1em;"> 
401								 $euskalkia.getValue() 
402						</li> 
403			#end 
404					</ul> 
405				</div> 
406		#end 
407		 
408		#if ($iraupena != "") 
409				<div>#language("dokuteka.duracion"):  
410					<span style="margin-bottom: 0.2em;  font-size: 1em;">$iraupena </span> 
411				</div> 
412		#end 
413	 
414				<div>#language("dokuteka.numero.de.visitas"): 
415					<span style="margin-bottom: 0.2em;  font-size: 1em;">$tagsAsset.getViewCount()</span> 
416				</div> 
417			</div> 
418		</div> 
419	#end 
420#elseif ($request.lifecycle == "RESOURCE_PHASE") 
421 
422	 
423#end