Errorea gertatu da txantiloia prozesatzerakoan.
Error on line 127, 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<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=ABQIAAAALEL1r1O48-a-XvnOyG8I-xRuwwDcO-2Dj4GPRR8OOuoVEJ29SRTSd42rBrLn-7TjcIbst0qwwmLb3g" type="text/javascript"></script> 
105<#assign url = request.attributes['CURRENT_URL']> 
106 
107<#assign id = httpUtil.getParameter(url, "articleId", false)> 
108 
109<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
110 
111<#assign getterUtil = staticUtil["com.liferay.portal.kernel.util.GetterUtil"] /> 
112 
113<#assign llegarLit = "Nola iritsi" /> 
114<#if locale=='en_EN'> 
115    <#assign llegarLit = "How to arrive" /> 
116</#if> 
117<#if locale=='fr_FR'> 
118    <#assign llegarLit = "Comme arriver" /> 
119</#if> 
120<#if locale=='es_ES'> 
121    <#assign llegarLit = "Cómo llegar" /> 
122</#if> 
123 
124<#if id?has_content> 
125    <#if journalArticleLocalService??> 
126 
127        <#assign articleById = journalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), id) /> 
128         
129        <#assign document = saxReaderUtil.read(articleById.getContentByLocale(locale)) > 
130                     
131        <#assign izenburua = document.valueOf("//dynamic-element[@name='izenburua']/dynamic-content/text()") /> 
132        <#assign helbidea = document.valueOf("//dynamic-element[@name='helbidea']/dynamic-content/text()") /> 
133        <#assign posta_kodea = document.valueOf("//dynamic-element[@name='posta_kodea']/dynamic-content/text()") /> 
134        <#assign herria = document.valueOf("//dynamic-element[@name='herria']/dynamic-content/text()") /> 
135        <#assign probintzia = document.valueOf("//dynamic-element[@name='probintzia']/dynamic-content/text()") /> 
136        <#assign web = document.valueOf("//dynamic-element[@name='url']/dynamic-content/text()") /> 
137        <#assign email = document.valueOf("//dynamic-element[@name='helbide_elektronikoa']/dynamic-content/text()") /> 
138        <#assign telefono = document.valueOf("//dynamic-element[@name='telefonoa']/dynamic-content/text()") /> 
139        <#assign deskribapena = document.valueOf("//dynamic-element[@name='deskribapena']/dynamic-content/text()") /> 
140        <#assign latitudea = document.valueOf("//dynamic-element[@name='latitudea']/dynamic-content/text()") /> 
141        <#assign longitudea = document.valueOf("//dynamic-element[@name='longitudea']/dynamic-content/text()") /> 
142         
143        <#assign direccionCompleta = helbidea+" "+herria+" "+probintzia> 
144         
145        <div id="detalleEuskaltegi" class="separadorDerecho"> 
146            <h2>${izenburua}</h2> 
147            <div class="col-lg-6 col-xs-12"> 
148                <div id="map">&nbsp;</div> 
149                <#assign googleUrl = "http://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"> 
150                <a href="${googleUrl}" target="_blank">${llegarLit} <i class="fa fa-caret-right"></i></a>          
151            </div> 
152             
153            <script type="text/javascript"> 
154            //<![CDATA[ 
155             
156            var map = new GMap(document.getElementById("map")); 
157            map.addControl(new GSmallMapControl()); 
158            map.setCenter(new GLatLng(${latitudea}, ${longitudea}), 14); 
159            map.addControl(new GMapTypeControl ()); 
160             
161            function createMarker(point, texto) { 
162            var marker = new GMarker(point); 
163            GEvent.addListener(marker, "click", function() { 
164            marker.openInfoWindowHtml(texto); 
165            }); 
166            return marker; 
167
168            var point = new GLatLng(${latitudea}, ${longitudea}); 
169            map.addOverlay(createMarker(point,"<b>${izenburua}</b><br />${helbidea}<br />${posta_kodea} - ${herria}")); 
170             
171             
172            //]]> 
173            </script> 
174         
175 
176         
177         
178            <!-- <h2>${izenburua}</h2> 
179            <div id="mapaEuskaltegi" class="col-lg-6"> 
180            <#if latitudea!="" && longitudea!=""> 
181             
182                <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> 
183                <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> 
184                 
185            <#else>       
186                 
187                <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> 
188                <a href="https://maps.google.com/maps?q=${direccionCompleta}&t=&z=15&ie=UTF8&iwloc=&output=embed" target="_blank">Como llegar</a> 
189            </#if> 
190             
191            </div> -->  
192             
193            <div class="col-lg-6 col-xs-12"> 
194                <div> 
195                    <p><i class="fa fa-map-marker"></i> ${helbidea}, ${posta_kodea}, ${herria}, ${probintzia}</p> 
196                </div> 
197                <div> 
198                    <!-- <p><i class="fa fa-envelope"></i> ${email}</p> --> 
199                    <a href="mailto:${email}"><i class="fa fa-envelope"></i> ${email}</a> 
200                </div> 
201                <div> 
202                    <!-- <p><i class="fa fa-phone"></i> ${telefono}</p> --> 
203                    <a href="tel:${telefono}"><i class="fa fa-phone"></i> ${telefono}</a> 
204                </div> 
205                <div> 
206                    <a href="${web}"><i class="fa fa-external-link"></i> ${web}</a> 
207                </div> 
208                <div> 
209                    <p>${deskribapena}</p> 
210                </div> 
211            </div> 
212       
213        </div> 
214                      
215 
216    </#if> 
217</#if>