An error occurred while processing the template.
Expression fileURL[5] is undefined on line 62, column 24 in 10155#10195#353929.
1<#assign modifiedDate = .vars['reserved-article-modified-date'].getData() />
2<#assign originalLocale = locale />
3<#setting locale = "pt_PT" />
4<#assign modifiedDate = modifiedDate?datetime("EEE, d MMM yyyy HH:mm:ss Z") />
5<#setting locale = originalLocale />
6
7<div class="content-wrapper-main">
8 <h2>${.vars['reserved-article-title'].data}</h2>
9
10 <#if locale.language == "pt">
11 <p class="data">Atualizado: ${modifiedDate?string["dd-MM-yyyy"]}</p>
12 <#else>
13 <p class="data">Updated: ${modifiedDate?string["dd-MM-yyyy"]}</p>
14 </#if>
15</div>
16
17<div class="content-wrapper">
18 ${Descricao.getData()}
19
20 <#if Seccao?? && Seccao.getSiblings()?has_content>
21 <#list Seccao.getSiblings() as sec>
22 <#if sec.Titulo_da_seccao.getData()!="">
23 <h2>${sec.Titulo_da_seccao.getData()}</h2>
24 </#if>
25
26 ${sec.Conteudo_da_seccao.getData()}
27
28 <#assign hasDocsAssoc = (sec.Documentos_associados?? && sec.Documentos_associados.getSiblings()?has_content && (sec.Documentos_associados.getSiblings()?size gt 0))
29 hasDocExt = ( sec.Documentos_externos?? && sec.Documentos_externos.getSiblings()?has_content && (sec.Documentos_externos.getSiblings()?size gt 0)) />
30
31<#if hasDocsAssoc == true >
32 <#assign
33 hasDocsAssoc = (sec.Documentos_associados.getSiblings()[0].getData() != "")
34 />
35</#if>
36<#if hasDocExt == true >
37 <#assign
38 hasDocExt = (sec.Documentos_externos.getSiblings()[0].Link_ficheiro.getData() != "")
39 />
40</#if>
41
42<#if ((hasDocsAssoc == true) || (hasDocExt == true)) >
43 <#if locale.language == "pt">
44 <h2>Documentos disponíveis para descarregar</h2>
45 <#else>
46 <h2>Documents available for download</h2>
47 </#if>
48 <ul>
49
50 <#if (hasDocsAssoc == true)>
51
52 <#assign
53 serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()
54 themeDisplay = serviceContext.getThemeDisplay()
55 dlAppServiceUtil = staticUtil["com.liferay.portlet.documentlibrary.service.DLAppServiceUtil"]
56 />
57
58 <#list sec.Documentos_associados.getSiblings() as doc>
59
60 <#assign
61 fileURL = doc.getData()?split("/")
62 uuid = fileURL[5]?split("?")[0]
63 groupId = getterUtil.getLong(fileURL[2])
64 file = dlAppServiceUtil.getFileEntryByUuidAndGroupId(uuid, groupId)
65
66 fileSize = (file.getSize() / 1024)?round
67 fileExtension = file.getExtension()?upper_case
68
69 nrPages = doc.nr_pags.getData()
70 />
71 <li>
72 <#if locale.language == "pt">
73 <a href="${doc.getData()}">${file.getTitle()} [${fileExtension} | ${fileSize} KB | ${nrPages} página(s)]</a>
74 <#else>
75 <a href="${doc.getData()}">${file.getTitle()} [${fileExtension} | ${fileSize} KB | ${nrPages} page(s)]</a>
76 </#if>
77 </li>
78
79 </#list>
80 </#if>
81 <#if (hasDocExt == true)>
82 <#list sec.Documentos_externos.getSiblings() as doc>
83
84 <#assign
85 linkFile = doc.Link_ficheiro.getData()
86 fileName = doc.Nome_ficheiro.getData()
87 fileSize = doc.Tamanho_ficheiro.getData()
88 fileMimeType = doc.Tipo_de_ficheiro.getData()?upper_case
89 nrPages = doc.nr_pag_ficheiro.getData()
90 />
91 <li>
92 <#if ((fileMimeType != "") || (fileSize != "") || (nrPages != ""))>
93 <#if locale.language == "pt">
94 <a href="${linkFile}">${fileName} [${fileMimeType} | ${fileSize} KB | ${nrPages} página(s)]</a>
95 <#else>
96 <a href="${linkFile}">${fileName} [${fileMimeType} | ${fileSize} KB | ${nrPages} page(s)]</a>
97 </#if>
98 <#else>
99 <#if ((fileMimeType == "") && (fileSize == "") && (nrPages == ""))>
100 <a href="${linkFile}">${fileName}</a>
101 </#if>
102 </#if>
103 </li>
104
105 </#list>
106 </#if>
107
108 </ul>
109
110</#if>
111 </#list>
112 </#if>
113
114 <#if Documentos_Associados_transversal??>
115 <#assign
116 hasDocsAssoc = (Documentos_Associados_transversal.getSiblings()?has_content && (Documentos_Associados_transversal.getSiblings()?size gt 0))
117 />
118 <#else>
119 <#assign
120 hasDocsAssoc = false
121 />
122 </#if>
123
124 <#if Documentos_Externos_transversal??>
125 <#assign
126 hasDocExt = (Documentos_Externos_transversal?? && Documentos_Externos_transversal.getSiblings()?has_content && (Documentos_Externos_transversal.getSiblings()?size gt 0))
127 />
128 <#else>
129 <#assign
130 hasDocExt = false
131 />
132 </#if>
133<#if hasDocsAssoc == true >
134 <#assign
135 hasDocsAssoc = (Documentos_Associados_transversal.getSiblings()[0].getData() != "")
136 />
137</#if>
138<#if hasDocExt == true >
139 <#assign
140 hasDocExt = (Documentos_Externos_transversal.getSiblings()[0].Link_ficheiro_transversal.getData() != "")
141 />
142</#if>
143<#if ((hasDocsAssoc == true) || (hasDocExt == true)) >
144 <h2>Documentos disponíveis para descarregar</h2>
145 <ul>
146
147 <#if (hasDocsAssoc == true)>
148
149 <#assign
150 serviceContext = staticUtil["com.liferay.portal.service.ServiceContextThreadLocal"].getServiceContext()
151 themeDisplay = serviceContext.getThemeDisplay()
152 dlAppServiceUtil = staticUtil["com.liferay.portlet.documentlibrary.service.DLAppServiceUtil"]
153 />
154
155 <#list Documentos_Associados_transversal.getSiblings() as doc>
156
157 <#assign
158 fileURL = doc.getData()?split("/")
159 uuid = fileURL[5]?split("?")[0]
160 groupId = getterUtil.getLong(fileURL[2])
161 file = dlAppServiceUtil.getFileEntryByUuidAndGroupId(uuid, groupId)
162
163 fileSize = (file.getSize() / 1024)?round
164 fileExtension = file.getExtension()?upper_case
165
166 nrPages = doc.Numero_de_Paginas_transversal.getData()
167 />
168 <li>
169 <#if locale.language == "pt">
170 <a href="${doc.getData()}">${file.getTitle()} [${fileExtension} | ${fileSize} KB | ${nrPages} página(s)]</a>
171 <#else>
172 <a href="${doc.getData()}">${file.getTitle()} [${fileExtension} | ${fileSize} KB | ${nrPages} page(s)]</a>
173 </#if>
174 </li>
175
176 </#list>
177 <#if (hasDocExt == true)>
178 <#list Documentos_Externos_transversal.getSiblings() as doc>
179
180 <#assign
181 linkFile = doc.Link_ficheiro_transversal.getData()
182 fileName = doc.Nome_ficheiro_transversal.getData()
183 fileSize = doc.Tamanho_do_ficheiro__KB_transversal.getData()
184 nrPages = doc.Nr_Paginas_transversal.getData()
185 />
186 <li>
187 <#if ((fileSize != "") || (nrPages != ""))>
188 <#if locale.language == "pt">
189 <a href="${linkFile}">${fileName} [${fileSize} KB | ${nrPages} página(s)]</a>
190 <#else>
191 <a href="${linkFile}">${fileName} [${fileSize} KB | ${nrPages} page(s)]</a>
192 </#if>
193 <#else>
194 <a href="${linkFile}">${fileName}</a>
195 </#if>
196 </li>
197
198 </#list>
199 </#if>
200</#if>
201 </ul>
202 </#if>
203</div>