Portal Función Pública
Se ha producido un error al procesar la plantilla.
Can't convert this string to number: "'%20%2B%20agUrl%20%2B%20'" The blamed expression: ==> entryId?number [in template "418512#418548#41017127" at line 387, column 52] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign entry = dlFileEntryService.ge... [in template "418512#418548#41017127" at line 387, column 5] ----
1<style type="text/css">
2.radius-box-fp-gray {
3 margin-bottom: 30px;
4 border: 1px solid #e1e1e1;
5 }
6
7 .card-pub-detalle {
8 padding: 20px 20px;
9 }
10
11 .card-pub-detalle .etiqueta-manual {
12 background-color: #c15810;
13 padding: 3px 10px 3px 8px;
14 margin-right: 10px;
15 display: inline-block;
16 font-style: italic;
17 color: #ffffff;
18 float: left;
19 clear: both;
20 }
21
22 .card-pub-detalle .etiqueta-guia {
23 background-color: #224a96;
24 padding: 3px 10px 3px 8px;
25 margin-right: 10px;
26 display: inline-block;
27 font-style: italic;
28 color: #ffffff;
29 float: left;
30 clear: both;
31 }
32
33 .card-pub-detalle .etiqueta-cartilla {
34 background-color: #01634b;
35 padding: 3px 10px 3px 8px;
36 margin-right: 10px;
37 display: inline-block;
38 font-style: italic;
39 color: #ffffff;
40 float: left;
41 clear: both;
42 }
43
44 .card-pub-detalle .etiqueta-investigacion {
45 background-color: #53228a;
46 padding: 3px 10px 3px 8px;
47 margin-right: 10px;
48 display: inline-block;
49 font-style: italic;
50 color: #ffffff;
51 float: left;
52 clear: both;
53 }
54
55 .date-news #date-home-publicaciones {
56 font-weight: 600;
57 color: #3366cc;
58 padding: 3px 0 3px 0;
59 display: inline-block;
60 }
61
62 .card-pub-detalle {
63 padding: 20px 20px 0 20px;
64 }
65
66 .card-pub-detalle hr {
67 margin: 20px 0 20px 0;
68 border: 0;
69 border-top: 1px solid #3366cc;
70 width: 60px
71 }
72
73 .portadas-home-publicaciones {
74 margin: 0 auto;
75 text-align: left;
76 }
77
78 .portadas-home-publicaciones img {
79 width: 100%;
80 margin-bottom: 20px;
81 border: 2px solid #d3d3d3;
82 }
83
84 .date-news span {
85 margin-left: 0px;
86 }
87
88 .clear-hom-pub {
89 height: 1px;
90 clear: both;
91 }
92
93 .card-pub-detalle h4 {
94 margin-top: 0;
95 }
96
97
98 /*Tables*/
99 .card-pub-detalle table {
100 font-size: 0.9em;
101 margin-top: 20px;
102 margin-left: -15px;
103 }
104
105 .card-pub-detalle table .table-item-publicacion {
106 font-weight: 600;
107 border: none;
108 line-height: 14px;
109 }
110
111 .card-pub-detalle table .table-descripcion-item {
112 border: none;
113 line-height: 12px;
114 }
115
116 .col-bot-det-pub {
117 margin: 10px 0;
118 }
119
120 .contenedor-botones-det {
121 margin: 0 0;
122 padding: 0 0;
123 text-align: center;
124 clear: both;
125 }
126
127 .contenedor-botones-det .boton-borde-azul-new a {
128 border: 2px solid #3366cc;
129 background-color: #fff;
130 padding: 12px 25px;
131 color: #3366cc;
132 border-radius: 40px;
133 font-size: 1.1em;
134 font-weight: 500;
135 text-decoration: none;
136 transition: all 0.2s;
137 text-align: center;
138 display: block;
139 }
140
141 .contenedor-botones-det .boton-borde-azul-new a:hover {
142 background-color: #3366cc;
143 color: #fff;
144 font-weight: 500;
145 border-color: #3366cc;
146 }
147
148 .contenedor-botones-det .boton-borde-azul-new a:focus {
149 outline: none;
150 box-shadow: 0 0 0 3px #819dc9;
151 }
152
153 .contenedor-botones-det .boton-azul-new a {
154 border: 2px solid #3366cc;
155 background-color: #3366cc;
156 padding: 12px 25px;
157 color: #ffffff;
158 border-radius: 40px;
159 font-size: 1.1em;
160 font-weight: 500;
161 text-decoration: none;
162 transition: all 0.2s;
163 text-align: center;
164 display: block;
165 }
166
167 .contenedor-botones-det .boton-azul-new a:hover {
168 background-color: #c15810;
169 color: #fff;
170 font-weight: 500;
171 border-color: #5b270a;
172 }
173
174 .contenedor-botones-det .boton-azul-new a:focus {
175 outline: none;
176 box-shadow: 0 0 0 3px #819dc9;
177 }
178
179
180.add-comment .boton-azul-new a {
181 border: 2px solid #3366cc;
182 background-color: #fff;
183 padding: 12px 25px;
184 color: #3366cc;
185 border-radius: 40px;
186 font-size: 1.1em;
187 font-weight: 500;
188 text-decoration: none;
189 transition: all 0.2s;
190 text-align: center;
191 display: block;
192 width:400px;
193 }
194
195 .add-comment .boton-azul-new a:hover {
196 background-color: #3366cc;
197 color: #fff;
198 font-weight: 500;
199 border-color: #3366cc;
200 }
201
202 .add-comment .boton-azul-new a:focus {
203 outline: none;
204 box-shadow: 0 0 0 3px #819dc9;
205 }
206/*.add-comment .subscribe-link a {
207 border: 2px solid #3366cc;
208 background-color: #fff;
209 padding: 5px 12px 5px 12px;
210 color: #3366cc;
211 border-radius: 40px;
212 font-size: 1em;
213 font-weight: 500;
214 text-decoration: none;
215 transition: all 0.2s;
216 text-align: center;
217 display: block;
218 width:300px;
219 margin-bottom: 10px;
220
221 }
222
223 .add-comment .subscribe-link a:hover {
224 background-color: #3366cc;
225 color: #fff;
226 font-weight: 500;
227 border-color: #3366cc;
228 }
229
230 .add-comment .subscribe-link a:focus {
231 outline: none;
232 box-shadow: 0 0 0 3px #819dc9;
233 }*/
234 .contenedor-botones-det hr {
235 margin-top: 1px;
236 margin-bottom: 1px;
237 border-top: 1px solid #d3d3d3;
238 clear: both;
239 }
240
241 .botones-compartir {
242 margin: 8px 0;
243 display: flex;
244 flex-direction: row;
245 justify-content: space-evenly;
246 align-items: center;
247 }
248
249 .icono-compartir-in span {
250 font-size: 23px;
251 width: 20px;
252 margin-left: 5px;
253 cursor: pointer;
254 }
255
256 .icono-compartir-fb span {
257 font-size: 23px;
258 width: 20px;
259 margin-left: 5px;
260 cursor: pointer;
261
262 }
263
264 .icono-compartir-tw span {
265 font-size: 23px;
266 width: 20px;
267 margin-left: 5px;
268 cursor: pointer;
269 }
270
271 #cifras-redes-compartidas {
272 font-weight: 500;
273 font-size: 0.8em;
274 margin-left: 2px;
275 margin-top: 5px;
276 }
277
278 #num-visualizaciones {
279 font-weight: 500;
280 font-size: 1em;
281 margin-left: 2px;
282 }
283
284 #num-descargas {
285 font-weight: 500;
286 font-size: 1em;
287 margin-left: 2px;
288 }
289
290 .vistas-descargas-publicacion img {
291 width: 25px;
292 margin: 0 3px;
293 }
294
295 .vistas-descargas-publicacion {
296 margin: 30px 0;
297 display: flex;
298 flex-direction: row;
299 justify-content: space-evenly;
300 }
301
302 .votacion-det-pub-float {
303 float: left;
304 }
305
306 .imgs-visu-desc .mdi {
307 font-size: 23px !important;
308 width: 20px;
309 }
310
311 .taglib-ratings.stars {
312 border: 1px solid transparent;
313 display: inline-block;
314 margin: 0 3px;
315 padding: 4px;
316 position: relative;
317 vertical-align: middle;
318 }
319
320 .taglib-ratings.stars .liferay-rating-vote {
321 left: -1px;
322 padding: 4px;
323 position: absolute;
324 right: -1px;
325 top: -1px;
326 }
327
328 .taglib-ratings.stars .liferay-rating-vote>div {
329 background: #fff;
330 border: 1px solid #333;
331 clip: rect(0 0 0 0);
332 padding: 4px;
333 position: absolute;
334 width: 120px;
335 }
336
337 .taglib-ratings.stars:hover .liferay-rating-vote>div,
338 .taglib-ratings.stars .liferay-rating-vote.rating-focused>div {
339 clip: auto;
340 }
341
342 .taglib-ratings.stars .rating-content,
343 .taglib-ratings.stars .rating-label-element {
344 display: inline;
345 }
346
347 .taglib-ratings.stars .rating-label-element {
348 color: #333;
349 font-size: 0.9em;
350 margin-left: 0.5em;
351 }
352
353 .taglib-ratings.stars .liferay-rating-score {
354 padding-left: 0;
355 }
356.boton-descargar-publicaciones-eva a {
357width: max-content;
358 border: 2px solid #3366cc;
359background-color: #fff;
360 padding: 12px 25px;
361color: #3366cc;
362 border-radius: 40px;
363font-size: 1.1em;
364font-weight: 500;
365 text-decoration: none;
366transition: all 0.2s;
367text-align: center;
368display: block;
369}
370</style>
371<#-- Web content templates are used to lay out the fields defined in a web content structure. Please use the left panel
372 to quickly add commonly used variables. Autocomplete is also available and can be invoked by typing "${" . -->
373 <#setting locale="es_ES">
374 <#assign
375 serviceContext=staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() />
376 <#assign themeDisplay=serviceContext.getThemeDisplay() />
377 <#assign userid=serviceContext.getUserId() />
378 <#assign url=themeDisplay.getURLCurrent() />
379 <#assign currentUrl = themeDisplay.getPortalURL()/>
380 <#assign entryId= httpUtil.getParameter(url,"entryId", false) />
381 <#assign portalentryId=httpUtil.getParameter(url,"_"+portalUtil.getPortletId(renderRequest)+"_entryId", false) />
382 <#assign
383 dlFileEntryService=serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
384 <#assign
385 dlFileEntryTypeService=serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryTypeService') />
386<#if entryId?has_content>
387 <#assign entry=dlFileEntryService.getFileEntry(entryId?number) />
388<#else>
389 <#assign entry=dlFileEntryService.getFileEntry(portalentryId?number) />
390
391</#if>
392 <#assign assetEntryLocalServiceUtil = objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil")
393 assetEntry = assetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",entry.getFileEntryId())
394 renderer = assetEntry.getAssetRenderer()
395 fields = renderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues() >
396 <#if fields?has_content>
397 <#list fields as field>
398 <#if field.getName() == "EnlaceAudiolibro">
399 <#assign urlaudiolibro = field.getValue().getString(locale) >
400 </#if>
401 <#if field.getName() == "TituloPublicacion">
402 <#assign titulo = field.getValue().getString(locale) >
403 </#if>
404 <#if field.getName() == "EquipoTransversal">
405 <#assign equipo = field.getValue().getString(locale) >
406 </#if>
407 <#if field.getName()=="EnlaceImagenSalaDePrensa">
408 <#assign enlaceSalaDePrensa=field.getValue().getString(locale)>
409 </#if>
410 </#list>
411 </#if>
412
413 <#assign entryType=dlFileEntryTypeService.getFileEntryType(entry.getFileEntryTypeId()) />
414 <#assign
415 assetTagsLocalService=serviceLocator.findService('com.liferay.asset.kernel.service.AssetTagLocalService') />
416 <#assign
417 categorias=assetTagsLocalService.getTags("com.liferay.document.library.kernel.model.DLFileEntry",entry.getFileEntryId())
418
419
420 />
421
422 <#assign UserLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService")
423 entidad = UserLocalService.getUserById(entry.getUserId())
424 />
425 <@liferay_util["html-top"]>
426 <meta property="og:url" content="${currentUrl}${url}">
427 <#if titulo?has_content>
428 <meta property="og:title" content="${titulo}">
429 </#if>
430 <#if !titulo?has_content>
431 <meta property="og:title" content="${entry.getTitle()}">
432 </#if>
433
434 <meta property="og:image" content="${currentUrl}/documents/${entry.getRepositoryId()}/${entry.getFolderId()}/${entry.getFileName()}/${entry.getUuid()}?version=${entry.getVersion()}&documentThumbnail=1">
435
436
437 <meta name="twitter:card" content="summary_large_image">
438 <meta name="twitter:url" content="${currentUrl}${url}">
439 <#if titulo?has_content>
440 <meta property="og:description" content="${titulo}">
441 <meta name="twitter:title" content="${titulo}">
442 <meta name="twitter:description" content="${titulo}">
443 </#if>
444 <#if !titulo?has_content>
445 <meta property="og:description" content="${entry.getTitle()}">
446 <meta name="twitter:title" content="${entry.getTitle()}">
447 <meta name="twitter:description" content="${entry.getTitle()}">
448 </#if>
449 <meta name="twitter:image" content="${currentUrl}/documents/${entry.getRepositoryId()}/${entry.getFolderId()}/${entry.getFileName()}/${entry.getUuid()}?version=${entry.getVersion()}&documentThumbnail=1">
450
451 </@>
452
453</liferay-util:html-top>
454<style type="text/css">
455 .h1-publicaciones {font-size: 34px; font-weight: 400; color: #333;font-family: 'Work Sans', sans-serif; line-height: 1.15;}
456 .h2-publicaciones {font-weight: 600;font-size: 19.6px; margin: 1.05em 0;font-family: 'Work Sans', sans-serif;line-height: 1.15;}
457 .h2-publicaciones a {color: #333; text-decoration: none;}
458 .h2-publicaciones a:hover{color: #337AB7;}
459 .h2-publicaciones a:active{color: #253e68;}
460 .h2-publicaciones a:focus{color: #337AB7;}
461 .h2-publicaciones-detalle {font-family: 'Work Sans', sans-serif;line-height: 1.15;font-size: 22px;}
462</style>
463 <link href="https://cdn.jsdelivr.net/npm/@mdi/font@6.5.95/css/materialdesignicons.min.css" rel="stylesheet"
464 type="text/css" />
465 <script>
466 $(document).ready(function(){
467 $(".add-comment").find('span').addClass("boton-azul-new")
468 })
469 </script>
470
471 <div class="col-md-12" id="entry_${entry.getFileEntryId()}">
472
473 <div class="card-pub-detalle">
474 <!-- Inicio Card 1 -->
475 <div>
476 <#if enlaceSalaDePrensa?has_content>
477 <div class="col-md-4 portadas-home-publicaciones"><img alt=""
478 src="${enlaceSalaDePrensa}">
479 </div>
480 </#if>
481 <#if !enlaceSalaDePrensa?has_content>
482 <#if entry.getMimeType()?contains("pdf")>
483 <div class="col-md-4 portadas-home-publicaciones"><img alt=""
484 src="/documents/${entry.getRepositoryId()}/${entry.getFolderId()}/${entry.getFileName()}/${entry.getUuid()}?version=${entry.getVersion()}&documentThumbnail=1">
485 </div>
486 <#else>
487 <div class="col-md-4 portadas-home-publicaciones"><img alt=""
488 src="/documents/${entry.getRepositoryId()}/${entry.getFolderId()}/${entry.getFileName()}/${entry.getUuid()}?version=${entry.getVersion()}&imageThumbnail=1">
489 </div>
490 </#if>
491 </#if>
492
493 <div class="col-md-8">
494 <#if entryType.getName()?contains("Manual")>
495 <p class="etiqueta-manual">${entryType.getName()}</p>
496 <#elseif entryType.getName()?contains("Guía")>
497 <p class="etiqueta-guia">${entryType.getName()}</p>
498 <#elseif entryType.getName()?contains("Cartilla")>
499 <p class="etiqueta-cartilla">${entryType.getName()}</p>
500 <#elseif entryType.getName()?contains("Investigacion")>
501 <p class="etiqueta-investigacion">${entryType.getName()}</p>
502 <#else>
503 <p class="etiqueta-guia">${entryType.getName()}</p>
504 </#if>
505
506 <p class="date-news"><span id="date-home-publicaciones"> Fecha
507 publicación:</span> ${entry.getCreateDate()?string("dd 'de' MMMMM 'de'
508 yyyy")}
509 </p>
510
511 <div class="clear-hom-pub"> </div>
512 <#if titulo?has_content>
513 <h2 class="h2-publicaciones-detalle">${titulo}</h2>
514 </#if>
515 <#if !titulo?has_content>
516 <h2 class="h2-publicaciones-detalle">${entry.getTitle()}</h2>
517 </#if>
518
519 <div>
520 <table class="table table-hover">
521 <thead>
522 <tr>
523 <td class="table-item-publicacion">Publicado por:</td>
524 <td class="table-descripcion-item">${entidad.getFirstName()} ${entidad.getLastName()}</td>
525 </tr>
526 </thead>
527 <tbody>
528 <#if equipo?has_content>
529 <tr>
530 <td class="table-item-publicacion">Equipo transversal:</td>
531 <td class="table-descripcion-item">${equipo?replace("\"","")?replace("[","")?replace("]","")}
532 </td>
533 </tr>
534 </#if>
535 <!-- <tr>
536 <td class="table-item-publicacion">Versión:</td>
537 <td class="table-descripcion-item">${entry.getVersion()}</td>
538 </tr>-->
539 <tr>
540 <td class="table-item-publicacion">Fecha actualización:</td>
541 <td class="table-descripcion-item">${entry.getModifiedDate()?string("dd
542 'de'
543 MMMMM 'de' yyyy")}</td>
544 </tr>
545 <tr>
546 <td class="table-item-publicacion">Palabras clave:</td>
547 <td class="table-descripcion-item">
548
549 <#list categorias as categoria>
550 <#if (categoria?index+1)==categorias?size>
551 ${categoria.getName()}
552 <#else>
553 ${categoria.getName()},
554 </#if>
555
556 </#list>
557
558 </td>
559 </tr>
560 </tbody>
561 </table>
562 </div>
563 </div>
564 </div>
565 <!-- Fin Card 1 -->
566
567 <div class="col-md-12 card-pub-detalle">
568 <p>${entry.getDescription()}</p>
569 </div>
570 </div>
571 </div>
572 <div class="col-md-12">
573 <div class="contenedor-botones-det">
574 <hr>
575 <div class="col-md-4">
576 <@liferay_ui["ratings"] className="com.liferay.document.library.kernel.model.DLFileEntry"
577 classPK=entry.getFileEntryId() type="stars" />
578 </div>
579
580 <div class="col-md-4">
581 <div class="botones-compartir imgs-visu-desc">
582 <span class="mdi mdi-cloud-download-outline"></span> <span class="num-descargas">${entry.getReadCount()} descargas</span>
583 </div>
584 </div>
585
586 <div class="col-md-4">
587 <div class="botones-compartir">
588 Compartir en
589 <#if titulo?has_content>
590 <a class="icono-compartir-in" target="_blank" onclick="window.open('https://www.linkedin.com/sharing/share-offsite/?url='+encodeURIComponent('${themeDisplay.getURLPortal()+url}'), 'linkedin-share-dialog','width=626,height=436');return false;"><span
591 class="mdi mdi-linkedin"></span></a>
592 </#if>
593 <#if !titulo?has_content>
594 <a class="icono-compartir-in" target="_blank" onclick="window.open('https://www.linkedin.com/sharing/share-offsite/?url='+encodeURIComponent('${themeDisplay.getURLPortal()+url}'), 'linkedin-share-dialog','width=626,height=436');return false;"><span
595 class="mdi mdi-linkedin"></span></a>
596 </#if>
597
598 <a class="icono-compartir-fb"
599 onclick="window.open('https://www.facebook.com/sharer/sharer.php?kid_directed_site=0&sdk=joey&u='+encodeURIComponent('${themeDisplay.getURLPortal()+url}/')+'&display=popup&ref=plugin&src=share_button', 'facebook-share-dialog','width=626,height=436');return false;"><span class="mdi mdi-facebook"></span></a>
600 <#if titulo?has_content>
601 <a class="icono-compartir-tw" target="_blank"
602 rel="canonical" href="https://twitter.com/intent/tweet?url=${themeDisplay.getURLPortal()+url}&text=${titulo}"><span class="mdi mdi-twitter"></span></a>
603 </#if>
604 <#if !titulo?has_content>
605 <a class="icono-compartir-tw" target="_blank"
606 rel="canonical" href="https://twitter.com/intent/tweet?url=${themeDisplay.getURLPortal()+url}&text=${entry.getTitle()}"><span class="mdi mdi-twitter"></span></a>
607 </#if>
608 </div>
609 </div>
610
611 <hr>
612 </div>
613
614
615
616 <div class="contenedor-botones-det">
617 <div class="col-md-4">
618 <div class="col-bot-det-pub" style="margin-bottom:20px">
619 <!--<span class="boton-borde-azul-new"><a href="#visor-comentario" class="boton-borde-azul-new">Comentar publicación</a></span>--></div>
620 </div>
621 <#if urlaudiolibro?has_content>
622 <div class="col-md-4">
623 <div class="col-bot-det-pub"><span class="boton-azul-new"><a href="${urlaudiolibro}"
624 class="boton-azul-new">Escuchar audiolibro</a></span></div>
625 </div>
626 </#if>
627
628
629 <div class="col-md-4">
630 <div class="col-bot-det-pub"><span class="boton-descargar-publicaciones-eva"><a href="/documents/${entry.getRepositoryId()}/${entry.getFolderId()}/${entry.getFileName()}/${entry.getUuid()}?version=${entry.getVersion()}&download=1"
631 class="boton-borde-azul-new">Descargar publicación</a></span></div>
632 </div>
633 </div>
634
635
636 </div>
637
638 <iframe
639 src="/documents/${entry.getRepositoryId()}/${entry.getFolderId()}/${entry.getFileName()}/${entry.getUuid()}?version=${entry.getVersion()}"
640 style="width:100%; height:700px;" frameborder="0"></iframe>
641 <section id="visor-comentario"></section>
Se ha producido un error al procesar la plantilla.
Can't convert this string to number: "'%20%2B%20agUrl%20%2B%20'" The blamed expression: ==> entryId?number [in template "418512#418548#41017131" at line 18, column 60] ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign entry = dlFileEntryService.ge... [in template "418512#418548#41017131" at line 18, column 13] ----
1<#-- Web content templates are used to lay out the fields defined in a web content structure. Please use the left panel
2 to quickly add commonly used variables. Autocomplete is also available and can be invoked by typing "${" . -->
3 <#setting locale="es_ES">
4 <#assign
5 serviceContext=staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext() />
6 <#assign themeDisplay=serviceContext.getThemeDisplay() />
7 <#assign userid=serviceContext.getUserId() />
8 <#assign url=themeDisplay.getURLCurrent() />
9 <#assign entryId=httpUtil.getParameter(url, "entryId" , false) />
10 <#assign urlsinparametros=themeDisplay.getPortalURL() +url?split('?')[0] />
11 <#assign
12 portalentryId=httpUtil.getParameter(url,"_com_liferay_contacts_web_portlet_ContactsCenterPortlet_entryId",
13 false) />
14 <#assign
15 dlFileEntryService=serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryService') />
16
17 <#if entryId?has_content>
18 <#assign entry=dlFileEntryService.getFileEntry(entryId?number) />
19 <#else>
20 <#assign entry=dlFileEntryService.getFileEntry(portalentryId?number) />
21
22 </#if>
23
24
25 <#assign UserLocalService=serviceLocator.findService("com.liferay.portal.kernel.service.UserLocalService")
26 usuarioDoc=UserLocalService.getUserById(entry.getUserId()) />
27 <#assign DLAppService=serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")>
28 <!--
29<#assign entries = DLAppService.getFileEntries(entry.getRepositoryId(),entry.getFolderId()) > countentries-->
30
31 <#assign countentries=DLAppService.getGroupFileEntriesCount(entry.getGroupId(), entry.getUserId())>
32 <#assign entries=DLAppService.getGroupFileEntries(entry.getGroupId(), entry.getUserId(),0,countentries)>
33 <!--<#assign entries = DLAppService.getFileEntries(entry.getRepositoryId(),entry.getFolderId()) >-->
34 <#assign
35 dlFileEntryTypeService=serviceLocator.findService('com.liferay.document.library.kernel.service.DLFileEntryTypeService') />
36 <#assign
37 SocialRelationLocalServiceUtil=serviceLocator.findService('com.liferay.social.kernel.service.SocialRelationLocalService')
38 showFollowButton=SocialRelationLocalServiceUtil.isRelatable(userid,entry.getUserId(),8)
39 showUnFollowButton=SocialRelationLocalServiceUtil.hasRelation(userid,entry.getUserId(), 8)
40 followurl=renderResponse.createActionURL() unfollowurl=renderResponse.createActionURL() />
41 ${followurl.setPortletId('com_liferay_contacts_web_portlet_ContactsCenterPortlet')}
42 ${followurl.setParameter("javax.portlet.action", "addSocialRelation")}
43 ${followurl.setParameter("type", "8")}
44 ${followurl.setParameter("userIds",entry.getUserId()?string)}
45 ${followurl.setParameter("entryId", entry.getFileEntryId()?string)}
46 ${unfollowurl.setPortletId('com_liferay_contacts_web_portlet_ContactsCenterPortlet')}
47 ${unfollowurl.setParameter("javax.portlet.action", "deleteSocialRelation")}
48 ${unfollowurl.setParameter("type", "8")}
49 ${unfollowurl.setParameter("userIds",entry.getUserId()?string)}
50 ${unfollowurl.setParameter("entryId", entry.getFileEntryId()?string)}
51 <#assign
52 assetEntryLocalServiceUtil=objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil")
53 assetEntry=assetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",entry.getFileEntryId())
54 renderer=assetEntry.getAssetRenderer()
55 fields=renderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()>
56 <#if fields?has_content>
57 <#list fields as field>
58 <#if field.getName()=="EnlaceAudiolibro">
59 <#assign urlaudiolibro=field.getValue().getString(locale)>
60 </#if>
61 <#if field.getName()=="TituloPublicacion">
62 <#assign titulo=field.getValue().getString(locale)>
63 </#if>
64 </#list>
65 </#if>
66 <div class="cuerpo">
67
68 <div id="logo-entidad"><img alt="" src="${usuarioDoc.getPortraitURL(themeDisplay)}"></div>
69
70 <div class="radius-box-fp-gray" id="ultimas-noticias_sp">
71 <div class="h-boletin-head" id="detalle-publicacion-sidebar">
72 <div class="entidad-autora-tag">Entidad autora de esta publicación:</div>
73
74 <div class="entidad-autora">${usuarioDoc.getFirstName()} ${usuarioDoc.getLastName()}
75 </div>
76
77 <div class="entidad-autora-nombrecompleto txt-capital">${usuarioDoc.getJobTitle()?lower_case}</div>
78
79 <div id="contenedor-botones">
80 <!-- <span id="boton-azul-new"><a
81 href="${usuarioDoc.getDisplayURL(themeDisplay)?string}"
82 id="boton-azul-new">Ver perfil</a></span> -->
83 <!-- <#if showFollowButton && !showUnFollowButton>
84 <span id="boton-borde-azul-new"><a href="${followurl?string+"
85 &entryId="+entry.getUserId()?string}"
86 id="boton-borde-azul-new">Seguir</a></span>
87 </#if>
88 <#if showUnFollowButton>
89 <span id="boton-borde-azul-new"><a href="${unfollowurl?string+"
90 &entryId="+entry.getUserId()?string}"
91 id="boton-borde-azul-new">Dejar de seguir</a></span>
92 </#if> -->
93
94 </div>
95
96 <hr>
97 <h2>Últimas<br>
98 publicaciones</h2>
99
100 <hr>
101 <#if entries?has_content>
102 <#list entries?sort_by("createDate")?reverse as curFileEntry>
103 <#if curFileEntry?counter < 6>
104 <div>
105 <#assign
106 entrylist=dlFileEntryService.getFileEntry(curFileEntry.fileEntryId) />
107 <#assign
108 entryType=dlFileEntryTypeService.getFileEntryType(entrylist.getFileEntryTypeId()) />
109 <#if entryType.getName()?contains("Manual")>
110 <p class="etiqueta-manual">${entryType.getName()}</p>
111 </#if>
112 <#if entryType.getName()?contains("Guía")>
113 <p class="etiqueta-guia">${entryType.getName()}</p>
114
115 </#if>
116 <#if entryType.getName()?contains("Cartilla")>
117 <p class="etiqueta-cartilla">${entryType.getName()}</p>
118 </#if>
119 <#if entryType.getName()?contains("Investigacion")>
120 <p class="etiqueta-investigacion">${entryType.getName()}</p>
121 </#if>
122 <p class="date-news">${curFileEntry.createDate?string("dd 'de' MMMMM
123 'de' yyyy")}</p>
124
125 <h5><a class="link-noticia_eva" href="${"/web/eva/detalle-publicacion?entryId="+curFileEntry.fileEntryId}">
126 <#assign
127 assetEntryLocalServiceUtil=objectUtil("com.liferay.asset.kernel.service.AssetEntryLocalServiceUtil")
128 assetEntry=assetEntryLocalServiceUtil.getEntry("com.liferay.document.library.kernel.model.DLFileEntry",curFileEntry.fileEntryId)
129 renderer=assetEntry.getAssetRenderer()
130 fields=renderer.getDDMFormValuesReader().getDDMFormValues().getDDMFormFieldValues()>
131 <#if fields?has_content>
132 <#assign
133 tituloEntries=""/>
134 <#list fields as field>
135 <#if field.getName()=="TituloPublicacion">
136 <#assign
137 tituloEntries=field.getValue().getString(locale)>
138 </#if>
139 </#list>
140 </#if>
141 <#if tituloEntries?has_content>
142 ${tituloEntries}
143 </#if>
144 <#if !tituloEntries?has_content>
145 ${curFileEntry.title}
146 </#if>
147 </a></h5>
148
149 <hr>
150 </div>
151 <#else>
152 <#break>
153 </#if>
154 </#list>
155 </#if>
156
157
158
159 </div>
160 </div>
161
162 <div class="otra-busqueda" style="margin-top:10px">
163 <p id="boton-borde-azul-new"><a href="/web/eva/publicaciones"
164 id="boton-borde-azul-new">Realizar nueva búsqueda</a></p>
165 </div>
166 </div>