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@2083e755"; 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 168, 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 asset = curEntry.getAssetRenderer() />
105 <#assign journalArticle = asset.getArticle()>
106 <#assign document = saxReaderUtil.read(asset.getArticle().getContent()) />
107 <#assign rootElement = document.getRootElement()>
108
109 <#assign docXml = saxReaderUtil.read(asset.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 viewURL = assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry) />
133 <#assign viewURL = asset.getURLViewInContext(renderRequest, renderResponse, viewURL) />
134
135 <section class="parent-agr agr-news-list">
136 <section class="child-agr row">
137 <#if imgJson.groupId??>
138 <#assign url = "/documents/"+ imgJson.groupId +"/" +imgJson.fileEntryId +"/"+ imgJson.name +"/"+imgJson.uuid >
139 <article class="col-md-4">
140 <img class="agr--image--publisher" src="${url}" alt="${imgJson.alt}">
141 </article>
142
143 <article class="col-md-8">
144 <a class="agr--link--publisher" href="${viewURL}" title="ver más">
145 <h1 title="${titulo}" class="agr--title--publisher">
146 ${titulo}
147 </h1>
148 </a>
149
150 <span class="agr--date--publisher">
151 <#assign AgrDateText_DateObj = dateUtil.parseDate("yyyy-MM-dd", fecha, locale)>
152 ${dateUtil.getDate(AgrDateText_DateObj, "dd 'de' MMMMM 'de' yyyy", locale)}
153 </span>
154
155 <aside class="agr--text--publisher">
156 ${contenido}
157 </aside>
158 </article>
159 <#else>
160 <article class="col-md-12">
161 <a class="agr--link--publisher" href="${viewURL}" title="ver más">
162 <h1 title="${titulo}" class="agr--title--publisher">
163 ${titulo}
164 </h1>
165 </a>
166
167 <span class="agr--date--publisher">
168 <#assign AgrDateText_DateObj = dateUtil.parseDate("yyyy-MM-dd", fecha, locale)>
169 ${dateUtil.getDate(AgrDateText_DateObj, "dd 'de' MMMMM 'de' yyyy", locale)}
170 </span>
171
172 <aside class="agr--text--publisher">
173 ${contenido}
174 </aside>
175 </article>
176 </#if>
177 </section>
178 </section>
179 </#if>
180 </#list>
181</#if>