Consejos de Distrito por año | Ayuntamiento de Valencia - València
Aplicaciones no está disponible temporalmente.
Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy935.fetchLatestArticle(long)" threw an exception when invoked on com.sun.proxy.$Proxy935 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@10744760"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign article = JournalArticleServi... [in template "20115#20151#21526755" at line 15, column 17] ----
1<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
2
3<#assign customTitle= themeDisplay.getPortletDisplay().getTitle() />
4
5<#assign catPropLocalService = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") />
6
7 <#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
8
9 <#assign listaMap = {}>
10 <#assign listaView = {}>
11 <#assign listaOrd = []>
12 <#assign listaArticulos = []>
13 <#if entries?has_content>
14 <#list entries as curEntry>
15 <#assign article = JournalArticleService.fetchLatestArticle(getterUtil.getLong(curEntry.getClassPK())) />
16 <#assign entryId = curEntry.getClassPK() />
17 <#assign categories = catLocalService.getCategoryIds("com.liferay.journal.model.JournalArticle", getterUtil.getLong(entryId)) />
18 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
19 <#assign listaView = listaView + {entryId:viewURL}>
20 <#if categories?has_content>
21 <#list categories as c>
22 <#assign properties = catPropLocalService.getCategoryProperties(c)>
23 <#if properties?has_content>
24
25 <#list properties as p>
26 <#if p.getKey() == "orden">
27 <#assign catOrden = catPropLocalService.getCategoryProperty(c, "orden") >
28 <#assign listaOrd = listaOrd + [{"articulo":entryId,"categoria":catOrden.getValue()}]>
29 <#assign listaMap = listaMap + {entryId:c}>
30 </#if>
31
32 </#list>
33
34 </#if>
35 </#list>
36 </#if>
37 </#list>
38 </#if>
39 <#list listaOrd?sort_by(['categoria']) as m>
40 <#assign listaArticulos = listaArticulos + [m.articulo] >
41 </#list>
42
43<div class="container comisiones-plenos">
44 <div class="row">
45 <div class="col-12 pagina">
46 <h2 class="bloque_titulo">${customTitle}</h2>
47 <#assign x=2018>
48 <#assign actual = .now >
49 <#assign anyo = actual?string('yyyy')?number >
50
51 <div class="panel-group" id="accordion1" role="tablist" aria-multiselectable="true">
52
53 <#list anyo..x as i>
54
55 <#assign listaCategorias =[]>
56 <#assign listaCategoriasMap = {} >
57
58 <#if listaArticulos?has_content>
59 <#list listaArticulos?reverse as curEntry>
60
61 <#assign article = JournalArticleService.fetchLatestArticle(getterUtil.getLong(curEntry)) />
62
63 <#assign title = article.getTitle(locale) >
64 <#assign anyoArt = title?substring(0,4)>
65 <#if i == anyoArt?number>
66 <#assign entryId = curEntry />
67 <#assign categories = catLocalService.getCategoryIds("com.liferay.journal.model.JournalArticle", getterUtil.getLong(entryId)) />
68 <#if categories?has_content>
69 <#list categories as c>
70 <#if listaCategorias?seq_contains(c) >
71
72 <#else>
73
74 <#assign properties = catPropLocalService.getCategoryProperties(c)>
75 <#if properties?has_content>
76
77 <#list properties as p>
78 <#if p.getKey() == "orden">
79
80 <#assign listaCategorias = listaCategorias + [c]>
81 <#assign listaCategoriasMap = listaCategoriasMap + {c:anyoArt}>
82 </#if>
83 </#list>
84 </#if>
85 </#if>
86 </#list>
87
88 </#if>
89 </#if>
90 </#list>
91 </#if>
92 <div class="panel panel-default">
93 <div class="panel-heading" role="tab" id="year-${i}">
94 <span class="panel-title">
95 <a class="collapsed a-anyos-comisiones" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse${i}" aria-expanded="false">
96 <span class="iconoEnlacesRedesSociales fa fa-chevron-right"></span><span>${i}</span>
97 </a>
98 </span>
99 </div>
100
101 <div id="collapse${i}" class="collapse " role="tabpanel" aria-labelledby="year-${i}">
102 <div class="panel-body">
103 <div class="row" id="${i}" class="collapse" data-parent="year-${i}">
104 <div class="panel-group" id="accordion${i}" role="tablist" aria-multiselectable="true" style="width:100%">
105 <#list listaCategoriasMap?keys as key>
106 <#assign cate = catLocalService.getAssetCategory(key?number?long)>
107 <div class="panel panel-default">
108 <div class="panel-heading" role="tab" id="category-${i}${cate.getCategoryId()}">
109 <h4 class="panel-title">
110 <a class="collapsed a-anyos-comisiones" role="button" data-toggle="collapse" data-parent="#accordion${i}" href="#collapse${i}${cate.getCategoryId()}" aria-expanded="false" >
111 <span class="iconoEnlacesRedesSociales fa fa-chevron-right"></span> <span class="">${cate.getDescription(locale)}</span>
112 </a>
113 </h4>
114 </div>
115
116 <div id="collapse${i}${cate.getCategoryId()}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="category-${i}${cate.getCategoryId()}">
117 <div class="panel-body">
118 <#assign z = 0>
119 <#list listaMap?keys as curArt>
120 <#if listaMap[curArt] == key?number >
121 <#assign cArt = JournalArticleService.fetchLatestArticle(getterUtil.getLong(curArt)) />
122
123 <#assign content = cArt.getContentByLocale(locale) />
124
125 <#assign rootElement = saxReaderUtil.read(content).getRootElement() />
126 <#assign selectorCaracter = saxReaderUtil.createXPath("/root/dynamic-element[@name='caracter']") />
127
128
129 <#assign caracter = "" /> <#if selectorCaracter.selectSingleNode(rootElement)?has_content>
130 <#assign caracterAbr = selectorCaracter.selectSingleNode(rootElement).getStringValue()?replace("\"", "")?trim />
131 </#if>
132
133 <#if caracterAbr == "O">
134 <#assign caracter = languageUtil.get(locale,"actividad-organos-gobierno-ordinaria") >
135 </#if>
136 <#if caracterAbr == "E">
137 <#assign caracter = languageUtil.get(locale,"actividad-organos-gobierno-extraordinaria") >
138 </#if>
139 <#if caracterAbr == "EU">
140 <#assign caracter = languageUtil.get(locale,"actividad-organos-gobierno-eu")>
141 </#if>
142 <#if caracterAbr == "U">
143 <#assign caracter = languageUtil.get(locale,"actividad-organos-gobierno-urgente" )>
144 </#if>
145
146
147
148 <#assign titlecArt = cArt.getTitle(locale) >
149 <#assign anyocArt = titlecArt?substring(0,4)>
150 <#if i == anyocArt?number>
151 <#assign viewUrl = listaView[curArt]>
152 <#assign mescArt = "mes_${titlecArt?substring(5,7)}">
153 <#assign diacArt = titlecArt?substring(8,10)>
154 <#if z%3 == 0>
155 <#if z == 0>
156 <div class="row row-recurso" id="collapse${i}${mescArt}${diacArt}${cate.getCategoryId()}" class="collapse" data-parent="category-${i}${cate.getCategoryId()}" style="list-style:none;">
157 <#else>
158 </div>
159 <div class="row row-recurso" id="collapse${i}${mescArt}${diacArt}${cate.getCategoryId()}" class="collapse" data-parent="category-${i}${cate.getCategoryId()}" style="list-style:none;">
160 </#if>
161 </#if>
162 <div class="col-md-3 col-sm-12 recurso">
163 <a href="${themeDisplay.getURLCurrent()}/-/asset_publisher/${portletDisplay.getInstanceId()}/content/${cArt.getUrlTitle()}" alt="${cArt.getTitle(locale)}">
164 <div class="recurso-imagen">
165 <img src="/documents/20142/21327443/url.svg/b5446b33-b350-9f55-108c-f88d683ac9e5?t=1671699609810" style="width:40px;height:50px;" alt=""/>
166 <h3 class="mt-4">${diacArt} de <@liferay.language key="${mescArt}"/> de ${anyocArt} (${caracter})</h3>
167 </div>
168 </a>
169 </div>
170 <#assign z++>
171 </#if>
172 </#if>
173 </#list>
174 </div>
175 </div>
176 </div>
177 </div>
178 </#list>
179 </div>
180 </div>
181 </div>
182 </div>
183 </div>
184 </#list>
185
186 </div>
187 </div>
188 </div>
189</div>
190<style>
191.recurso {
192 float: left;
193 margin: 1em 2em 0em 1em;
194 position: relative;
195 width: 100%;
196 height: auto;
197 min-height: 75px;
198 overflow: hidden;
199 text-align: center;
200 padding: 10px;
201 border: 1px solid #eee;
202 border-radius: 5px;
203 box-shadow: 3px 3px 8px #ccc;
204}
205
206.recurso:hover {
207 text-decoration: underline;
208}
209
210.recurso img{
211 float: left;
212}
213.recurso h3 {
214 font-family: 'Montserrat', 'Calibri', Arial, Helvetica, sans-serif;
215 text-transform: uppercase;
216 margin-left: 0;
217 padding: 1em;
218 height: auto;
219 color: #000;
220 font-size: 0.8rem;
221 line-height: 130%;
222 text-align: left;
223 box-sizing: border-box;
224 font-weight: 600;
225 text-shadow: none;
226 display: table-cell;
227 vertical-align: middle;
228 width: calc(100% - 50px);
229}
230
231.recurso-imagen {
232 vertical-align: middle;
233
234}
235.recurso > div p {
236 font-size: 0.7em;
237 color: #333;
238 text-align: left;
239 line-height: 140%;
240 height: auto;
241 padding: 1em;
242 margin: 0;
243 max-height: fit-content;
244}
245
246@media only screen and (min-width: 1224px) {
247.row-recurso{
248 margin-left: 5em;
249}
250}
251
252</style>
253<script>
254
255$(document).ready(function(){
256
257 $('.panel-body').each(function(){
258 if (!$(this).find('img').length){
259 $(this).parent().parent().find('div').first().css("display","none")
260 }
261 })
262
263})
264
265$(".a-anyos-comisiones").click(function(){
266 if($(this).hasClass("icon-expand-alt"))
267 {
268 $(this).removeClass("icon-expand-alt");
269 $(this).addClass("icon-collapse-alt");
270 }
271 else if($(this).hasClass("icon-collapse-alt"))
272 {
273 $(this).addClass("icon-expand-alt");
274 $(this).removeClass("icon-collapse-alt");
275 }
276});
277</script>
Se ha producido un error al procesar la plantilla.
Java method "com.sun.proxy.$Proxy935.fetchLatestArticle(long)" threw an exception when invoked on com.sun.proxy.$Proxy935 object "com.liferay.journal.service.impl.JournalArticleLocalServiceImpl@10744760"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign article = JournalArticleServi... [in template "20115#20151#21549418" at line 19, column 17] ----
1<#assign catLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") />
2
3<#assign customTitle= themeDisplay.getPortletDisplay().getTitle() />
4
5<#assign catPropLocalService = serviceLocator.findService("com.liferay.asset.category.property.service.AssetCategoryPropertyLocalService") />
6
7 <#assign JournalArticleService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
8
9 <#assign dlFileEntryLocalService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
10
11 <#assign assetEntryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
12<!-- <#assign cont = 0>-->
13 <#assign listaMap = {}>
14 <#assign listaView = {}>
15 <#assign listaOrd = []>
16 <#assign listaArticulos = []>
17 <#if entries?has_content>
18 <#list entries as curEntry>
19 <#assign article = JournalArticleService.fetchLatestArticle(getterUtil.getLong(curEntry.getClassPK())) />
20 <#assign entryId = curEntry.getClassPK() />
21 <#assign categories = catLocalService.getCategoryIds("com.liferay.journal.model.JournalArticle", getterUtil.getLong(entryId)) />
22 <#assign viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
23 <#assign listaView = listaView + {entryId:viewURL}>
24 <#if categories?has_content>
25 <#list categories as c>
26 <#assign properties = catPropLocalService.getCategoryProperties(c)>
27 <#if properties?has_content>
28
29 <#list properties as p>
30 <#if p.getKey() == "orden">
31
32 <#assign catOrden = catPropLocalService.getCategoryProperty(c, "orden") >
33 <#assign listaOrd = listaOrd + [{"articulo":entryId,"categoria":catOrden.getValue()}]>
34 <#assign listaMap = listaMap + {entryId:c}>
35 </#if>
36
37 </#list>
38
39 </#if>
40 </#list>
41 </#if>
42 </#list>
43 </#if>
44 <!--${cont}-->
45 <#list listaOrd?sort_by(['categoria']) as m>
46 <#assign listaArticulos = listaArticulos + [m.articulo] >
47 </#list>
48
49
50
51
52<div class="container">
53 <div class="row">
54 <div class="col-12 pagina">
55 <h2>${customTitle}</h2>
56 <#assign x=2015>
57 <#assign actual = .now >
58 <#assign anyo = actual?string('yyyy')?number >
59
60 <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
61
62
63
64
65 <#assign listaCategorias =[]>
66 <#assign listaCategoriasMap = {} >
67
68 <#if listaArticulos?has_content>
69 <#list listaArticulos?reverse as curEntry>
70
71 <#assign article = JournalArticleService.fetchLatestArticle(getterUtil.getLong(curEntry)) />
72 <#assign aArticleXML = saxReaderUtil.read(article.getContentByLocale(locale)) />
73 <#assign anyoS= aArticleXML.valueOf("//dynamic-element[@name='fecha']/dynamic-content/text()") />
74 <#assign title = article.getTitle(locale) >
75 <#assign anyoArt = anyoS?substring(0,4)>
76
77 <#assign entryId = curEntry />
78 <#assign categories = catLocalService.getCategoryIds("com.liferay.journal.model.JournalArticle", getterUtil.getLong(entryId)) />
79 <#if categories?has_content>
80 <#list categories as c>
81 <#if listaCategorias?seq_contains(c) >
82
83 <#else>
84 <#assign properties = catPropLocalService.getCategoryProperties(c)>
85 <#if properties?has_content>
86
87 <#list properties as p>
88 <#if p.getKey() == "orden">
89
90 <#assign listaCategorias = listaCategorias + [c]>
91 <#assign listaCategoriasMap = listaCategoriasMap + {c:anyoArt}>
92 </#if>
93 </#list>
94 </#if>
95 </#if>
96 </#list>
97
98
99
100 </#if>
101 </#list>
102 </#if>
103 <#list listaCategoriasMap?keys as key>
104 <#assign cate = catLocalService.getAssetCategory(key?number?long)>
105 <div class="panel panel-default">
106 <div class="panel-heading" role="tab" id="category-${cate.getCategoryId()}">
107 <span class="panel-title">
108 <a class="collapsed a-anyos-consejos" role="button" data-toggle="collapse" data-target="#collapse${cate.getCategoryId()}" aria-expanded="false">
109 <span class="iconoEnlacesRedesSociales fa fa-chevron-right"></span><span>${cate.getTitle(locale)}</span>
110 </a>
111 </span>
112 </div>
113
114 <div id="collapse${cate.getCategoryId()}" class="collapse" role="tabpanel" aria-labelledby="category-${cate.getCategoryId()}">
115 <div class="panel-body">
116 <div class="row" id="${cate.getCategoryId()}" class="collapse" data-parent="category-${cate.getCategoryId()}">
117 <div class="panel-group" id="accordion${cate.getCategoryId()}" role="tablist" aria-multiselectable="true" style="width:100%">
118 <#list anyo..x as i>
119 <div class="panel panel-default">
120 <div class="panel-heading" role="tab" id="anyo-${cate.getCategoryId()}${i}">
121 <span class="panel-title">
122 <a class="collapsed a-anyos-consejos" role="button" data-toggle="collapse" href="#collapse${i}${cate.getCategoryId()}" aria-expanded="false">
123 <span class="iconoEnlacesRedesSociales fa fa-chevron-right"></span>
124 <span class="">${i}</span>
125 </a>
126 </span>
127 </div>
128
129 <div id="collapse${i}${cate.getCategoryId()}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="category-${cate.getCategoryId()}">
130 <div class="panel-body">
131 <#assign y = 0>
132 <#assign z = 0>
133 <#list listaMap?keys as curArt>
134 <#assign y++>
135 <#if listaMap[curArt] == key?number >
136 <#assign cArt = JournalArticleService.fetchLatestArticle(getterUtil.getLong(curArt)) />
137
138 <#assign titlecArt = cArt.getTitle(locale) >
139 <#assign anyocArt = titlecArt?substring(0,4)>
140
141 <#assign aArticleXML = saxReaderUtil.read(cArt.getContentByLocale(locale)) />
142 <#assign anyoC= aArticleXML.valueOf("//dynamic-element[@name='fecha']/dynamic-content/text()") />
143 <#assign anyocArt = anyoC?substring(0,4)>
144 <#assign enlaceNode = aArticleXML.valueOf("//dynamic-element[@name='enlace']/dynamic-content/text()") />
145 <#if i == anyocArt?number && enlaceNode?has_content>
146 <#assign jsonObject = enlaceNode?eval>
147 <#assign entryUuid = jsonObject.uuid />
148 <#assign entryGroupId = getterUtil.getLong(jsonObject.groupId) />
149 <#assign dlFileEntry = dlFileEntryLocalService.getDLFileEntryByUuidAndGroupId(entryUuid, entryGroupId) />
150 <#assign assetEntry = assetEntryLocalService.getEntry("com.liferay.document.library.kernel.model.DLFileEntry", dlFileEntry.fileEntryId) />
151 <#assign assetRenderer = assetEntry.assetRenderer />
152 <#assign enlace = assetRenderer.getURLDownload(themeDisplay) />
153 <!--enlace ${enlaceNode}-->
154 <#if z%3 == 0>
155 <#if z == 0>
156 <div class="row row-recurso" id="collapse${i}${cate.getCategoryId()}${y}" class="collapse" data-parent="category-${cate.getCategoryId()}" style="list-style:none;">
157 <#else>
158 </div>
159 <div class="row row-recurso" id="collapse${i}${cate.getCategoryId()}${y}" class="collapse" data-parent="category-${cate.getCategoryId()}" style="list-style:none;">
160 </#if>
161 </#if>
162 <div class="col-md-3 col-sm-12 recurso">
163 <a href='${enlace}' alt='${cArt.getTitle(locale)}'/>
164 <div class="recurso-imagen">
165 <img src="/documents/20142/21327443/pdf.svg/02ebca77-6ba2-7f2a-c3e4-1d20ddc5dd53?t=1671699609054" style="width:40px;height:50px;" alt=""/>
166 <h3 class="mt-4">${titlecArt}</h3>
167 </div>
168 </a>
169 </div>
170 <#if curArt?is_last>
171 </div>
172 </#if>
173 <#assign z++>
174 </#if>
175 </#if>
176 </#list>
177
178 </div>
179 </div>
180 </div>
181 </#list>
182 </div>
183 </div>
184 </div>
185 </div>
186 </div>
187 </div>
188 </div>
189 </div>
190 </#list>
191 </div>
192 </div>
193 </div>
194 </div>
195</div>
196<style>
197.recurso {
198 float: left;
199 margin: 1em 2em 0em 1em;
200 position: relative;
201 width: 100%;
202 height: auto;
203 min-height: 75px;
204 overflow: hidden;
205 text-align: center;
206 padding: 10px;
207 border: 1px solid #eee;
208 border-radius: 5px;
209 box-shadow: 3px 3px 8px #ccc;
210}
211
212.recurso:hover {
213 text-decoration: underline;
214}
215
216.recurso img{
217 float: left;
218}
219.recurso h3 {
220 font-family: 'Montserrat', 'Calibri', Arial, Helvetica, sans-serif;
221 text-transform: uppercase;
222 margin-left: 0;
223 padding: 1em;
224 height: auto;
225 color: #000;
226 font-size: 0.8rem;
227 line-height: 130%;
228 text-align: left;
229 box-sizing: border-box;
230 font-weight: 600;
231 text-shadow: none;
232 display: table-cell;
233 vertical-align: middle;
234 width: calc(100% - 50px);
235}
236
237.recurso-imagen {
238 vertical-align: middle;
239
240}
241.recurso > div p {
242 font-size: 0.7em;
243 color: #333;
244 text-align: left;
245 line-height: 140%;
246 height: auto;
247 padding: 1em;
248 margin: 0;
249 max-height: fit-content;
250}
251
252@media only screen and (min-width: 1224px) {
253.row-recurso{
254 margin-left: 5em;
255}
256}
257
258</style>
259<script>
260$(".a-anyos-consejos").click(function(){
261 if($(this).hasClass("icon-expand-alt"))
262 {
263 $(this).removeClass("icon-expand-alt");
264 $(this).addClass("icon-collapse-alt");
265 }
266 else if($(this).hasClass("icon-collapse-alt"))
267 {
268 $(this).addClass("icon-expand-alt");
269 $(this).removeClass("icon-collapse-alt");
270 }
271});
272
273$(document).ready(function(){
274
275 $('.panel-body').each(function(){
276 if (!$(this).find('img').length){
277 $(this).parent().parent().find('div').first().css("display","none")
278 }
279 });
280
281});
282</script>
283<style>
284 .a-anyos-consejos{
285 display: block;
286 padding: 10px 15px;
287 position: relative;
288 cursor:pointer;
289 font-family: inherit;
290 }
291</style>