Otra información relevante
En cumplimiento con los requisitos legales establecidos, y en línea con nuestra política de impulso a la transparencia, en este apartado recogemos toda la información relevante comunicada a la Comisión Nacional del Mercado de Valores con posterioridad al día 8 de febrero de 2020.
The following has evaluated to null or missing: ==> fileExtension [in template "42020#42061#121889051" at line 105, column 106] ---- 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: #if fileExtension?contains("xls") [in template "42020#42061#121889051" at line 105, column 101] ----
1<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")>
2
3<#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService")>
4
5<#assign DLFileEntryMetadataLocalService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService")>
6
7<#assign DDMStorageLinkLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMStorageLinkLocalService")>
8
9<#assign DDMContentLocalService = serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMContentLocalService")>
10
11<#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")>
12<#assign dlAppService = serviceLocator.findService("com.liferay.document.library.kernel.service.DLAppService")>
13<#assign DLFileEntryMetadataLocalServiceUtil = serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService")>
14<#assign StorageEngineManagerUtil = serviceLocator.findService("com.liferay.dynamic.data.mapping.kernel.StorageEngineManager")>
15
16<#assign DLURLHelper = serviceLocator.findService("com.liferay.document.library.util.DLURLHelper")>
17
18
19<#if themeDisplay.locale?contains("ES") >
20 <#assign year_text = "AÑO" />
21 <#assign pages_text = "páginas" />
22<#else>
23 <#assign year_text = "YEAR" />
24 <#assign pages_text = "pages" />
25</#if>
26
27<div class="documents-list-container documents-list-container--three-elements">
28 <#if entries?has_content>
29 <div class="container documents-list">
30 <#list entries as curEntry>
31 <#assign assetCategories = AssetCategoryLocalService.getCategories("com.liferay.document.library.kernel.model.DLFileEntry", curEntry.classPK)>
32
33 <div class="document-list-item">
34 <div class="item-container">
35
36 <#assign fileEntry = DLFileEntryLocalService.getFileEntry(curEntry.classPK)>
37
38 <#if assetCategories?has_content>
39 <#assign firstCategory = assetCategories[0]>
40 <div class="item-date">
41 <p>${year_text} ${firstCategory.getTitle(locale)}</p>
42 </div>
43
44 <#assign fileEntry = DLFileEntryLocalService.getFileEntry(curEntry.classPK)>
45 <#assign fileSize = (fileEntry.getSize() / 1024 / 1024)?string("0.00") + " MB">
46
47
48 <#assign fileEntryId = fileEntry.getFileEntryId()>
49 <#assign fileEntry = dlAppService.getFileEntry(fileEntryId)>
50 <#assign fileExtension = fileEntry.getExtension()>
51 <#assign locale = themeDisplay.getLocale()>
52 <#assign fileEntryMetadataList = DLFileEntryMetadataLocalServiceUtil.getFileVersionFileEntryMetadatas(fileEntry.getFileVersion().getFileVersionId())>
53 <#assign fileVersion = fileEntry.getLatestFileVersion()>
54 <#assign fileDownloadURL =DLURLHelper.getPreviewURL(fileEntry, fileVersion, themeDisplay, " ", false, true)>
55 <#assign fileDownloadURLEN = "">
56 <div class="item-text">
57 <#list fileEntryMetadataList as fileEntryMetadata>
58 <#assign ddmFormValues = StorageEngineManagerUtil.getDDMFormValues(fileEntryMetadata.getDDMStorageId())>
59
60 <#list ddmFormValues.getDDMFormFieldValues() as ddmFormFieldValue>
61
62 <#assign fieldName = ddmFormFieldValue.getName()>
63
64 <#if fieldName == "titulo">
65 <#assign titulo = ddmFormFieldValue.getValue().getString(locale)>
66 <div class="title">${titulo}</div>
67 </#if>
68 <#if fieldName == "descripcion">
69 <#assign descripcion = ddmFormFieldValue.getValue().getString(locale)>
70 <div class="text">${descripcion}</div>
71 <div class="size">${fileSize}</div>
72 </#if>
73 <#if fieldName == "DocumentoIngles">
74 <#assign documentoIngles = ddmFormFieldValue.getValue().getString(locale)>
75 <#if documentoIngles != "">
76 <#attempt>
77 <#assign json = jsonFactoryUtil.createJSONObject(documentoIngles)>
78 <#assign fileEntryIdEnglish = json.getString("classPK")>
79 <#if fileEntryIdEnglish == "">
80 <#assign fileEntryIdEnglish = json.getString("fileEntryId")>
81 </#if>
82 <#if fileEntryIdEnglish != "">
83 <#assign fileSize = (fileEntry.getSize() / 1024 / 1024)?string("0.00") + " MB">
84 <#assign fileDownloadURLEN = themeDisplay.getPortalURL() + "/documents/" + fileEntry.getGroupId() + "/" + fileEntry.getFolderId() + "/" + fileEntry.getTitle() + "/" + fileEntry.getUuid()>
85 <#assign fileEntry = dlAppService.getFileEntry(fileEntryIdEnglish?number)>
86 <#assign fileVersion = fileEntry.getLatestFileVersion()>
87 <#assign fileDownloadURLEN =DLURLHelper.getPreviewURL(fileEntry, fileVersion, themeDisplay, " ", false, true)>
88 </#if>
89 <#recover>
90 </#attempt>
91 </#if>
92 </#if>
93 </#list>
94 </#list>
95 </div>
96
97 <#if !themeDisplay.locale?contains("ES") && fileDownloadURLEN != "">
98 <#assign fileDownloadURL = fileDownloadURLEN>
99 </#if>
100
101 </#if>
102 <div class="item-action">
103 <div class="download-item text-left">
104 <#assign iconClass = "icon">
105 <#if fileExtension?contains("xls")>
106 <#assign iconClass = "icon icon-excel">
107 </#if>
108 <a href="${fileDownloadURL}" target="_blank" class="btn download-btn">
109 <span class="${iconClass}"></span>
110 <span class="text">${languageUtil.get(locale, "download")}</span>
111 </a>
112 </div>
113 </div>
114 </div>
115 </div>
116 </#list>
117 </#if>
118</div>