Errorea gertatu da txantiloia prozesatzerakoan.
Expression cur_item.getChildren()[5] is undefined on line 40, column 31 in 34328#34366#4987975.
1<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
2 
3<#assign tipoContenido = .vars['Tipo_de_Contenido'].data> 
4<#assign lisJournal = JournalArticleLocalService.getStructureArticles(getterUtil.getLong(groupId),"${tipoContenido}")> 
5<#if getterUtil.getBoolean(.vars['FiltroBuscador'].getData())> 
6    <#list .vars['FiltroBuscador'].getSiblings() as cur_busq> 
7        <#assign datosLiteralBus=cur_busq.getChildren()[0].getData()> 
8        <#assign datosBtonBus=cur_busq.getChildren()[1].getData()>   
9    </#list> 
10	<div class="sedeAncho16de16"> 
11    <div class="busquedaClave sedeFormularioCatalogo"> 
12        
13        <div class="sedeAncho15de16"><input type="text" id="myInput" onkeyup="busquedaTextual()" placeholder="${datosLiteralBus}" title="${datosLiteralBus}"><button type="button" onclick="busquedaTextual()" class="buttonLupa"></button></div> 
14         
15    </div> 
16</div> 
17</#if> 
18 
19<#assign selColDestacadas = ""> 
20<#assign textoFiltro = .vars['Texto_Clear'].data> 
21 
22 
23<div class="separador sedeMargenSuperior"> 
24<table id="tablaInter" > 
25 
26<thead> 
27         
28        <tr class="cabFil"> 
29           <#assign selFiltrosTexto = ""> 
30           <#assign condFiltrosTexto = ""> 
31           <#assign txtFiltrosTexto = ""> 
32           <#assign condtxtFiltrosTexto = ""> 
33 <#assign tamColumna = ""> 
34           <#assign count = 0> 
35           <#assign filtros = "clear_filter_text:'"+textoFiltro+"',"> 
36           <#assign col = {"100":""}> 
37           <#if .vars['Nombre_Columna'].getSiblings()?has_content> 
38             
39            	<#list .vars['Nombre_Columna'].getSiblings() as cur_item> 
40            		 <#if cur_item.getChildren()[5].getData()?has_content> 
41                        <#assign tamColumna = "class='"+cur_item.getChildren()[5].getData()?lower_case+"q'" > 
42                    </#if> 
43<th ${tamColumna}>${cur_item.getData()} 
44            		 
45            		 <#assign datoTextoAyuda=cur_item.getChildren()[0].getData()>   
46            		  
47            		 <#if cur_item.getChildren()[2].getData()?has_content> 
48            		    <#assign col_aux = {count:cur_item.getChildren()[2].getData()}> 
49            		  </#if> 
50            		  <#if cur_item.getChildren()[1].getData()?has_content> 
51            		    <#assign filtro = "col_" + count + ":'" +cur_item.getChildren()[1].getData() + "',"> 
52 
53            		  </#if> 
54            		  <#if cur_item.getChildren()[3].getData()?has_content> 
55                       <#assign selFiltrosTexto = selFiltrosTexto + "td"+count+" = tr[i].getElementsByTagName('td')["+count+"];"> 
56                        
57                        
58                         <#assign condFiltrosTexto = condFiltrosTexto + "td"+count+" || " > 
59                        <#assign txtFiltrosTexto = txtFiltrosTexto + "txtValue"+count+" = td"+count+".textContent || td"+count+".innerText  ;" > 
60           <#assign condtxtFiltrosTexto = condtxtFiltrosTexto + "(txtValue"+count+".toUpperCase().indexOf(filter) > -1) ||"> 
61                        
62                        
63                      
64                        
65                        
66                      </#if> 
67  
68            		 <#if datoTextoAyuda?has_content> 
69            		     
70            		    <div class="tooltip"><img src="https://www.ebizkaia.eus/documents/34354/52769/icoInformacion.svg/0fea4400-b723-c989-29f2-4745a9548bc6" height="20"><span class="tooltiptext">${datoTextoAyuda}</span> 
71                                                                                                </div> 
72                    </#if>		 
73                    <#assign count = count + 1> 
74                    <#if cur_item.getChildren()[2].getData()?has_content> 
75                        <#assign col = col + col_aux > 
76                    </#if>     
77                    <#if cur_item.getChildren()[1].getData()?has_content> 
78                        <#assign filtros = filtros + filtro > 
79                    </#if>   
80<#if cur_item.getChildren()[4].getData()?has_content> 
81                        <#assign selColDestacadas = selColDestacadas + cur_item.getData() > 
82                    </#if>     
83                    </th> 
84            	</#list> 
85            </#if> 
86             
87        </tr> 
88    </thead> 
89<tbody> 
90 
91 
92<#assign condFiltrosTexto2 = condFiltrosTexto?substring(0,condFiltrosTexto?last_index_of("||")-1) > 
93<#assign condtxtFiltrosTexto2 = condtxtFiltrosTexto?substring(0,condtxtFiltrosTexto?last_index_of("||")-1) > 
94<#assign lisJournal2 =  [] /> 
95<#list lisJournal as journ1> 
96 
97    <#if journ1.isApproved()> 
98        <#assign isLastVersionJourn1 = JournalArticleLocalService.isLatestVersion(getterUtil.getLong(groupId), journ1.getArticleId(), journ1.getVersion(),0)/>  
99        <#if isLastVersionJourn1> 
100             <#assign articleById1 = JournalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), journ1.getArticleId()) /> 
101             <#assign posSTRArticle=articleById1.getDescription(locale)?replace("-", "")/> 
102             
103              
104         
105             <#assign jsonArticle='{"posicion":'+posSTRArticle+',"idContent":"'+articleById1.getArticleId()+'"}' /> 
106            <#assign lisJournal2 = lisJournal2 + [jsonArticle] /> 
107             
108        </#if> 
109    </#if> 
110</#list> 
111<#list lisJournal2?sort as jourCont> 
112 
113<#assign contenidoOrdenado = jourCont> 
114 
115<#assign initInicio = (contenidoOrdenado?last_index_of(":"))+2> 
116<#assign initFinal = (contenidoOrdenado?index_of("}"))-1> 
117<#assign idContenidoOrden = contenidoOrdenado?substring(initInicio, initFinal)> 
118 
119 
120<#assign articleById = JournalArticleLocalService.getDisplayArticle(getterUtil.getLong(groupId), idContenidoOrden) /> 
121<tr> 
122         
123       
124         
125        <#assign document = saxReaderUtil.read(articleById.getContentByLocale(locale)) > 
126        <#assign doc_externo = document.valueOf("//dynamic-element[@name='Documento_Descriptivo_Externo']/dynamic-content/text()") /> 
127     
128        <#list col?values as colum> 
129             <#if colum?has_content> 
130                <#assign columna = document.valueOf("//dynamic-element[@name='${colum}']/dynamic-content/text()") /> 
131                  
132                <#if columna?has_content> 
133                  
134                     
135                    <#if ((colum?index_of("Doc_Descriptivo")>-1)||(colum?index_of("Doc")>-1) ) > 
136                        
137                         <td class="sedeDatoCentro"><a href="${columna}" target="_blank"><img alt="" src="https://www.ebizkaia.eus/documents/34354/2841005/Enlace/46108c92-b584-f8ac-cb45-bf144194a486" height="20" style="height: 20px; width: 30px;"></a></td> 
138                    <#elseif ((colum?index_of("otros")>-1) ) > 
139                        <#assign annotacion = document.valueOf("//dynamic-element[@name='Anotacion_Observaciones']/dynamic-content/text()") /> 
140                     
141                        <td class="sedeDatoCentro"> 
142                        <#list columna?split(",") as icono> 
143                              <#if (icono?index_of("Activo")>-1)> 
144                                <span class="hidden">${icono}</span> 
145                                <img alt="" height="20" src="https://www.ebizkaia.eus/documents/34354/2841005/Activo/91521a50-9668-9269-0c0e-5c201f80469c" style="text-align: center; height: 20px; width: 20px;"> 
146                            <#elseif (icono?index_of("Error")>-1)> 
147                                <span class="hidden">${icono}</span> 
148                               <img alt="" height="20" src="https://www.ebizkaia.eus/documents/34354/2841005/Reparacion/7ae59ee9-e225-de9d-f4a5-0eb145be8c30" style="text-align: center; height: 20px; width: 20px;"> 
149                            <#elseif (icono?index_of("Construccion")>-1)> 
150                                <span class="hidden">${icono}</span> 
151                                <img alt="" height="21" src="https://www.ebizkaia.eus/documents/34354/2841005/Construccion/9e75a718-85d4-1647-6c3c-6bdf37196c0d" style="height: 21px; width: 20px;"> 
152                            <#elseif (icono?index_of("Acuerdo")>-1)> 
153                                <span class="hidden">${icono}</span> 
154                                <img alt="" height="12" src="https://www.ebizkaia.eus/documents/34354/2841005/Acuerdo/ba2f3df7-1299-a2e2-ac5f-14dfe2f9d2a2" style="text-align: center; height: 12px; width: 20px;"> 
155                            <#elseif (icono?index_of("New")>-1)> 
156                                <span class="hidden">${icono}</span> 
157                                <img alt="" height="22" src="https://www.ebizkaia.eus/documents/34354/2841005/New/f7922269-c469-b150-d7a6-498b13e90a12" style="text-align: center; height: 22px; width: 30px;"> 
158                            </#if> 
159                        </#list> 
160                             <#if annotacion?has_content> 
161                                <p>${annotacion}</p> 
162                             </#if> 
163                            </td> 
164                    <#elseif ((colum?index_of("cedente")>-1) ) > 
165                         <#assign iconCedent = document.valueOf("//dynamic-element[@name='Icono_Cedente']/dynamic-content/text()") />             
166                         <#if iconCedent?has_content> 
167                            <#if ((iconCedent?index_of("https://")==-1) ) > 
168                                 <#assign urlIconCedent="https://www.ebizkaia.eus"+iconCedent > 
169                            <#else> 
170                                <#assign urlIconCedent=iconCedent > 
171                            </#if> 
172                        </#if> 
173                         <#assign ayudaCedent = document.valueOf("//dynamic-element[@name='Tooltip_Cedente']/dynamic-content/text()") /> 
174                         <td> 
175                          
176                          
177                         <#if ayudaCedent?has_content> 
178                            <abbr title="${ayudaCedent}"> 
179                                  
180                         </#if> 
181                         <span class="cedente">${columna}</span> 
182                         <#if iconCedent?has_content> 
183                            <img src="${urlIconCedent}" height="16" style="height: 16px; width: 10px;"> 
184                         </#if>                        
185                         <#if ayudaCedent?has_content> 
186                            </abbr>  
187                         </#if> 
188                         </td> 
189                    <#else> 
190                        <#if (selColDestacadas?lower_case)?contains(colum?lower_case)> 
191                            <td class="destacada">${columna}</td> 
192                        <#else> 
193                            <td>${columna}</td> 
194                        </#if>  
195                    </#if> 
196                  
197                 <#else> 
198                     
199                    <#if ((colum?index_of("Doc")>-1) && !(colum?index_of("Doc_Descriptivo")>-1) && (doc_externo?has_content))> 
200                        
201                        <td class="sedeDatoCentro"><a href="${doc_externo}" target="_blank"> 
202                           <img alt="" src="https://www.ebizkaia.eus/documents/34354/2841005/Enlace/46108c92-b584-f8ac-cb45-bf144194a486" height="20" style="height: 20px; width: 30px;"></a> 
203                        </td> 
204                    <#else> 
205                        <td></td> 
206                    </#if>  
207                </#if>  
208            </#if>  
209        </#list> 
210         
211        
212        
213 
214    </tr> 
215 
216 
217</#list> 
218 
219</tbody> 
220</table> 
221</div> 
222<div class="sedeSeccionLeyenda"> 
223<div class="sedeAncho12de16"> 
224<#if .vars['Leyenda_Pie'].getData()?has_content> 
225    ${.vars['Leyenda_Pie'].getData()} 
226</#if> 
227</div> 
228<div class="sedeAncho3de16"> 
229<div><button type="button" class="sedeExcel"><img src="https://www.ebizkaia.eus/documents/34354/2841005/Descarga/eebeb18e-69a6-c57c-9443-4c4fe875c5da"/></button></div> 
230</div> 
231</div> 
232<script> 
233var filtersConfig = { 
234        base_path: 'https://unpkg.com/tablefilter@latest/dist/tablefilter/', 
235        ${filtros} 
236        popup_filters: true, 
237        responsive:true 
238    }; 
239    var tf = new TableFilter('tablaInter', filtersConfig); 
240    tf.init(); 
241 
242function busquedaTextual() { 
243  var input, filter, table, tr, td, i, txtValue; 
244  input = document.getElementById("myInput"); 
245  filter = input.value.toUpperCase(); 
246  table = document.getElementById("tablaInter"); 
247  tr = table.getElementsByTagName("tr"); 
248  for (i = 0; i < tr.length; i++) { 
249   ${selFiltrosTexto} 
250   if (${condFiltrosTexto2}) { 
251      ${txtFiltrosTexto} 
252      if (${condtxtFiltrosTexto2}) { 
253        tr[i].style.display = ""; 
254      } else { 
255        tr[i].style.display = "none"; 
256
257    }    
258    
259     
260
261
262$("button").click(function(){ 
263      var table=document.getElementById('tablaInter'); 
264 
265        var html = table.outerHTML; 
266        window.open('data:application/vnd.ms-excel,' + escape(html)); 
267}); 
268</script>