Aldizkari Digitala
Errorea gertatu da txantiloia prozesatzerakoan.
The following has evaluated to null or missing:
==> imagenUrl [in template "20902#20940#7257837" at line 126, column 53]
----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${imagenUrl} [in template "20902#20940#7257837" at line 126, column 51]
----
1<#assign bajar = "Jaitsi">
2<#assign transcripcion = "Transkripzioa">
3<#assign completa = "completa">
4
5<#if locale=='en_US'>
6 <#assign bajar = "Download">
7 <#assign transcripcion = "Transcription">
8</#if>
9<#if locale=='fr_FR'>
10 <#assign bajar = "Télécharger">
11 <#assign transcripcion = "Transcription">
12</#if>
13<#if locale=='es_ES'>
14 <#assign bajar = "Bajar">
15 <#assign transcripcion = "Transcripción">
16</#if>
17<link rel="stylesheet" href="/o/x61tThemeIkasbilWAR-theme/css/scriptVideo.css">
18<script>
19 $(document).ready(function ($) {
20 $("#trasnkripzioazabaldu").click(function (event) {
21 $("#trasnkripzioedukia").show();
22 $("#trasnkripzioazabaldu").hide();
23
24 $("#trasnkripzioaestutu").show();
25 return false;
26 });
27 $("#trasnkripzioaestutu").click(function (event) {
28 $("#trasnkripzioedukia").hide();
29 $("#trasnkripzioazabaldu").show();
30 $("#trasnkripzioaestutu").hide();
31 return false;
32 });
33 });
34</script>
35
36<style>
37 .printhide {
38 display: none;
39 }
40
41 #trasnkripzioedukia {
42 padding: 1em;
43 background-color: #e7e7e7;
44 color: black !important;
45 display: none;
46 }
47
48 #transkripzioa {
49 margin-top: 1em;
50 margin-bottom: 1em;
51 }
52</style>
53
54
55<#assign id = paramUtil.getString(request, "articleId")>
56<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
57<#assign DLAppLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppLocalService")>
58
59<#if id?has_content>
60 <#if journalArticleLocalService??>
61 <#assign articleById = journalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), id) />
62 <#assign document = saxReaderUtil.read(articleById.getContentByLocale(locale)) >
63
64 <#assign izenburua = document.valueOf("//dynamic-element[@field-reference='izenburua']/dynamic-content/text()") />
65 <#assign laburpena = document.valueOf("//dynamic-element[@field-reference='laburpena']/dynamic-content/text()") />
66 <#assign deskribapena = document.valueOf("//dynamic-element[@field-reference='deskribapena']/dynamic-content/text()") />
67 <#assign bideoa = document.valueOf("//dynamic-element[@field-reference='bideoa']/dynamic-content/text()") />
68 <#assign youtubeko_bideoa = document.valueOf("//dynamic-element[@field-reference='youtubeko_bideoa']/dynamic-content/text()") />
69 <#assign transkripzioa = document.valueOf("//dynamic-element[@field-reference='transkripzioa']/dynamic-content/text()") />
70 <#assign audio = document.valueOf("//dynamic-element[@field-reference='audioa']/dynamic-content/text()") />
71 <#assign irudia = document.valueOf("//dynamic-element[@field-reference='irudia']/dynamic-content/text()") />
72
73 <div class="fitxa separadorDerecho">
74 <h2>${izenburua}</h2>
75
76 <div id="impedukia">
77 <h3>${laburpena}</h3>
78
79 <div id="deskribapena">
80 <p>${deskribapena}</p>
81 </div>
82
83 <!--audio-->
84 <div style="clear:both"><br></div>
85 <#if audio !="">
86 <#assign jsonAudio = jsonFactoryUtil.createJSONObject(audio)>
87 <#assign audioFile = DLAppLocalService.getFileEntryByUuidAndGroupId(jsonAudio.getString("uuid"), getterUtil.getLong(groupId)) >
88 <#assign audioUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() +
89 "/" + audioFile.getFolderId() + "/" + htmlUtil.unescape(audioFile.getTitle())>
90
91 <a class="botonEnlace" href="${audioUrl}" target="_blank">${bajar} <i
92 class="glyphicon glyphicon-download"></i> </a>
93 <div style="clear:both"></div>
94 <div id="audio">
95 <div>
96 <audio controls class="anchoAudio">
97 <source src="audio.ogg" type="audio/ogg">
98 <source src="${audioUrl}" type="audio/mp3">
99 </audio>
100 </div>
101 </div>
102 </#if>
103
104 <#if bideoa !="">
105 <#assign poster ="" />
106 <#if irudia !="">
107 <#attempt>
108 <#assign jsonImagen = jsonFactoryUtil.createJSONObject(irudia)>
109 <#assign imagenFile = DLAppLocalService.getFileEntryByUuidAndGroupId(jsonImagen.getString("uuid"), getterUtil.getLong(groupId)) >
110 <#assign imagenUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() +
111 "/" + imagenFile.getFolderId() + "/" + htmlUtil.unescape(imagenFile.getTitle())>
112 <#recover>
113 <#assign imagenUrl = irudia>
114 </#attempt>
115 </#if>
116 <#assign jsonVideo = jsonFactoryUtil.createJSONObject(bideoa)>
117 <#assign videoFile = DLAppLocalService.getFileEntryByUuidAndGroupId(jsonVideo.getString("uuid"), getterUtil.getLong(groupId)) >
118 <#assign videoUrl = themeDisplay.getPortalURL() + themeDisplay.getPathContext() + "/documents/" + themeDisplay.getScopeGroupId() +
119 "/" + videoFile.getFolderId() + "/" + htmlUtil.unescape(videoFile.getTitle())>
120
121 <div id="bideo">
122 <a class="botonEnlace" href="${videoUrl}" target="_blank">${bajar} <i
123 class="glyphicon glyphicon-download"></i></a>
124 <#if !bideoa?contains(".flv")>
125 <div>
126 <video controls width=95% poster="${imagenUrl}">
127 <source src="${videoUrl}" type="video/mp4">
128 </video>
129 </div>
130 </#if>
131 </div>
132 </#if>
133
134 <div style="clear:both"></div>
135 <#if youtubeko_bideoa !="">
136 <div id="bideoyoutubeko">
137 ${youtubeko_bideoa}
138 </div>
139 </#if>
140 <div style="clear:both"></div>
141 <#if transkripzioa !="">
142 <div id="transkripzioa">
143 <a id="trasnkripzioazabaldu" class="botonEnlace" href="#"> ${transcripcion}:[+]</a>
144 <a id="trasnkripzioaestutu" href="#" class="printhide botonEnlace"> ${transcripcion}:[-]</a>
145 <div id="trasnkripzioedukia">
146 ${transkripzioa}
147 </div>
148 </div>
149 </#if>
150 </div>
151 </div>
152
153 <div id="embedded-articlenextevents-portlet">
154 <@liferay_portlet["runtime"] portletName="x61pRelaContWAR_WAR_x61pRelaContWARportlet" queryString="idArticulo=${id}&visualizacion=${completa}"/>
155 </div>
156 </#if>
157</#if>
158<script src="/o/x61tThemeIkasbilWAR-theme/js/scriptVideo.js"></script>
2014-03-28
-
Mikel Goñi (Maramara Taldea)
16343470
00:01:27
7272
