Si è verificato un errore nell'elaborarazione del modello.
Expected hash. request['parameters'] evaluated instead to freemarker.template.SimpleScalar on line 73, column 6 in 10557#10595#468610.
1<#-- 
2  PUBBLICAZIONE test.ftl 
3  eCTRLSolutions 
4  v1.00 15/11/2015 
5--> 
6pubblicazione test 
7<#assign SuggestoRecommenderServiceAPI = serviceLocator.findService("suggestocs-portlet","eu.suggesto.servicecs.service.SuggestoRecommenderService")> 
8<#assign suggestoAPI = serviceLocator.findService("ectrl-helper-portlet","eu.suggesto.helper.service.EctrlHelperLocalService")> 
9 
10<#assign curLNG = locale.getLanguage()> 
11<#assign siteId = "iprase"> 
12<#assign cdnURL = ""> 
13<#assign cdnURL = suggestoAPI.getCDNUrl() !> 
14<#assign cdnHost = cdnURL> 
15 
16<#if request['theme-display'] ??> 
17  <#assign themeDisplay = request['theme-display'] /> 
18  <#assign tdLocale=themeDisplay['locale']>   
19<#else> 
20  <#assign themeDisplay = companyId>  
21</#if> 
22<!-- label --> 
23<#assign labelMoreInfo = suggestoAPI.msg("moreInfo",curLNG,siteId)> 
24<!--#assign requrl = request.attributes['CURRENT_URL']--> 
25 
26 
27 
28 
29 
30<#assign szimmagineDettaglio = ""> 
31 
32<#assign dateFormat = "yyyy" /> 
33 <#assign articoloDateStr = ""> 
34 <#if articoloDate ?? > 
35    <#if articoloDate.getData()?has_content  > 
36        <#assign articoloDate_DateObj = dateUtil.newDate(getterUtil.getLong(articoloDate.getData()))> 
37        <#if articoloDate_DateObj ?? > 
38            <#assign articoloDateStr = dateUtil.getDate(articoloDate_DateObj, dateFormat, locale)> 
39        </#if> 
40    </#if> 
41</#if> 
42 
43 
44 
45 
46<div class="container"> 
47 
48<div class="span8"> 
49 
50<div class="detail course"> 
51<h1>${.vars['reserved-article-title'].data}</h1> 
52 
53<#if immagineDettaglio ??> 
54    <#if immagineDettaglio.getData()?has_content  > 
55    <#assign szimmagineDettaglio = immagineDettaglio.getData() !> 
56    <#if szimmagineDettaglio != ""> 
57    <div class="img-wrapper"> 
58        <#assign imgredim = szimmagineDettaglio+ "&width=757&height=300"> 
59        <img src="${imgredim}" alt="${.vars['reserved-article-title'].data}"></img> 
60    </div> 
61    </#if> 
62    </#if> 
63</#if> 
64 
65<div class="description"> 
66${descrizione.getData()} 
67 
68</div>     <!-- fine description--> 
69 
70<!--back link--> 
71<#assign back_url = "" > 
72<#if request['parameters'] ??> 
73<#if request['parameters']['back_url'] ??> 
74<#assign back_url = request['parameters']['back_url'] !> 
75</#if> 
76</#if> 
77<br/> 
78<span class="fa fa-arrow-left fa-1"></span> <a href="${back_url}">indietro</a><br> 
79</div>    <!-- fine deatail course --> 
80</div>    <!-- fine span 8 --> 
81 
82<div class="span4"> 
83<ul class="sidebar detail-resources course"> 
84 
85<#assign thereareAllegati = "false" /> 
86 
87 
88<#if allegati ??> 
89    <#if allegati.getSiblings()?has_content> 
90            <#list allegati.getSiblings() as allegato> 
91                <#assign titoloAllegato=""> 
92                <#assign iconaAllegato=""> 
93                <#assign formatoAllegato=""> 
94                <#assign fileAllegato=""> 
95 
96                <#if allegato?? > 
97                   <#if allegato.fileAllegato?? > 
98                    <#if allegato.titoloAllegato.getData()?has_content> 
99                    <#assign titoloAllegato=allegato.titoloAllegato.getData()> 
100                    </#if> 
101                    <#if allegato.iconaAllegato.getData()?has_content> 
102                    <#assign iconaAllegato=allegato.iconaAllegato.getData()> 
103                    </#if> 
104                    <#if allegato.formatoAllegato.getData()?has_content> 
105                    <#assign formatoAllegato=allegato.formatoAllegato.getData()> 
106                    </#if> 
107                    <#if allegato.fileAllegato.getData()?has_content> 
108                    <#assign fileAllegato=allegato.fileAllegato.getData()> 
109                    </#if> 
110                   </#if> 
111 
112                    <#if (fileAllegato != "")> 
113                        <#if thereareAllegati  == "false"> 
114                        <li> 
115                        <div class="info-wrapper"> 
116                        <strong>Allegati</strong> 
117                        <div class="attachments"> 
118                        <#assign thereareAllegati = "true" /> 
119                        </#if> 
120 
121                        <#if titoloAllegato != ""> 
122                        <a href="${fileAllegato}" title="${titoloAllegato}">${titoloAllegato}</a> 
123                        <#else> 
124                        <a href="${fileAllegato}" title="allegato">${fileAllegato}</a> 
125                        </#if> 
126 
127                    </#if> 
128                </#if> 
129            </#list> 
130            <#if thereareAllegati  == "true"> 
131                </div> 
132		</div> 
133                </li> 
134                <#if (iconaAllegato != "")> 
135                <#assign iconaAllegatoRedim=iconaAllegato+ "&amp;width=50"> 
136                <div class="icona-allegato"><a title="${titoloAllegato}" href="${fileAllegato}"><img src="${iconaAllegatoRedim}"> </a><br/><br/></div> 
137                 </#if> 
138            </#if> 
139 
140    </#if> 
141</#if> 
142 
143 
144 
145<#assign thereareAutori = "false" /> 
146<#assign sep = "" /> 
147<#if autore ??> 
148    <#if autore.getSiblings()?has_content> 
149            <#list autore.getSiblings() as cur_autore> 
150            <#if cur_autore.getData()?has_content> 
151 
152                <#if thereareAutori  == "false"> 
153                <li> 
154                <div class="info-wrapper"> 
155                <strong>Autore</strong> 
156                <#assign thereareAutori = "true" /> 
157                </#if> 
158                ${sep}${cur_autore.getData()} 
159                <#assign sep = ", " /> 
160            </#if> 
161            </#list> 
162            <#if thereareAutori  == "true"> 
163            </div> 
164            </li> 
165            </#if> 
166    </#if> 
167</#if> 
168 
169<li> 
170<div class="info-wrapper"> 
171<strong>Anno pubblicazione</strong> 
172${articoloDateStr} 
173</div> 
174</li> 
175 
176 
177<#if isbnIssn ??> 
178    <#assign szisbnIssn = isbnIssn.getData()> 
179    <#if szisbnIssn != ""> 
180    <li> 
181    <div class="info-wrapper"> 
182    <strong>ISBN</strong> 
183    ${szisbnIssn} 
184    </div> 
185    </li> 
186    </#if> 
187</#if> 
188 
189 
190 
191<#assign thereareLinks = "false" /> 
192<#if links ??> 
193    <#if links.getSiblings()?has_content> 
194            <#list links.getSiblings() as cur_link> 
195                <#assign urlLink=""> 
196                <#assign testoLink=""> 
197                <#if cur_link.urlLink.getData()?has_content> 
198                    <#assign urlLink=cur_link.urlLink.getData()> 
199                </#if> 
200                <#if cur_link.testoLink.getData()?has_content> 
201                <#assign testoLink=cur_link.testoLink.getData()> 
202                <#else> 
203                <#assign testoLink=cur_link.urlLink.getData()> 
204                </#if> 
205                <#if cur_link ??> 
206                    <#if (urlLink != "")> 
207                        <#if thereareLinks  == "false"> 
208                        <li> 
209                        <div class="info-wrapper"> 
210                        <strong>Link:</strong> 
211                        <ul> 
212                        <#assign thereareLinks = "true" /> 
213                        </#if> 
214                        <li> 
215                         <a href="${urlLink}" title="">${testoLink}</a> 
216                        </li> 
217                    </#if> 
218                </#if> 
219            </#list> 
220            <#if thereareLinks  == "true"> 
221              </ul> 
222              </div> 
223              </li> 
224            </#if> 
225    </#if> 
226</#if> 
227 
228 
229<!--categorie liferay  --> 
230<#assign journalLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService")> 
231<#assign articlePrimKey = journalLocalService.getArticle(getterUtil.getLong(groupId), .vars['reserved-article-id'].data).resourcePrimKey> 
232<#assign AssetCategoryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")> 
233<#assign artPrimKeyLong=getterUtil.getLong(articlePrimKey)> 
234<#assign articleCats = AssetCategoryLocalService.getCategoryNames("com.liferay.portlet.journal.model.JournalArticle",artPrimKeyLong )> 
235<!-- --> 
236 
237<#assign flagCat = "false" /> 
238<#if (articleCats?size > 0) > 
239<li> 
240<#assign sep = "" /> 
241<#list articleCats as cat> 
242<#if (cat != "STATO IN BOZZA" ) && (cat != "HOME PAGE")> 
243<#if flagCat == "false" > 
244<strong>Categorie:</strong> 
245</#if> 
246<span class="uppercase">${sep}${cat}</span> 
247<#assign sep = ", " /> 
248 <#assign flagCat = "true" /> 
249</#if> 
250</#list> 
251</li> 
252</#if> 
253 
254<!-- --> 
255</ul> 
256 
257<#if licenzaCC ??> 
258    <#if licenzaCC.getData() == "true"> 
259    <img src="/documents/11058/13401/creativecommons.png/558fcf61-d170-40bb-83a4-a8f3352211b2?t=1447857893282" alt="immagine licenza CC" /> 
260 
261    </#if> 
262</#if> 
263 
264</div>       <!-- fine span4--> 
265 
266</div> <!-- fine container--> 
267<!-- contenuti correlati --> 
268 
269 
270 <#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") /> 
271 <#assign assetLinkLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetLinkLocalService") /> 
272 <#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") /> 
273  
274 <#assign currentArticle = journalArticleLocalService.getArticle(groupId, .vars['reserved-article-id'].data) /> 
275 <#assign currentArticleResourcePrimKey = currentArticle.getResourcePrimKey() /> 
276 <#assign currentArticleAssetEntry = assetEntryLocalService.getEntry("com.liferay.portlet.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 
277 <#assign currentArticleAssetEntryId = currentArticleAssetEntry.getEntryId() /> 
278<#assign currentArticleRelatedLinks = assetLinkLocalService.getDirectLinks(currentArticleAssetEntryId) /> 
279 
280<#assign correlatiList= ""> 
281<#assign qry= ""> 
282<div style="display:none;"> 
283<#list currentArticleRelatedLinks as related_entry> 
284    <#assign relatedAssetEntryId = related_entry.getEntryId2() /> 
285    <#assign relatedAssetEntry = assetEntryLocalService.getEntry(relatedAssetEntryId) /> 
286    <#assign relatedAssetEntryPrimKey = relatedAssetEntry.getClassPK() /> 
287<#if journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) ?? > 
288    <#assign relatedArticle = journalArticleLocalService.getLatestArticle(relatedAssetEntryPrimKey) /> 
289    <#assign relatedArticleId = relatedArticle.getArticleId() /> 
290    <#assign correlatiList= correlatiList+ " " + relatedArticleId > 
291</#if> 
292</#list> 
293${back_url}</br> 
294 
295<#assign indietro = ""> 
296${indietro} 
297</div> 
298 
299<#if  correlatiList != "" > 
300<#assign qry= "articleId:("+correlatiList+") AND status:0 AND head:true"> 
301</#if> 
302 
303<#assign result =SuggestoRecommenderServiceAPI.search(groupId?string,"solriprase","",qry,"startDate_it_IT_dtsortable desc",0,10)> 
304<#assign start =result.getJSONObject("data").getJSONObject("response").getString("start")> 
305<#assign numFound =result.getJSONObject("data").getJSONObject("response").getString("numFound")?number> 
306<#assign items =result.getJSONObject("data").getJSONObject("response").getJSONArray("docs")> 
307 
308 
309 
310<#if  (items.length() != 0) > 
311<div class="list-wrapper"> 
312<h2>Risorse correlate</h2> 
313 
314 
315<#assign itemsInPage=items.length()> 
316<ul class="list"> 
317  <#list 0..items.length()-1 as i> 
318    <li> 
319        <#assign titolo=""> 
320        <#assign descrizioneBreve=""> 
321        <#assign imgsrc=""> 
322 
323        <#assign friendlyUrl=""> 
324        <#assign articleId=""> 
325        <#assign openDetailLink="false"> 
326 
327        <#assign tipoStrutturaKey =""> 
328        <#assign tipoStrutturaName=""> 
329        <#assign jsonStructureId=""> 
330 
331        <#assign jsitem=items.getJSONObject(i)> 
332        <#assign articleId =jsitem.getString("articleId") !> 
333 
334        <#assign jsonStructureId =jsitem.getString("classTypeId") !> 
335 
336        <!-- contenuto di tipo strutturato  --> 
337        <#if jsitem.getJSONArray("ddmStructureKey")?? > 
338                <#assign tipoStrutturaKey =jsitem.getJSONArray("ddmStructureKey").getString(0) !> 
339                <#assign tipoStrutturaName=suggestoAPI.msg(tipoStrutturaKey,curLNG,siteId)> 
340 
341                <#if tipoStrutturaKey == "14130" > 
342                    <#assign tipoStruttura="strumenti"> 
343                    <#assign urlPaginaLista="/strumenti-e-materiali"> 
344                    <#assign frDettaglioPage="/risorsa"> 
345                <#elseif tipoStrutturaKey == "13478"> 
346                    <#assign tipoStruttura="link"> 
347                    <#assign urlPaginaLista="/links"> 
348                    <#assign frDettaglioPage=""> 
349                <#elseif tipoStrutturaKey == "14128" > 
350                    <#assign tipoStruttura="multimedia"> 
351                    <#assign urlPaginaLista="/multimedia-lista"> 
352                    <#assign frDettaglioPage="/multimedia"> 
353                <#elseif tipoStrutturaKey == "11328" > 
354                    <#assign tipoStruttura="corsi"> 
355                    <#assign urlPaginaLista="/corsi"> 
356                    <#assign frDettaglioPage="/corso"> 
357                <#elseif tipoStrutturaKey == "11381" > 
358                    <#assign tipoStruttura="publicazioni"> 
359                    <#assign urlPaginaLista="/pubblicazioni"> 
360                    <#assign frDettaglioPage="/pubblicazione"> 
361                <#elseif tipoStrutturaKey == "13480" > 
362                    <#assign tipoStruttura="highlights"> 
363                    <#assign urlPaginaLista="/highlights"> 
364                    <#assign frDettaglioPage="/highlight"> 
365                <#elseif tipoStrutturaKey == "14126" > 
366                    <#assign tipoStruttura="progetti"> 
367                    <#assign urlPaginaLista="/progetti"> 
368                    <#assign frDettaglioPage="/progetto"> 
369                <#elseif tipoStrutturaKey == "176120" > 
370                    <#assign tipoStruttura="lesson-plan"> 
371                    <#assign urlPaginaLista="/lesson-plan"> 
372                    <#assign frDettaglioPage="/lesson-plan">     
373                </#if> 
374        </#if> 
375 
376        <!-- contenuto di tipo documento  --> 
377        <#if jsonStructureId == "11299" > 
378            <#assign tipoStruttura="documenti"> 
379            <#assign urlPaginaLista="/documenti"> 
380        </#if> 
381 
382        <#if tipoStruttura != "documenti" > 
383 
384                <#assign titolo =jsitem.getJSONArray("title_it_IT").getString(0) !> 
385                <#if  jsitem.getJSONArray("ddm/${jsonStructureId}/descrizioneBreve_it_IT")??  > 
386                <#assign descrizioneBreve =jsitem.getJSONArray("ddm/${jsonStructureId}/descrizioneBreve_it_IT").getString(0) !> 
387                </#if> 
388                <#if  jsitem.getString("ddm/${jsonStructureId}/immagineLista_it_IT")??  > 
389                <#if  jsitem.getString("ddm/${jsonStructureId}/immagineLista_it_IT")?has_content  > 
390                <#assign img1 =jsitem.getJSONArray("ddm/${jsonStructureId}/immagineLista_it_IT").getString(0)!> 
391                <#assign m = img1?eval!> 
392                <#assign imgsrc = "${cdnHost}/documents/${m.groupId}/0000/alternate-text/${m.uuid}?width=282&height=192" !> 
393                </#if> 
394                </#if> 
395 
396                 
397 
398                <div class="img-wrapper span4"> 
399                    <#if (imgsrc != "") > 
400                            <img src="${imgsrc}" alt="${titolo}" /> 
401                    </#if> 
402                </div> 
403                <div class="data span8"> 
404                        <div class="title"> 
405                            ${titolo} 
406                        </div> 
407 
408                        <#if (descrizioneBreve != "") > 
409                            <div class="abstract"> 
410                                     <#if (descrizioneBreve != "") >${descrizioneBreve}</#if> 
411                            </div> 
412                        </#if> 
413 
414                        <#if tipoStruttura == "link" > 
415                            <#assign urlLink=""> 
416                            <#assign testoLink=""> 
417                            <#if  jsitem.getJSONArray("ddm/13479/urlLink_it_IT")??  > 
418                            <#assign urlLink =jsitem.getJSONArray("ddm/13479/urlLink_it_IT").getString(0) !> 
419                            </#if> 
420                            <#if  jsitem.getJSONArray("ddm/13479/testoLink_it_IT")??  > 
421                            <#assign testoLink =jsitem.getJSONArray("ddm/13479/testoLink_it_IT").getString(0) !> 
422                            </#if> 
423 
424                            <div class="code data-row"> 
425                                    <strong class="item-label span3">Link:</strong> 
426                                    <span class="value span9"><a href="${urlLink}" target="_blank" ><#if (testoLink != "") >${testoLink}<#else>${urlLink}</#if></a></span> 
427                            </div> 
428                        </#if> 
429                </div> 
430                         
431                <#if frDettaglioPage != "" > 
432                    <#assign dettaglioPage= suggestoAPI.getFriendlyUrlByPageCode(request['theme-display']['company-id']?number,groupId,"${frDettaglioPage}",localeUtil.fromLanguageId(tdLocale),"", localeUtil.fromLanguageId("it_IT"),"")> 
433                    <#assign friendlyUrl = dettaglioPage +"/-/dettaglio/at/" + suggestoAPI.getWebContentFriendlyUrl(groupId?string,articleId) !> 
434                </#if> 
435                <#if tipoStruttura != "link" > 
436                    <a href="${friendlyUrl}?_ArticleDetailOneInstance_WAR_TripMashupportlet_back_url=correlati" class="btn btn-primary right">${labelMoreInfo}</a> 
437                </#if> 
438 
439         
440 
441  
442        </#if> 
443    
444 
445    </li> 
446  </#list> 
447</ul> 
448 
449</#if> 
450 
451 
452</div> 
453<!-- fine contenuti correlati -->