An error occurred while processing the template.
The following has evaluated to null or missing: ==> entry.getAssetRenderer() [in template "44029#44070#1746640" at line 10, column 34] ---- 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: #assign assetRenderer = entry.getAsse... [in template "44029#44070#1746640" at line 10, column 9] ----
1<#assign ddmFieldLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMFieldLocalService")/>
2<#assign dlUtil = utilLocator.findUtil("com.liferay.document.library.kernel.util.DLUtil")>
3<#assign dlService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
4<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")>
5
6<#if entries?has_content>
7<ul class="list-group list-group-flush oa">
8<#list entries as entry>
9
10 <#assign assetRenderer = entry.getAssetRenderer()/>
11 <#assign journalArticle = assetRenderer.getAssetObject() />
12 <#assign ddmStructure = journalArticle.getDDMStructure() />
13 <#assign ddmForm = ddmStructure.getDDMForm()/>
14 <#assign ddmFormValues = ddmFieldLocalService.getDDMFormValues(ddmForm, journalArticle.getId()) />
15 <#assign ddmFormFieldValues = ddmFormValues.getDDMFormFieldValues() />
16 <#assign viewDetailURL = "/web/hi/detail?assetEntry="+entry.getEntryId() />
17
18 <#list ddmFormFieldValues as fieldName>
19 <#if fieldName.getFieldReference() == 'Upload90001913'>
20 <#assign jsonFactoryUtil = staticUtil["com.liferay.portal.kernel.json.JSONFactoryUtil"]>
21 <#assign customFieldJson = jsonFactoryUtil.createJSONObject(fieldName.getValue().getString(locale)) />
22 <#assign fileEntryId = getterUtil.getInteger(customFieldJson.get('fileEntryId'))>
23 <#if fileEntryId?? && fileEntryId!=0>
24 <#assign fileEntry = dlAppService.getFileEntry(fileEntryId) />
25 <li class="list-group-item">
26
27 <#list ddmFormFieldValues as fieldName>
28 <#if fieldName.getFieldReference() == 'Title'>
29 <#assign contentTitle =fieldName.getValue().getString(locale)>
30 <a class="pdf-link" href=/documents/${fileEntry.getGroupId()}/${fileEntry.getFolderId()}/${fileEntry.getFileName()}/${fileEntry.getUuid()} title="${contentTitle}">
31 <span class="list-group-title">${contentTitle}</span>
32 </a>
33 </#if>
34 </#list>
35
36 <#--<p class="list-group-subtitle text-muted">
37 <#list ddmFormFieldValues as fieldName>
38 <#if fieldName.getFieldReference() == 'PublishedDate'>
39 ${fieldName.getValue().getString(locale)}
40 </#if>
41 </#list>
42 </p>-->
43 </li>
44 <#else>
45 <li class="list-group-item">
46 <#assign urlImage = "#">
47 <#list ddmFormFieldValues as fieldName>
48
49
50
51 <#if fieldName.getFieldReference() == 'Title'>
52 <#assign contentTitle =fieldName.getValue().getString(locale)>
53 <a href="${viewDetailURL}" title="${contentTitle}">
54 <span class="list-group-title">${contentTitle}</span>
55 </a>
56 </#if>
57
58
59 <#--<p class="list-group-subtitle text-muted">
60
61 <#if fieldName.getFieldReference() == 'PublishedDate'>
62 ${fieldName.getValue().getString(locale)}
63 </#if>
64
65 </p>-->
66
67 </#list>
68
69 </li>
70 </#if>
71 </#if>
72
73 </#list>
74
75</#list>
76</ul>
77</#if>
78
79<#--
80Widget templates can be used to modify the look of a
81specific application.
82
83Please use the left panel to quickly add commonly used variables.
84Autocomplete is also available and can be invoked by typing "${".
85-->
—
10 Items per Page