مرتب سازی

مشخصات دسته بندی

نوع رابط

جستجوی نتایج

در حین انجام عملیات خطایی رخ داده است.
The following has evaluated to null or missing:
==> theid  [in template "20097#20123#567538" at line 130, column 59]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${theid}  [in template "20097#20123#567538" at line 130, column 57]
----
1<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 
2<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetEntryLocalService") /> 
3 
4<div class="search-total-label d-none"> 
5    ${languageUtil.format(locale, "x-results-for-x", [searchContainer.getTotal(), "<strong>" + htmlUtil.escape(searchResultsPortletDisplayContext.getKeywords()) + "</strong>"], false)} 
6</div> 
7 
8<div class="display-list"> 
9    <ul class="list-group" id="search-results-display-list"> 
10        <#if entries?has_content> 
11            <#list entries as entry> 
12                <#assign assetEntry = assetEntryLocalService.getEntry(entry.getClassName(),entry.getClassPK()) /> 
13                <#assign assetRenderer = assetEntry.getAssetRenderer() /> 
14 
15                <#if assetRenderer.getClassName()=="com.liferay.journal.model.JournalArticle"> 
16                    <#assign 
17                    docXml = saxReaderUtil.read(assetRenderer.getArticle().getContent()) 
18                    lead = docXml.valueOf("//dynamic-element[@name='lead']/dynamic-content/text()") 
19                    content = docXml.valueOf("//dynamic-element[@name='content']/dynamic-content/text()") 
20                    theid = assetRenderer.getArticle().getArticleId() 
21                    /> 
22                </#if> 
23 
24                <li class="list-group-item list-group-item-flex"> 
25                    <#if !entry.isTemporarilyUnavailable()> 
26                        <div class="autofit-col"> 
27                            <#if entry.isThumbnailVisible()> 
28                                <span class="sticker" style="width:10rem;height:6rem"> 
29									<span class="sticker-overlay"> 
30										<img 
31                                                alt="${languageUtil.get(locale, "thumbnail")}" 
32                                                class="sticker-imgs" 
33                                                src="${entry.getThumbnailURLString()}&imageThumbnail=3" 
34                                                style="width: 100%;height: 100%;object-fit: cover;" 
35                                        /> 
36									</span> 
37								</span> 
38                            <#elseif entry.isUserPortraitVisible() && stringUtil.equals(entry.getClassName(), userClassName)> 
39                                <@liferay_ui["user-portrait"] userId=entry.getAssetEntryUserId() /> 
40                            <#elseif entry.isIconVisible()> 
41                                <span class="sticker sticker-rounded sticker-secondary sticker-static"> 
42									<@clay.icon symbol="${entry.getIconId()}" /> 
43								</span> 
44                            </#if> 
45                        </div> 
46 
47                        <div class="autofit-col autofit-col-expand"> 
48                            <section class="autofit-section"> 
49 
50                                <#if lead?? && lead != ""> 
51                                <#--                                    <#if true>--> 
52                                    <p class="list-group-subtext mb-2"> 
53                                        <span class="subtext-item font-weight-bold text-info"> 
54                                             ${stringUtil.shorten(htmlUtil.stripHtml(lead),360)} 
55                                            <#--                                            این لید وجود ندارد و آزمایشی می باشد--> 
56                                        </span> 
57                                    </p> 
58                                </#if> 
59                                 
60                                <div class="list-group-title"> 
61                                    <a href="${entry.getViewURL()}" class="d-flex align-items-center justify-content-between flex-wrap"> 
62                                        <span>${entry.getHighlightedTitle()}</span> 
63                                    </a> 
64                                </div> 
65 
66                                <div class="search-results-metadata"> 
67                                    <p class="list-group-subtext d-none"> 
68                                        <#if entry.isModelResourceVisible()> 
69                                            <span class="subtext-item"> 
70												<strong>${entry.getModelResource()}</strong> 
71											</span> 
72                                        </#if> 
73 
74                                        <#if entry.isLocaleReminderVisible()> 
75                                            <@liferay_ui["icon"] 
76                                            icon="../language/${entry.getLocaleLanguageId()}" 
77                                            message=entry.getLocaleReminder() 
78                                            /> 
79                                        </#if> 
80 
81                                        <#if entry.isCreatorVisible()> 
82                                            <!--span class="subtext-item"> 
83												&#183; 
84 
85												<@liferay.language key="written-by" /> 
86 
87												<strong>${htmlUtil.escape(entry.getCreatorUserName())}</strong> 
88											</span--> 
89                                        </#if> 
90 
91                                        <#if entry.isCreationDateVisible()> 
92                                            <!--span class="subtext-item"> 
93												<@liferay.language key="on-date" /> 
94 
95												${entry.getCreationDateString()} 
96											</span--> 
97                                        </#if> 
98                                    </p> 
99 
100                                    <#if entry.isContentVisible()> 
101                                        <#if content?? && content != ""> 
102                                            <p class="list-group-subtext mt-2"> 
103											<span class="subtext-item"> 
104                                                    ${stringUtil.shorten(htmlUtil.stripHtml(content),360)} 
105                                            </span> 
106                                            </p> 
107                                        </#if> 
108                                    </#if> 
109 
110                                    <#if entry.isFieldsVisible()> 
111                                        <p class="list-group-subtext"> 
112                                            <#assign separate = false /> 
113 
114                                            <#list entry.getFieldDisplayContexts() as fieldDisplayContext> 
115                                                <#if separate> 
116                                                    &#183; 
117                                                </#if> 
118 
119                                                <span class="badge">${fieldDisplayContext.getName()}</span> 
120 
121                                                <span>${fieldDisplayContext.getValuesToString()}</span> 
122 
123                                                <#assign separate = true /> 
124                                            </#list> 
125                                        </p> 
126                                    </#if> 
127 
128                                    <div class="my-2 d-flex align-items-center justify-content-between w-100"> 
129                                        <div> 
130                                            <span>شناسه:${theid}</span> 
131                                        </div> 
132 
133                                        <div> 
134                                            <#if entry.isCreationDateVisible()> 
135                                                <#if assetEntry.getPublishDate()??> 
136                                                    <div class="d-flex align-items-center justify-content-between"> 
137                                                        <div class="d-flex align-items-center justify-content-between"> 
138                                                            <span class="icon-datepicker"></span> 
139                                                            <span id="pDate-u12u-id-${entry?index}" date-attr="${assetEntry.getPublishDate()?datetime}"></span> 
140                                                        </div> 
141                                                        <script> 
142                                                            var date = `${assetEntry.getPublishDate()?datetime}`; 
143                                                            if (document.getElementsByTagName("html")[0].getAttribute("dir") == "rtl") { 
144                                                                document.getElementById("pDate-u12u-id-${entry?index}").innerHTML = moment(date).locale('fa').format('D MMM YYYY') 
145                                                            } else { 
146                                                                document.getElementById("pDate-u12u-id-${entry?index}").innerHTML = `${entry.getCreationDateString()}`; 
147
148                                                        </script> 
149                                                    </div> 
150                                                </#if> 
151                                            </#if> 
152                                        </div> 
153                                    </div> 
154 
155                                    <#if entry.isDocumentFormVisible()> 
156                                        <h6 class="expand-details text-default"> 
157											<span class="list-group-text" style=""> 
158												<a href="javascript:;"> 
159													<@liferay.language key="details" />... 
160												</a> 
161											</span> 
162                                        </h6> 
163 
164                                        <div class="hide search-results-list table-details table-responsive"> 
165                                            <table class="table"> 
166                                                <thead> 
167                                                <tr> 
168                                                    <th class="key-column"> 
169                                                        <@liferay.language key="key" /> 
170                                                    </th> 
171                                                    <th> 
172                                                        <@liferay.language key="value" /> 
173                                                    </th> 
174                                                </tr> 
175                                                </thead> 
176 
177                                                <tbody> 
178                                                <#list entry.getDocumentFormFieldDisplayContexts() as fieldDisplayContext> 
179                                                    <tr> 
180                                                        <td class="key-column table-details-content"> 
181                                                            <strong>${htmlUtil.escape(fieldDisplayContext.getName())}</strong> 
182                                                        </td> 
183                                                        <td class="table-details-content"> 
184                                                            <code> 
185                                                                ${fieldDisplayContext.getValuesToString()} 
186                                                            </code> 
187                                                        </td> 
188                                                    </tr> 
189                                                </#list> 
190                                                </tbody> 
191                                            </table> 
192                                        </div> 
193                                    </#if> 
194                                </div> 
195                            </section> 
196                        </div> 
197                    <#else> 
198                        <div class="autofit-col"> 
199                            <div class="alert alert-danger"> 
200                                <@liferay.language_format 
201                                arguments="result" 
202                                key="is-temporarily-unavailable" 
203                                /> 
204                            </div> 
205                        </div> 
206                    </#if> 
207                </li> 
208            </#list> 
209        </#if> 
210    </ul> 
211</div> 
212 
213<@liferay_aui.script use="aui-base"> 
214    A.one('#search-results-display-list').delegate( 
215    'click', 
216    function(event) { 
217    var currentTarget = event.currentTarget; 
218 
219    currentTarget.siblings('.search-results-list').toggleClass('hide'); 
220    }, 
221    '.expand-details' 
222    ); 
223</@liferay_aui.script>