Questo sito o gli strumenti terzi da questo utilizzati si avvalgono di cookie necessari al funzionamento ed utili alle finalità illustrate nella sezione note legali.
Chiudendo questo banner, scorrendo questa pagina, cliccando su un link o proseguendo la navigazione in altra maniera, acconsenti all’uso dei cookie.
Si è verificato un errore nell'elaborarazione del modello.
Expression summary is undefined on line 87, column 22 in 20155#20195#53703.
1<#-- -----CSM ADT Common part----- --> 
2 
3<#setting locale="it_IT"> <#-- Just to having comma in file weight --> 
4 
5<#-- -----Importing services----- --> 
6<#assign DLFileEntryLocalService = serviceLocator.findService("com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService") /> 
7 
8 
9<#-- -----Getting the path to file type icons----- --> 
10 
11<#assign  varlinkImage = true /> 
12<#function getPortalUrlImage> 
13	<#attempt> 
14		<#assign portalURL = request['theme-display']['portal-url'] /> 
15		<#assign linkImageURL ="https://"+ portalURL + "/documents/"+ groupId +"/23924/logo_csm_stellone.png" /> 
16		<#assign  varlinkImage = true /> 
17	<#recover> 
18		<#assign portalURL ="/" /> 
19		<#assign linkImageURL ="/" /> 
20		<#assign  varlinkImage = false /> 
21	</#attempt> 
22	<#return linkImageURL> 
23</#function> 
24 
25<#assign themeDisplayValue = true /> 
26<#function getFileTypeIconImage extension> 
27	<#attempt> 
28	    <#assign portalURL = request['theme-display']['portal-url'] /> 
29		<#assign themeImages = request['theme-display']['path-theme-images'] />  
30		<#assign fileTypeIconPath = themeImages + "/icons/file-type/" /> 
31		<#assign fileTypeIconImage = fileTypeIconPath + getFileTypeIcon(extension) /> 
32		 
33		<#assign themeDisplayValue = true /> 
34	<#recover> 
35	    <#assign portalURL ="/" /> 
36		<#assign fileTypeIconImage=""/> 
37		<#assign linkImageURL =""/> 
38		<#assign themeDisplayValue = false /> 
39	</#attempt> 
40	<#return fileTypeIconImage> 
41</#function> 
42 
43<#-- -----Input: the extension of the file, Output: his correct file type icon----- --> 
44<#function getFileTypeIcon extension> 
45     
46    <#-- -----File types----- --> 
47    <#assign images = ["png", "jpg", "jpeg", "gif", "svg"] /> 
48    <#assign doc = ["doc", "docx"] /> 
49    <#assign pdf = ["pdf"] /> 
50    <#assign excel = ["xls","xlsx"] /> 
51 
52    <#assign fileTypeIcon = "ico_doc.png" /> 
53 
54    <#if images?seq_contains(extension) > 
55        <#assign fileTypeIcon = "ico_image2.png" /> 
56    <#elseif doc?seq_contains(extension)> 
57    	<#assign fileTypeIcon = "ico_word.png" /> 
58    <#elseif pdf?seq_contains(extension)> 
59    	<#assign fileTypeIcon = "ico_pdf.png" /> 
60    <#elseif excel?seq_contains(extension)> 
61    	<#assign fileTypeIcon = "ico_excel.png" /> 
62    </#if> 
63     
64    <#return fileTypeIcon> 
65</#function> 
66 
67<#-- -----/CSM ADT Common part----- --> 
68 
69<h3 class="with-separator"> 
70	<#-- 
71		Per ora è hardcoded; modificando il look-and-feel si può assegnare 
72		un titolo custom visualizzabile con il seguente rigo (attenzione 
73		alla lingua): 
74			${portletPreferences["portletSetupTitle_en_US"][0]} 
75		Per ora non è fatto poiché Liferay non salva correttamente il titolo 
76		utilizzando la GUI 
77	--> 
78	${.vars['reserved-article-title'].data} 
79</h3> 
80 
81<div class="article-press"> 
82	<div class="article-press-header"> 
83	    <#assign linkImageURL = getPortalUrlImage()/> 
84		<#if varlinkImage == true> 
85			<img src="${linkImageURL}" alt="Consiglio Superiore Magistratura Logo"> 
86		</#if> 
87		<p>${summary.getData()}</p> 
88	</div> 
89 
90	<div class="text-justify"> 
91		${body.getData()} 
92	</div> 
93 
94	<#assign data_comunicato_Data = getterUtil.getLong(date.getData())> 
95	<#if (data_comunicato_Data > 0)> 
96		<#assign data_comunicato_DateObj = dateUtil.newDate(data_comunicato_Data)> 
97		<div class="article-press-footer"> 
98			<p>${location.getData()}, ${dateUtil.getDate(data_comunicato_DateObj, "dd MMMM yyyy", locale)}</p> 
99		</div> 
100	</#if> 
101	<#-- -----External link and Related Asset box----- --> 
102        	<#assign showLink = getterUtil.getBoolean(external_link.show_link.getData()) && link_page.getSiblings()?has_content/> 
103            <#assign showAttach = attachment?? && attachment.getData()?has_content /> 
104	        <#if showAttach || showLink> 
105        	<div class="well well-inverse"> 
106			<#if attachment.getData()?has_content> 
107				<h3>${languageUtil.get(locale, "attachments")}</h3> 
108				<#list attachment.getSiblings() as attached > 
109				  <#if attached.getData()?has_content> 
110					<#assign url = attached.getData()/> 
111					 
112					<#assign counter = 0 /> 
113					<#list url?split("/") as x > 
114						<#if counter == 5 > 
115							<#assign uuId1 = x /> 
116						</#if> 
117						<#assign counter = counter+1 /> 
118					</#list> 
119					<#assign c=0 /> 
120					<#list uuId1?split("?") as y> 
121						<#if c == 0> 
122							<#assign uuid = y /> 
123						</#if> 
124						<#assign c = c + 1 /> 
125					</#list> 
126					 
127					<#assign file = DLFileEntryLocalService.getFileEntryByUuidAndGroupId(uuid,groupId)/> 
128					<#assign extension = file.getExtension() /> 
129			 
130					<p> 
131						<#if themeDisplayValue==true> 
132							<img src="${getFileTypeIconImage(extension)}" class="csm-icon" alt="file ${file.getTitle()}"/> 
133						</#if> 
134						<a href="${attached.getData()}" class="dark" target="_blank">${file.getTitle()}</a> 
135						<small>(${(file.getSize()?number/1000)?string["0.#"]} kB)</small> 
136					</p> 
137				  </#if> 
138				</#list> 
139			</#if> 
140 
141			<#if showLink && showAttach> 
142				<div class="with-separator"></div> 
143			</#if> 
144 
145			<#if showLink> 
146				<h3>${languageUtil.get(locale, "related-link")}</h3> 
147         
148			        <#list link_page.getSiblings() as cur_link_page> 
149		        		<#if cur_link_page.getFriendlyUrl()?has_content || (cur_link_page.link_external?? && cur_link_page.link_external.getData()?has_content) > 
150					 
151        				    <#if cur_link_page.getFriendlyUrl()?has_content> 
152            	        		<#assign destinationUrl = cur_link_page.getFriendlyUrl() /> 
153                				<#assign destinationTarget = "_self" /> 
154            					<#assign docXml = saxReaderUtil.read(xmlRequest) /> 
155            					<#-- assign redirectUrl = docXml.valueOf("//attribute[name=\"view.jsp-fullContentRedirect\"]/value") / --> 
156            					<#assign redirectUrl = docXml.valueOf("//render-url/text()") /> 
157            					<#-- assign redirectUrl = redirectUrl[0..(redirectUrl?index_of("?")-1)] / --> 
158            					<#if cur_link_page.base_inner_structure_article?? && cur_link_page.base_inner_structure_article.getData()?has_content > 
159            						<#assign destArticleInList = cur_link_page.base_inner_structure_article.getData() /> 
160            						<#assign destinationUrl =httpUtil.decodeURL(httpUtil.setParameter(destinationUrl,"show",true))/> 
161            						<#assign destinationUrl = httpUtil.decodeURL(httpUtil.setParameter(destinationUrl,"title", destArticleInList))/> 
162            						<#assign destinationUrl = httpUtil.decodeURL(httpUtil.setParameter(destinationUrl,"show_bcrumb",destArticleInList))/> 
163            						<#assign destinationUrl =httpUtil.setParameter(destinationUrl,"redirect",redirectUrl) /> 
164            					</#if> 
165            					<#if cur_link_page.base_anchor?? && cur_link_page.base_anchor.getData()!=""> 
166            						<#assign destinationUrl = destinationUrl + "#" + cur_link_page.base_anchor.getData() /> 
167            					</#if> 
168            				<#else> 
169            			        <#assign destinationUrl = cur_link_page.link_external.getData() /> 
170            	        		<#assign destinationTarget = "_blank" /> 
171                			</#if> 
172					 
173				        	<#if cur_link_page.link_description.getData()?has_content> 
174		        				<#assign destinationLabel = cur_link_page.link_description.getData() /> 
175        					<#else> 
176						        <#assign destinationLabel = destinationUrl /> 
177				        	</#if> 
178					 
179		        			<p> 
180        						<a href="${destinationUrl}" target="${destinationTarget}" class="dark"> 
181							        ${destinationLabel} 
182						        </a> 
183				        	</p> 
184 
185		        		</#if> 
186        			</#list> 
187        		</#if> 
188        	</div> 
189       </#if> 
190</div> 
191<div class="with-separator"></div>