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
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 <script type="text/javascript">
146 jQuery(document).ready(function (){
147 if(defineProj4()){
148 loadMapDetalle('${longitudea}','${latitudea}','${izenburua}','${helbidea}','${posta_kodea}','${herria}','${probintzia}');
149 }
150 });
151 </script>
152
153 <div id="detalleEuskaltegi" class="separadorDerecho">
154 <h2>${izenburua}</h2>
155 <div class="col-lg-6 col-xs-12">
156 <div id="map"></div>
157 <#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">
158 <a href="${googleUrl}" target="_blank">${llegarLit} <i class="fa fa-caret-right"></i></a>
159 </div>
160
161 <!-- <h2>${izenburua}</h2>
162 <div id="mapaEuskaltegi" class="col-lg-6">
163 <#if latitudea!="" && longitudea!="">
164
165 <iframe src="https://maps.google.com/maps?q=${latitudea},${longitudea}&hl=en&z=16&output=embed&iwloc=A" width="100%" height="300" frameborder="0" style="border:0" allowfullscreen></iframe>
166 <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>
167
168 <#else>
169
170 <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>
171 <a href="https://maps.google.com/maps?q=${direccionCompleta}&t=&z=15&ie=UTF8&iwloc=&output=embed" target="_blank">Como llegar</a>
172 </#if>
173
174 </div> -->
175
176 <div class="col-lg-6 col-xs-12">
177 <div>
178 <p><i class="fa fa-map-marker"></i> ${helbidea}, ${posta_kodea}, ${herria}, ${probintzia}</p>
179 </div>
180 <div>
181 <!-- <p><i class="fa fa-envelope"></i> ${email}</p> -->
182 <a href="mailto:${email}"><i class="fa fa-envelope"></i> ${email}</a>
183 </div>
184 <div>
185 <!-- <p><i class="fa fa-phone"></i> ${telefono}</p> -->
186 <a href="tel:${telefono}"><i class="fa fa-phone"></i> ${telefono}</a>
187 </div>
188 <div>
189 <a href="${web}"><i class="fa fa-external-link"></i> ${web}</a>
190 </div>
191 <div>
192 <p>${deskribapena}</p>
193 </div>
194 </div>
195
196 </div>
197
198
199 </#if>
200</#if>