Repositorio histórico de noticias
- Auditoria General de la República
- Gestión del Conocimiento
- Repositorio histórico de noticias
NOTICIAS
Se ha producido un error al procesar la plantilla.
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@396f39dd"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign AgrDateText_DateObj = dateUti... [in template "20101#20127#263495" at line 171, column 57] ----
1<style>
2
3 .asset-entries-group-label {
4 display: none;
5 }
6
7 .agr-news-list {
8 margin: 10px 0;
9 }
10
11 .agr--image--publisher {
12 max-width: 100%;
13 width: 100%;
14 height: auto;
15 }
16
17 .agr--title--publisher {
18 position: relative;
19 margin-left: 5px;
20 font-size: 1.5rem;
21 }
22
23 .agr--title--publisher:after {
24 content: '';
25 position: absolute;
26 display: block;
27 left: -10px;
28 top: 6px;
29 width: 0;
30 height: 20px;
31 }
32
33 .agr--date--publisher {
34 font-style: italic;
35 display: block;
36 font-size: 0.8125rem;
37 color: #757575;
38 margin: 5px 0;
39 }
40
41 .agr--text--publisher {
42 height: 50px;
43 padding: 5px 0;
44 overflow: hidden;
45 text-align: justify;
46 }
47
48 .child-agr {
49 border-bottom: 1px solid #eee;
50 width: 100%;
51 padding: 15px 0;
52 margin: 15px 0;
53 }
54
55 .agr--link--publisher {
56 color: #0059A7;
57 transition: .3s;
58 }
59
60 .agr--link--publisher:hover {
61 text-decoration: none;
62 color: #3997D3;
63 }
64
65 @media (max-width: 766px) and (min-width: 320px) {
66
67 .agr--title--publisher {
68 margin: 10px 0px 10px 0;
69 font-size: 1.375rem;
70 }
71
72 .agr--title--publisher:after {
73 border: none;
74 }
75
76 .agr--image--publisher {
77 height: auto;
78 }
79 }
80
81 @media (max-width: 767px) and (orientation: landscape) {
82 .agr--image--publisher {
83 height: auto;
84 }
85
86 .agr--title--publisher {
87 margin: 10px 0;
88 }
89
90 .agr--title--publisher:after {
91 display: none;
92 }
93 }
94
95 @media (max-width: 979px) and (min-width: 768px) {
96 .agr--image--publisher {
97 height: auto;
98 }
99 }
100</style>
101
102<#if entries?has_content>
103 <#list entries as curEntry>
104 <#assign assetRenderer = curEntry.getAssetRenderer() />
105 <#assign journalArticle = assetRenderer.getAssetObject()>
106 <#assign document = saxReaderUtil.read(assetRenderer.getArticle().getContent()) />
107 <#assign rootElement = document.getRootElement()>
108
109 <#assign docXml = saxReaderUtil.read(assetRenderer.getArticle().getContent()) />
110
111 <!-- con esta linea obtengo la url de la imagen -->
112 <#assign xPathSelector = saxReaderUtil.createXPath("dynamic-element[@name='AgrImageText']/dynamic-content/text()")>
113 <!-- creo un objeto JSON para acceder a los atributos -->
114 <#assign imgNews = xPathSelector.selectSingleNode(rootElement).getStringValue()>
115
116 <#if imgNews??>
117
118 <#assign imgJson = jsonFactoryUtil.createJSONObject(imgNews)>
119
120 <!-- variable del campo titulo -->
121 <#assign rootElementTitle = docXml.getRootElement()/>
122 <#assign titulo = docXml.valueOf("//dynamic-element[@name='AgrTitleText']/dynamic-content/text()") />
123
124 <!-- variable del campo contenido -->
125 <#assign rootElementContent = docXml.getRootElement()/>
126 <#assign contenido = docXml.valueOf("//dynamic-element[@name='Content']/dynamic-content/text()") />
127
128 <!-- variable del campo fecha -->
129 <#assign rootElementDate = docXml.getRootElement()/>
130 <#assign fecha = docXml.valueOf("//dynamic-element[@name='AgrDateText']/dynamic-content/text()") />
131
132 <#assign
133 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, assetRenderer, curEntry, true)
134 viewURL = viewURL?keep_before("?redirect=")
135 />
136
137
138 <section class="parent-agr agr-news-list">
139 <section class="child-agr row">
140 <#if imgJson.groupId??>
141 <#assign url = "/documents/"+ imgJson.groupId +"/" +imgJson.fileEntryId +"/"+ imgJson.name +"/"+imgJson.uuid >
142 <article class="col-md-4">
143 <img class="agr--image--publisher" src="${url}" alt="${imgJson.alt}">
144 </article>
145
146 <article class="col-md-8">
147 <a class="agr--link--publisher" href="${viewURL}" title="ver más">
148 <h1 title="${titulo}" class="agr--title--publisher">
149 ${titulo}
150 </h1>
151 </a>
152
153 <span class="agr--date--publisher">
154 <#assign AgrDateText_DateObj = dateUtil.parseDate("yyyy-MM-dd", fecha, locale)>
155 ${dateUtil.getDate(AgrDateText_DateObj, "dd 'de' MMMMM 'de' yyyy", locale)}
156 </span>
157
158 <aside class="agr--text--publisher">
159 ${contenido}
160 </aside>
161 </article>
162 <#else>
163 <article class="col-md-12">
164 <a class="agr--link--publisher" href="${viewURL}" title="ver más">
165 <h1 title="${titulo}" class="agr--title--publisher">
166 ${titulo}
167 </h1>
168 </a>
169
170 <span class="agr--date--publisher">
171 <#assign AgrDateText_DateObj = dateUtil.parseDate("yyyy-MM-dd", fecha, locale)>
172 ${dateUtil.getDate(AgrDateText_DateObj, "dd 'de' MMMMM 'de' yyyy", locale)}
173 </span>
174
175 <aside class="agr--text--publisher">
176 ${contenido}
177 </aside>
178 </article>
179 </#if>
180 </section>
181 </section>
182 </#if>
183 </#list>
184</#if>