Search Bar
Sort
Type Facet
Search Results
An error occurred while processing the template.
Java method "com.sun.proxy.$Proxy47.getEntry(String, long)" threw an exception when invoked on com.sun.proxy.$Proxy47 object "com.liferay.asset.internal.service.AssetEntryAssetCategoryRelAssetEntryLocalServiceWrapper@b78ef1b"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign assetEntry = assetEntryLocalS... [in template "20097#20123#37857" at line 11, column 29] ----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") />
3<div class="search-total-label">
4 ${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)}
5</div>
6
7<div class="display-list">
8 <ul class="list-group" id="search-results-display-list">
9 <#if entries?has_content>
10 <#list entries as entry>
11 <#assign assetEntry = assetEntryLocalService.getEntry(entry.getClassName(),entry.getClassPK()) />
12 <#assign assetRenderer = assetEntry.getAssetRenderer() />
13 <li class="list-group-item list-group-item-flex">
14 <#if !entry.isTemporarilyUnavailable()>
15 <div class="autofit-col">
16 <#if entry.isThumbnailVisible()>
17 <span class="sticker">
18 <span class="sticker-overlay">
19 <img
20 alt="${languageUtil.get(locale, "thumbnail")}"
21 class="sticker-img"
22 src="${entry.getThumbnailURLString()}"
23 />
24 </span>
25 </span>
26 <#elseif entry.isUserPortraitVisible() && stringUtil.equals(entry.getClassName(), userClassName)>
27 <@liferay_ui["user-portrait"] userId=entry.getAssetEntryUserId() />
28 <#elseif entry.isIconVisible()>
29 <span class="sticker sticker-rounded sticker-secondary sticker-static">
30 <@clay.icon symbol="${entry.getIconId()}" />
31 </span>
32 </#if>
33 </div>
34
35 <div class="autofit-col autofit-col-expand">
36 <section class="autofit-section">
37 <div class="list-group-title">
38 <a href="${entry.getViewURL()}">
39 ${entry.getHighlightedTitle()}
40 </a>
41 </div>
42
43 <div class="search-results-metadata">
44 <p class="list-group-subtext">
45 <#if entry.isModelResourceVisible()>
46 <span class="subtext-item">
47 <strong>${entry.getModelResource()}</strong>
48 </span>
49 </#if>
50
51 <#if entry.isLocaleReminderVisible()>
52 <@liferay_ui["icon"]
53 icon="../language/${entry.getLocaleLanguageId()}"
54 message=entry.getLocaleReminder()
55 />
56 </#if>
57
58 <#if entry.isCreatorVisible()>
59 <span class="hide subtext-item">
60 ·
61
62 <@liferay.language key="written-by" />
63
64 <strong>${htmlUtil.escape(entry.getCreatorUserName())}</strong>
65 </span>
66 </#if>
67
68 <#if entry.isCreationDateVisible()>
69 <span class="subtext-item">
70 .<@liferay.language key="date" />
71
72 <!--${entry.getCreationDateString()}-->
73 <#assign dateFormat = "dd MM yyyy" />
74 <#assign publishDate=dateUtil.getDate(assetEntry.getPublishDate(),dateFormat,locate)/>
75 <span class="js-date" data-date="${publishDate} ?? DD MM YYYY ?? DD MMMM YYYY" >${publishDate}</span>
76 </span>
77 </#if>
78 </p>
79
80 <#if entry.isContentVisible()>
81 <p class="list-group-subtext">
82 <span class="subtext-item">
83 ${entry.getContent()}
84 </span>
85 </p>
86 </#if>
87
88 <#if entry.isFieldsVisible()>
89 <p class="list-group-subtext">
90 <#assign separate = false />
91
92 <#list entry.getFieldDisplayContexts() as fieldDisplayContext>
93 <#if separate>
94 ·
95 </#if>
96
97 <span class="badge">${fieldDisplayContext.getName()}</span>
98
99 <span>${fieldDisplayContext.getValuesToString()}</span>
100
101 <#assign separate = true />
102 </#list>
103 </p>
104 </#if>
105
106 <#if entry.isAssetCategoriesOrTagsVisible()>
107 <h6 class="search-document-tags text-default">
108 <@liferay_asset["asset-tags-summary"]
109 className=entry.getClassName()
110 classPK=entry.getClassPK()
111 paramName=entry.getFieldAssetTagNames()
112 portletURL=entry.getPortletURL()
113 />
114
115 <@liferay_asset["asset-categories-summary"]
116 className=entry.getClassName()
117 classPK=entry.getClassPK()
118 paramName=entry.getFieldAssetCategoryIds()
119 portletURL=entry.getPortletURL()
120 />
121 </h6>
122 </#if>
123
124 <#if entry.isDocumentFormVisible()>
125 <h6 class="expand-details text-default">
126 <span class="list-group-text" style="">
127 <a href="javascript:;">
128 <@liferay.language key="details" />...
129 </a>
130 </span>
131 </h6>
132
133 <div class="hide search-results-list table-details table-responsive">
134 <table class="table">
135 <thead>
136 <tr>
137 <th class="key-column">
138 <@liferay.language key="key" />
139 </th>
140 <th>
141 <@liferay.language key="value" />
142 </th>
143 </tr>
144 </thead>
145
146 <tbody>
147 <#list entry.getDocumentFormFieldDisplayContexts() as fieldDisplayContext>
148 <tr>
149 <td class="key-column table-details-content">
150 <strong>${htmlUtil.escape(fieldDisplayContext.getName())}</strong>
151 </td>
152 <td class="table-details-content">
153 <code>
154 ${fieldDisplayContext.getValuesToString()}
155 </code>
156 </td>
157 </tr>
158 </#list>
159 </tbody>
160 </table>
161 </div>
162 </#if>
163 </div>
164 </section>
165 </div>
166 <#else>
167 <div class="autofit-col">
168 <div class="alert alert-danger">
169 <@liferay.language_format
170 arguments="result"
171 key="is-temporarily-unavailable"
172 />
173 </div>
174 </div>
175 </#if>
176 </li>
177 </#list>
178 </#if>
179 </ul>
180</div>
181
182<@liferay_aui.script use="aui-base">
183 A.one('#search-results-display-list').delegate(
184 'click',
185 function(event) {
186 var currentTarget = event.currentTarget;
187
188 currentTarget.siblings('.search-results-list').toggleClass('hide');
189 },
190 '.expand-details'
191 );
192</@liferay_aui.script>