Errorea gertatu da txantiloia prozesatzerakoan.
Error on line 128, column 9 in 20902#20940#7409049
journalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), id) is undefined.
It cannot be assigned to articleById
1<style> 
2    div#detalleEuskaltegi { 
3        overflow: hidden; 
4        padding-right: 15px; 
5        clear: both; 
6
7    #detalleEuskaltegi h2 { 
8        margin: 0 15px 20px 15px; 
9        background: #fabd48; 
10        text-align: center; 
11        color: #fff; 
12        padding: 5px; 
13
14    #detalleEuskaltegi div:first-of-type #map { 
15        width: 100%; 
16        height: 300px; 
17        margin-bottom: 30px; 
18
19    #detalleEuskaltegi .col-lg-6:last-of-type { 
20        padding-right: 0; 
21
22    #detalleEuskaltegi .col-lg-6:last-of-type p { 
23        margin-bottom: 0; 
24
25    #detalleEuskaltegi .col-lg-6:last-of-type p i { 
26        margin-right: 15px; 
27        color: #334c94; 
28        font-size: 15px; 
29        font-weight: 700; 
30
31    #detalleEuskaltegi .col-lg-6:last-of-type div { 
32        padding: 7px 15px; 
33
34    #detalleEuskaltegi .col-lg-6:last-of-type div:nth-of-type(odd) { 
35        background: #e8e8e8; 
36
37    #detalleEuskaltegi .col-lg-6:last-of-type div:nth-of-type(even) { 
38        background: #e0e0e0; 
39
40    #detalleEuskaltegi .col-lg-6:last-of-type div a i { 
41        font-weight: 700; 
42        margin-right: 10px; 
43
44    #detalleEuskaltegi div:first-of-type #map + a { 
45        margin-bottom: 10px; 
46        background-color: #fabd48; 
47        display: inline-block; 
48        height: 100%; 
49        color: white !important; 
50        border-radius: 25px; 
51        -moz-border-radius: 25px; 
52        -webkit-border-radius: 25px; 
53        text-align: center; 
54        padding: 0.7em; 
55
56    #detalleEuskaltegi div:first-of-type #map + a:hover { 
57        -webkit-box-shadow: 0 0 5px 0 #fabd48; 
58        -moz-box-shadow: 0 0 5px 0 #fabd48; 
59        box-shadow: 0 0 5px 0 #fabd48; 
60        background: #fff; 
61        color: #fabd48 !important; 
62
63    #detalleEuskaltegi div:first-of-type #map + a i { 
64        color: #fff !important; 
65        margin-left: 10px; 
66
67    #detalleEuskaltegi div:first-of-type #map + a:hover i { 
68        color: #fabd48 !important; 
69
70    @media only screen and (max-width: 1024px) and (min-width: 481px) { 
71        div#detalleEuskaltegi { 
72            padding-right: 0; 
73
74        #detalleEuskaltegi div:first-of-type #map { 
75            margin-bottom: 15px; 
76
77        #detalleEuskaltegi div:first-of-type #map + a { 
78            margin-bottom: 25px; 
79
80        #detalleEuskaltegi h2 { 
81            font-size: 28px; 
82
83
84    @media only screen and (max-width: 480px) { 
85        div#detalleEuskaltegi { 
86            padding-right: 0; 
87
88        #detalleEuskaltegi h2 { 
89            margin: 0 0 20px 0; 
90            font-size: 26px; 
91
92        #detalleEuskaltegi > div { 
93            padding-left: 0; 
94            padding-right: 0; 
95
96        #detalleEuskaltegi div:first-of-type #map { 
97            margin-bottom: 15px; 
98
99        #detalleEuskaltegi div:first-of-type #map + a { 
100            margin-bottom: 25px; 
101
102
103</style> 
104 
105<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyD45GUlUyipGyo96j_6chac7j11qnNXUf0" type="text/javascript"></script> 
106<#assign url = request.attributes['CURRENT_URL']> 
107 
108<#assign id = httpUtil.getParameter(url, "articleId", false)> 
109 
110<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
111 
112<#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"] /> 
113 
114<#assign llegarLit = "Nola iritsi" /> 
115<#if locale=='en_EN'> 
116    <#assign llegarLit = "How to arrive" /> 
117</#if> 
118<#if locale=='fr_FR'> 
119    <#assign llegarLit = "Comme arriver" /> 
120</#if> 
121<#if locale=='es_ES'> 
122    <#assign llegarLit = "Cómo llegar" /> 
123</#if> 
124 
125<#if id?has_content> 
126    <#if journalArticleLocalService??> 
127 
128        <#assign articleById = journalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), id) /> 
129         
130        <#assign document = saxReaderUtil.read(articleById.getContentByLocale(locale)) > 
131                     
132        <#assign izenburua = document.valueOf("//dynamic-element[@name='izenburua']/dynamic-content/text()") /> 
133        <#assign helbidea = document.valueOf("//dynamic-element[@name='helbidea']/dynamic-content/text()") /> 
134        <#assign posta_kodea = document.valueOf("//dynamic-element[@name='posta_kodea']/dynamic-content/text()") /> 
135        <#assign herria = document.valueOf("//dynamic-element[@name='herria']/dynamic-content/text()") /> 
136        <#assign probintzia = document.valueOf("//dynamic-element[@name='probintzia']/dynamic-content/text()") /> 
137        <#assign web = document.valueOf("//dynamic-element[@name='url']/dynamic-content/text()") /> 
138        <#assign email = document.valueOf("//dynamic-element[@name='helbide_elektronikoa']/dynamic-content/text()") /> 
139        <#assign telefono = document.valueOf("//dynamic-element[@name='telefonoa']/dynamic-content/text()") /> 
140        <#assign deskribapena = document.valueOf("//dynamic-element[@name='deskribapena']/dynamic-content/text()") /> 
141        <#assign latitudea = document.valueOf("//dynamic-element[@name='latitudea']/dynamic-content/text()") /> 
142        <#assign longitudea = document.valueOf("//dynamic-element[@name='longitudea']/dynamic-content/text()") /> 
143         
144        <#assign direccionCompleta = helbidea+" "+herria+" "+probintzia> 
145         
146        <div id="detalleEuskaltegi" class="separadorDerecho"> 
147            <h2>${izenburua}</h2> 
148            <div class="col-lg-6 col-xs-12"> 
149                <div id="map">&nbsp;</div> 
150                <#assign googleUrl = "https://maps.google.com/maps?q=${helbidea},${herria}&hl=es&ll=${latitudea},${longitudea}+&spn=0.008277,0.022724&sll=43.066505,-2.48909&sspn=0.066216,0.181789&filter=0&update=1&z=18&iwloc=B"> 
151                <a href="${googleUrl}" target="_blank">${llegarLit} <i class="fa fa-caret-right"></i></a>          
152            </div> 
153             
154            <script type="text/javascript"> 
155            //<![CDATA[ 
156             
157			var map = new google.maps.Map(document.getElementById("map"), { 
158				center: { lat: ${latitudea}, lng: ${longitudea} }, 
159				zoom: 14, 
160			  }); 
161			 
162			var point = new google.maps.LatLng(${latitudea}, ${longitudea}); 
163			 
164            createMarker(point, "${izenburua}\r${helbidea}\r${posta_kodea} - ${herria}"); 
165            function createMarker(point, texto) { 
166				var marker = new google.maps.Marker({ 
167				position:point, 
168				title:texto, 
169				map:map 
170				}); 
171
172 
173            //]]> 
174            </script> 
175         
176 
177         
178         
179            <!-- <h2>${izenburua}</h2> 
180            <div id="mapaEuskaltegi" class="col-lg-6"> 
181            <#if latitudea!="" && longitudea!=""> 
182             
183                <iframe src="https://maps.google.com/maps?q=${latitudea},${longitudea}&hl=en&z=16&amp;output=embed&amp;iwloc=A" width="100%" height="300" frameborder="0" style="border:0" allowfullscreen></iframe> 
184                <a href="https://www.google.com/maps/place/${izenburua}/@${latitudea},${longitudea},18z/data=!4m5!3m4!1s0x0:0x53bc857833e56d45!8m2!3d${latitudea}!4d${longitudea}?q=${izenburua}" target="_blank">Como llegar</a> 
185                 
186            <#else>       
187                 
188                <iframe width="100%" height="300" src="https://maps.google.com/maps?q=${direccionCompleta}&t=&z=15&ie=UTF8&output=embed" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"></iframe> 
189                <a href="https://maps.google.com/maps?q=${direccionCompleta}&t=&z=15&ie=UTF8&iwloc=&output=embed" target="_blank">Como llegar</a> 
190            </#if> 
191             
192            </div> -->  
193             
194            <div class="col-lg-6 col-xs-12"> 
195                <div> 
196                    <p><i class="fa fa-map-marker"></i> ${helbidea}, ${posta_kodea}, ${herria}, ${probintzia}</p> 
197                </div> 
198                <div> 
199                    <!-- <p><i class="fa fa-envelope"></i> ${email}</p> --> 
200                    <a href="mailto:${email}"><i class="fa fa-envelope"></i> ${email}</a> 
201                </div> 
202                <div> 
203                    <!-- <p><i class="fa fa-phone"></i> ${telefono}</p> --> 
204                    <a href="tel:${telefono}"><i class="fa fa-phone"></i> ${telefono}</a> 
205                </div> 
206                <div> 
207                    <a href="${web}"><i class="fa fa-external-link"></i> ${web}</a> 
208                </div> 
209                <div> 
210                    <p>${deskribapena}</p> 
211                </div> 
212            </div> 
213       
214        </div> 
215                      
216 
217    </#if> 
218</#if>