An error occurred while processing the template.
Can't convert this string to number: "" The blamed expression: ==> img?keep_after("documents/")?keep_before("/")?number [in template "20097#20123#35306311" at line 54, column 30] ---- FTL stack trace ("~" means nesting-related): - Failed at: groupIdImage = img?keep_after("docume... [in template "20097#20123#35306311" at line 54, column 15] ----
1<style>
2 .card-subtitle .text-truncate{
3 font-style:italic;
4 font-size:11px;
5 font-weight:600;
6 }
7 .card-title{
8 font-size:20px;
9 font-weight:700;
10 line-height:1.2;
11 }
12 .card-body{
13 padding-right:0!important;
14 padding-left:0!important;
15 padding-top:.3rem!important;
16 }
17 .descripcion{
18 margin-top:.4rem;
19 }
20 .descripcion a{
21 color:#000;
22 }
23 .descripcion a:hover{
24 color:#000;
25 text-decoration:none;
26 }
27</style>
28<#macro truncate_text text limit>
29<#assign truncatedText = "" />
30<#if text?length gt limit>
31<#assign truncatedText = text?substring(0,limit)/>
32<#assign truncatedText = truncatedText + "..."/>
33${truncatedText}
34<#else>
35${text}
36</#if>
37</#macro>
38<div class="search-total-label">
39 ${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)}
40</div>
41<div class="display-card">
42 <ul class="card-page">
43 <#if entries?has_content>
44 <#list entries as entry>
45 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
46 <#if journalArticleLocalService.getLatestArticle(entry.getClassPK()).getArticleImageURL(themeDisplay)?has_content>
47 <#assign img = journalArticleLocalService.getLatestArticle(entry.getClassPK()).getArticleImageURL(themeDisplay) />
48 </#if>
49 <#assign
50 dlFileEntryService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService") />
51 <#if img?has_content>
52 <#assign
53 uuid1=img?keep_before("?")?keep_after_last("/")
54 groupIdImage = img?keep_after("documents/")?keep_before("/")?number
55 step1 = dlFileEntryService.getFileEntryByUuidAndGroupId(uuid1, groupIdImage)
56 />
57 </#if>
58 <#assign info_art2 = journalArticleLocalService.getLatestArticle(entry.getClassPK())>
59 <#assign fecha = info_art2.getDisplayDate()?datetime?string["MMM dd, yyyy"]>
60 <li class="card-page-item card-page-item-asset">
61 <div class="tarjeta-noticia">
62 <div class="card-item-first">
63 <#if img?has_content>
64 <#if step1.getDescription()?has_content>
65 <img class="noticia_reciente_image" src="${img}" alt="${step1.getDescription()}" style="width:100%"/>
66 <#else>
67 <img class="noticia_reciente_image" src="${img}" alt="${step1.getTitle()}" style="width:100%"/>
68 </#if>
69 <#else>
70 <img class="rel_dest_image" src="https://www.uninorte.edu.co/documents/13400067/14601182/Logo_Uninorte.jpg/48cf4a2c-1cb9-3ea3-f675-dc4096815673?t=1667419477389" alt="Uninorte logo" style="width:100%"/>
71 </#if>
72 </div>
73 <div class="card-body">
74 <div class="card-row">
75 <div class="autofit-col autofit-col-expand">
76 <section class="autofit-section">
77 <p class="card-subtitle">
78 <span class="text-truncate-inline">
79 <span class="text-truncate">
80 <#if fecha?contains("Jan")>
81 ${fecha?replace("Jan", "Ene")}
82 <#elseif fecha?contains("Apr")>
83 ${fecha?replace("Apr", "Abr")}
84 <#elseif fecha?contains("Aug")>
85 ${fecha?replace("Aug", "Ago")}
86 <#elseif fecha?contains("Dec")>
87 ${fecha?replace("Dec", "Dic")}
88 <#else>
89 ${fecha}
90 </#if>
91 </span>
92 </span>
93 </p>
94
95 <h3 class="card-title">
96 <a href="${entry.getViewURL()}">
97 ${stringUtil.shorten(entry.getHighlightedTitle(), 110)}
98 </a>
99 </h3>
100 <#if entry.isContentVisible()>
101 <div class="descripcion">
102 <#if info_art2.getDescription()?has_content>
103 <a href="${entry.getViewURL()}">
104 ${stringUtil.shorten(info_art2.getDescription(), 300)}
105 </a>
106 </#if>
107 </div>
108 </#if>
109 </section>
110 </div>
111 </div>
112 </div>
113 </div>
114 </li>
115 </#list>
116 </#if>
117 </ul>
118</div>