Ruta de navegación

Calendario de audiencias 

Publicador de contenidos

Se ha producido un error al procesar la plantilla.
Error while invoking the "journal-article" JSP custom tag; see cause exception

----
FTL stack trace ("~" means nesting-related):
	- Failed at: @liferay_journal["journal-article"] a...  [in template "20098#20124#3402020" at line 84, column 29]
----
1<link rel="stylesheet" href="https://cdn.datatables.net/1.10.22/css/dataTables.bootstrap5.min.css"> 
2 
3<style> 
4.textotabla{ 
5    text-align:center !important; 
6     font-family: 'Work Sans'; 
7        font-style: normal; 
8        font-size: 1rem; 
9
10.textotitulo{ 
11    color: #2A477A !important; 
12    font-family: "Montserrat" !important; 
13    font-weight:bold !important; 
14    cursor: pointer; 
15
16 
17div.dataTables_wrapper div.dataTables_paginate ul.pagination { 
18    justify-content: flex-start;     
19
20 
21.page-item.active .page-link, .nav-underline .tab.active a.page-item .page-link, .page-item.show .page-link{ 
22    border-color: #3366CC;; 
23    background-color: #3366CC; !important; 
24
25.page-link:active,.page-link.active, .nav-underline .tab.active a.page-link{ 
26    border-color: #3366CC;; 
27    background-color: #3366CC; !important; 
28
29.page-link { 
30    color: #2A477A; 
31    border-radius: 4px; 
32    border: none !important; 
33
34 
35.search_bar { 
36    width: 100%; 
37    height: auto; 
38    margin: 0 0 0 auto; 
39
40 
41</style> 
42 
43<div class="container"> 
44    <#if !entries?has_content> 
45        <div class="col"> 
46            <#if !themeDisplay.isSignedIn()> 
47                ${renderRequest.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", true)} 
48            </#if> 
49            <div class="alert alert-info"> 
50                <@liferay_ui["message"] key="there-are-no-results" /> 
51            </div> 
52        </div> 
53    </#if> 
54 
55    <div class="row justify-content-center"> 
56        <div class="table-responsive-md"> 
57             
58            <form> 
59                <div class="search_bar form-group col-md-3"> 
60                    <input class="form-control" placeholder="Buscar audiencia" id="searchTerm" type="text" onkeyup="Buscar()" /> 
61                </div> 
62            </form> 
63             
64            <table class="table table-hover" id="CalendarTable"> 
65                <thead> 
66                    <tr> 
67                        <th scope="col" onclick="sortTable(0)" class="text-center textotitulo">Sede Supersociedades</th> 
68                        <th scope="col" onclick="sortTable(1)" class="text-center textotitulo">Fecha de Audiencia</th> 
69                        <th scope="col" onclick="sortTable(2)" class="text-center textotitulo">Hora</th> 
70                        <th scope="col" class="text-center textotitulo">Delegatura</th> 
71                        <th scope="col" class="text-center textotitulo">Sociedad(es) y/o persona(s)</th> 
72                        <th scope="col" class="text-center textotitulo">Tipo de audiencia</th> 
73                        <th scope="col" class="text-center textotitulo">URL audiencia</th> 
74                    </tr> 
75                </thead> 
76 
77                <#if entries?has_content> 
78                    <#list entries as curEntry> 
79 
80                        <tbody class="textotabla"> 
81                             
82                            <#assign curEntry=curEntry assetRenderer=curEntry.getAssetRenderer() 
83                                journalArticle=assetRenderer.getAssetObject() /> 
84                            <@liferay_journal["journal-article"] articleId=journalArticle.getArticleId() 
85                                ddmTemplateKey="3385937" groupId=journalArticle.getGroupId() /> 
86                        </tbody> 
87 
88                    </#list> 
89                </#if> 
90            </table> 
91        </div> 
92    </div> 
93</div> 
94 
95<script src="https://cdn.datatables.net/1.10.22/js/jquery.dataTables.min.js"> 
96</script> 
97<script src="https://cdn.datatables.net/1.10.22/js/dataTables.bootstrap5.min.js"> 
98</script> 
99 
100 
101<script> 
102$('#CalendarTable').DataTable({ 
103info: false, 
104paging: true, 
105ordering: false, 
106searching: false, 
107 
108language: { 
109    "lengthMenu": "Mostrar _MENU_ entradas", 
110    "paginate": { 
111      "previous": "Anterior", 
112      "next": "Siguiente" 
113
114
115}); 
116 
117</script> 
118 
119<script> 
120    function Buscar() { 
121    const tableReg = document.getElementById('CalendarTable'); 
122    const searchText = document.getElementById('searchTerm').value.toLowerCase(); 
123    let total = 0; 
124 
125    // Recorremos todas las filas con contenido de la tabla 
126    for (let i = 1; i < tableReg.rows.length; i++) { 
127        // Si el td tiene la clase "noSearch" no se busca en su cntenido 
128        if (tableReg.rows[i].classList.contains("noSearch")) { 
129            continue; 
130
131 
132        let found = false; 
133        const cellsOfRow = tableReg.rows[i].getElementsByTagName('td'); 
134        // Recorremos todas las celdas 
135        for (let j = 0; j < cellsOfRow.length && !found; j++) { 
136            const compareWith = cellsOfRow[j].innerHTML.toLowerCase(); 
137            // Buscamos el texto en el contenido de la celda 
138            if (searchText.length == 0 || compareWith.indexOf(searchText) > -1) { 
139                found = true; 
140                total++; 
141
142
143        if (found) { 
144            tableReg.rows[i].style.display = ''; 
145        } else { 
146            // si no ha encontrado ninguna coincidencia, esconde la 
147            // fila de la tabla 
148            tableReg.rows[i].style.display = 'none'; 
149
150
151 
152    // mostramos las coincidencias 
153    const lastTR = tableReg.rows[tableReg.rows.length - 1]; 
154    const td = lastTR.querySelector("td"); 
155    lastTR.classList.remove("hide", "red"); 
156    if (searchText == "") { 
157        lastTR.classList.add("hide"); 
158    } else if (total) { 
159        td.innerHTML = "Se ha encontrado " + total + " coincidencia" + ((total > 1) ? "s" : ""); 
160    } else { 
161        lastTR.classList.add("red"); 
162        td.innerHTML = "No se han encontrado coincidencias"; 
163
164 
165
166 
167 
168 
169 
170function sortTable(n) { 
171  var table, rows, switching, i, x, y, shouldSwitch, dir, switchcount = 0; 
172  table = document.getElementById("CalendarTable"); 
173  switching = true; 
174  // Set the sorting direction to ascending: 
175  dir = "desc"; 
176  /* Make a loop that will continue until 
177  no switching has been done: */ 
178  while (switching) { 
179    // Start by saying: no switching is done: 
180    switching = false; 
181    rows = table.rows; 
182    /* Loop through all table rows (except the 
183    first, which contains table headers): */ 
184    for (i = 1; i < (rows.length - 1); i++) { 
185      // Start by saying there should be no switching: 
186      shouldSwitch = false; 
187      /* Get the two elements you want to compare, 
188      one from current row and one from the next: */ 
189      x = rows[i].getElementsByTagName("TD")[n]; 
190      y = rows[i + 1].getElementsByTagName("TD")[n]; 
191      /* Check if the two rows should switch place, 
192      based on the direction, asc or desc: */ 
193      if (dir == "asc") { 
194        if (x.innerHTML.toLowerCase() > y.innerHTML.toLowerCase()) { 
195          // If so, mark as a switch and break the loop: 
196          shouldSwitch = true; 
197          break; 
198
199      } else if (dir == "desc") { 
200        if (x.innerHTML.toLowerCase() < y.innerHTML.toLowerCase()) { 
201          // If so, mark as a switch and break the loop: 
202          shouldSwitch = true; 
203          break; 
204
205
206
207    if (shouldSwitch) { 
208      /* If a switch has been marked, make the switch 
209      and mark that a switch has been done: */ 
210      rows[i].parentNode.insertBefore(rows[i + 1], rows[i]); 
211      switching = true; 
212      // Each time a switch is done, increase this count by 1: 
213      switchcount ++; 
214    } else { 
215      /* If no switching has been done AND the direction is "asc", 
216      set the direction to "desc" and run the while loop again. */ 
217      if (switchcount == 0 && dir == "asc") { 
218        dir = "desc"; 
219        switching = true; 
220
221
222
223
224 
225 
226 
227 
228</script>