Asset Publisher

An error occurred while processing the template.
Denied access to model object as it does not belong to current company 236565

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #list resultsRelateds as resultsRelat...  [in template "250845" at line 108, column 1]
	- Reached through: #include "${templatesPath}/250845"  [in template "236565#236606#199096" at line 360, column 21]
----
1<#-- 
2Application display templates can be used to modify the look of a 
3specific application. 
4 
5Please use the left panel to quickly add commonly used variables. 
6Autocomplete is also available and can be invoked by typing "${". 
7--> 
8 
9<#--init template--> 
10<#include "${templatesPath}/250833" /> 
11 
12<#--functions template--> 
13<#include "${templatesPath}/250837" /> 
14 
15 
16<#assign displayDate = getDisplayDateFormat( .vars['reserved-article-display-date'].data, "MMMM yyyy")> 
17 
18 
19<#assign display=""> 
20<div class="container-fluid article-content article-custom-style-ot" id="content-wrapper"> 
21 
22    <#assign  mostar = TITLE.getSiblings()?size> 
23    <#if TITLE.getSiblings()?has_content &&  mostar != 1> 
24        <div class="col-md-1 col-sm-1 col-xs-1 navbar-container"> 
25            <aside id='scroll-nav' class=" article-aside hidden-sm hidden-xs" style="top: 0px;"><!-- reports --> 
26 
27                <ul class="scroll-list"> 
28                    <li class="arrow up"><a href="#section1" rel="nofollow"><span class="fa fa-angle-up"></span></a></li> 
29                    <#assign lastSection = "1"> 
30                    <#assign  j = 0> 
31                    <#list TITLE.getSiblings() as item > 
32                        <#if j == 0> 
33                            <li data-toggle="tooltip" data-placement="right" title="" data-original-title='${Titulo.getData()}' class=""><a href='#section${j}' rel="nofollow"><span class="fa fa-circle-o"></span></a></li> 
34                        <#else> 
35                            <li data-toggle="tooltip" data-placement="right" title="" data-original-title='${j}. ${item.getData()}' class=""><a href='#section${j}' rel="nofollow"><span class="fa fa-circle-o"></span></a></li> 
36                        </#if> 
37 
38                        <#assign lastSection = j> 
39                        <#assign j = j+1> 
40                    </#list> 
41                    <li class="arrow down"><a href="#section${lastSection}" rel="nofollow"><span class="fa fa-angle-down"></span></a></li> 
42                </ul> 
43            </aside><!-- /article --> 
44        </div> 
45    </#if> 
46 
47    <div class="col-md-12 col-sm-12 col-xs-12 cos-article"> 
48        <section class="article" > 
49            <article class="scroll-nav__section row" id="section0"> 
50                <#-- cabecera--> 
51                <#if GENERALIMAGENEW??> 
52                    <#if GENERALIMAGENEW.getData()?has_content > 
53                        <div class="banner-image" id="detail-header-img"> 
54                            <img src="${GENERALIMAGENEW.getData()}" alt="${.vars['reserved-article-title'].data}"/> 
55                        </div> 
56                    <#else> 
57                        <#if GENERALIMAGE.getData()?has_content > 
58                            <div class="banner-image back-compability" id="detail-header-img-back"> 
59                                <img src="${GENERALIMAGE.getData()}" alt="${.vars['reserved-article-title'].data}"/> 
60                            </div> 
61                        </#if> 
62                    </#if> 
63                <#else> 
64                    <#if GENERALIMAGE.getData()?has_content > 
65                        <div class="banner-image back-compability" id="detail-header-img-back"> 
66                            <img src="${GENERALIMAGE.getData()}" alt="${.vars['reserved-article-title'].data}"/> 
67                        </div> 
68                    </#if> 
69                </#if> 
70                <div class="header-content" id="detail-header" style=""> 
71                    <section class="row page_content_title_observatori"> 
72                        <div class="jumbotron document-adjunt"> 
73                            <div class="row main"> 
74                                <div class="col-md-8 col-sm-12 col-xs-12"> 
75                                    <div class="index-and-title"> 
76                                        <div class="category"> 
77                                            <#assign categories = entry.getCategories() /> 
78                                            <#list categories as category > 
79                                                <#assign vocabularyId = vocabularyIdTipoC> 
80                                                <#if category.getVocabularyId() == vocabularyId?number> 
81                                                    <p class="category"> 
82                                                        ${category.getTitle(locale)} 
83                                                    </p> 
84                                                </#if> 
85                                            </#list> 
86                                        </div> 
87                                    </div> 
88                                    <p class="description"> 
89                                        ${Titulo.getData()} 
90                                    </p> 
91                                    <#assign pathThemeImage = themeDisplay.getPathThemeImages() /> 
92                                    <section class="date-content"> 
93                                                      <span class="posted-on"> 
94                                                        <time datetime="${displayDate?cap_first}">${displayDate?cap_first}</time> 
95                                                      </span> 
96                                        <div class="print-action hidden-sm hidden-xs"> 
97                                                   <span class=""> 
98                                                       <a href="#" onclick="window.print();" class=" taglib-icon"> 
99                                                              <img id="bhfa__column1__0" src="${pathThemeImage}/spacer.png" alt="print"> 
100                                                       </a> 
101                                                   </span> 
102                                        </div> 
103                                    </section> 
104 
105 
106 
107                                </div> 
108                            </div> 
109                        </div> 
110 
111                    </section> 
112 
113                </div> 
114                <#-- contenido --> 
115                <div class="col-xl-9 col-md-12 col-sm-12 col-xs-12 columna-esquerra"> 
116                    <#if Subtitol.getData()?has_content > 
117                        <div class="subtitulo-content"> 
118                            <h2>${Subtitol.getData()}</h2> 
119                        </div> 
120                    </#if> 
121                    <#if Autor.getSiblings()?has_content && Autor.getSiblings()[0].getData() != ""> 
122                        <section class="autors clean-padding col-md-12 col-sm-12 col-xs-12"> 
123                            <#assign descripcio_autor=""> 
124                            <#list Autor.getSiblings() as autor> 
125                                <#if autor.Descripcio_Autor.getData()?has_content> 
126                                    <#assign descripcio_autor= descripcio_autor + autor.getData() + ", " + autor.Descripcio_Autor.getData() + "; "/> 
127                                <#else> 
128                                    <#assign descripcio_autor= descripcio_autor + autor.getData() + "; "/> 
129                                </#if> 
130                            </#list> 
131                            <div class="autors-content"> 
132                                <div class="autor"> 
133                                    ${descripcio_autor?substring(0, (descripcio_autor?length) -2)} 
134                                </div> 
135                            </div> 
136                        </section> 
137                    </#if> 
138 
139                    <#if TituloConvosWin?has_content && TituloConvosWin.getData()!=""> 
140                        <section class="autors clean-padding col-md-12 col-sm-12 col-xs-12" style="    margin-bottom: 0px;"> 
141                            <div class="autor convo-winer"> 
142                                ${TituloConvosWin.getData()} 
143                            </div> 
144                        </section> 
145                    </#if> 
146 
147                    <#if DOCUMENT.getData()?has_content > 
148                        <section class="clean-padding col-md-12 col-sm-12 col-xs-12"> 
149                            <div class="last-downloads"> 
150                                <#assign classFile=getButtonStyles(DOCUMENT.getData())> 
151                                <#assign targetFile="target=\"_blank\""/> 
152                                <a ${targetFile} href="${DOCUMENT.getData()}" title="${TITLE.getData()}" class="btn btn-download pushtag-download"> 
153                                    <div class="text"> 
154                                        <#if DOCUMENT.BOTON_DOCUMENT_TITLE.getData()?has_content> 
155                                            ${DOCUMENT.BOTON_DOCUMENT_TITLE.getData()} 
156                                        <#else> 
157                                            <@liferay.language key="observatoriosocial-download"/> 
158                                        </#if> 
159                                    </div> 
160                                    <div class="icon fa fa-2x ${classFile}"></div> 
161                                </a> 
162                            </div> 
163                        </section> 
164                    </#if> 
165 
166                    <#-- PREVIEW --> 
167                    <#if RESUM_PREVI??> 
168                        <#if getterUtil.getBoolean(RESUM_PREVI.getData())> 
169                            <div class="previ"> 
170                                <h1 class="titol-previ"> 
171                                    ${RESUM_PREVI.get("SUBTITULO_PUNTOS_CLAVE").getData()} 
172                                </h1> 
173 
174                                <div class="microresum-previ"> 
175                                    ${RESUM_PREVI.get("MICRORESUMEN_PUNTOS_CLAVE").getData()} 
176                                </div> 
177 
178                                <div class="puntsclau-previ"> 
179                                    <@liferay.language key="observatoriosocial.puntos.clave"/> 
180                                </div> 
181                                <#assign style="col-md-12 col-sm-12 col-xs-12 row-previpunts"> 
182                                <#-- flex no es necesario <#if RESUM_PREVI.get("PUNTO_CLAVE_IZQ")?has_content && RESUM_PREVI.get("PUNTO_CLAVE_DER")?has_content> 
183                                        <#assign style="col-md-6 col-sm-6 col-xs-12 row"> 
184                                   </#if>--> 
185                                <#assign i=1> 
186                                <#if RESUM_PREVI.get("PUNTO_CLAVE_IZQ")?has_content> 
187                                    <ul class="${style}"> 
188 
189                                        <#list RESUM_PREVI.get("PUNTO_CLAVE_IZQ").getSiblings() as izq > 
190                                            <li> 
191                                                <div class="numberCircle">${i}</div>&nbsp;&nbsp; 
192                                                ${izq.getData()} 
193                                            </li> 
194                                            <#assign i=i+1> 
195                                        </#list> 
196                                    </ul> 
197                                </#if> 
198                                <#if RESUM_PREVI.get("PUNTO_CLAVE_DER")?has_content> 
199                                    <ul class="${style}"> 
200                                        <#list RESUM_PREVI.get("PUNTO_CLAVE_DER").getSiblings() as der > 
201                                            <li> 
202                                                <div class="numberCircle">${i}</div>&nbsp;&nbsp; 
203                                                ${der.getData()} 
204                                            </li> 
205                                            <#assign i=i+1> 
206                                        </#list> 
207                                    </ul> 
208                                </#if> 
209                                <#if RESUM_PREVI.get("TITULO_GRAFICO_ITEM_PREVI")?has_content> 
210                                    <#list RESUM_PREVI.get("TITULO_GRAFICO_ITEM_PREVI").getSiblings() as resum > 
211                                        <div class="col-md-12 col-sm-12 col-xs-12 resum-previ"> 
212                                            <#if resum.get("GRAFICO_ITEM_PREVI").getData()?has_content> 
213                                                <div class="resum-previ-text"> 
214                                                    <div class="titol-resum">${resum.getData()}</div> 
215                                                </div> 
216                                                <div class="resum-previ-imatge"> 
217                                                    <#assign imageAlt= ""/> 
218                                                    <#if resum.get("IMAGE_ALT")?? &&  resum.get("IMAGE_ALT").getData()?has_content> 
219                                                        <#assign imageAlt= resum.get("IMAGE_ALT").getData()/> 
220                                                    </#if> 
221                                                    <#assign resAlt = getDefaultAltImage(resum.get("GRAFICO_ITEM_PREVI").getData(), imageAlt)/> 
222                                                    <img src="${resum.get("GRAFICO_ITEM_PREVI").getData()}" alt="${resAlt}"/> 
223                                                </div> 
224                                                <div class="text-resum"> 
225                                                    ${resum.get("TEXTO_GRAFICO_ITEM_PREVI").getData()} 
226                                                </div> 
227                                            <#else> 
228                                                <div class="resum-previ-text"> 
229                                                    <div class="titol-resum">${resum.getData()}</div> 
230                                                </div> 
231                                                <div class="text-resum"> 
232                                                    ${resum.get("TEXTO_GRAFICO_ITEM_PREVI").getData()} 
233                                                </div> 
234                                            </#if> 
235                                        </div> 
236                                    </#list> 
237                                </#if> 
238                            </div> 
239                        <#-- TODO:: RESTA de camps de previ --> 
240 
241                        <#--  INICI BOTONS VEURE TOT i VEURE RESUM  --> 
242                            <#assign mostrarBoton = languageUtil.get(locale, "observatoriosocial.veure-tot")> 
243                            <#assign ocultarBoton = languageUtil.get(locale, "observatoriosocial.veure-resum-previ")> 
244 
245                            <#if RESUM_PREVI_TEXT_BOTO_MOSTRAR??> 
246                                <#if RESUM_PREVI_TEXT_BOTO_MOSTRAR.getData()?has_content> 
247                                    <#assign mostrarBoton =	RESUM_PREVI_TEXT_BOTO_MOSTRAR.getData()> 
248                                </#if> 
249                            </#if> 
250 
251                            <#if RESUM_PREVI_TEXT_BOTO_OCULTAR??> 
252                                <#if RESUM_PREVI_TEXT_BOTO_OCULTAR.getData()?has_content> 
253                                    <#assign ocultarBoton =	RESUM_PREVI_TEXT_BOTO_OCULTAR.getData()> 
254                                </#if> 
255                            </#if> 
256 
257                            <div class="veure-tot-botons"> 
258                                <span class="boto-veure-tot" id="boto-veure-tot-header"> 
259                                    <a id="veure-tot-header" title="${mostrarBoton}" href="#"> 
260                                        ${mostrarBoton} 
261                                    </a> 
262                                </span> 
263                                <span class="boto-resum-previ" id="boto-resum-previ-header"> 
264                                    <a id="veure-resum-previ-header" title="${ocultarBoton}" href="#"> 
265                                        ${ocultarBoton} 
266                                    </a> 
267						        </span> 
268                            </div> 
269                        <#--  FI BOTONS VEURE TOT i VEURE RESUM  --> 
270                            <#assign display="display:none;"> 
271                        </#if> 
272                    </#if> 
273 
274                    <div id="article-total" style="display:none;"> 
275                        <#-- - END PREVIEW --> 
276                        <#assign i = 0> 
277                        <#list TITLE.getSiblings() as item > 
278                            <section class="article" ><!-- reports --> 
279                                <article class="scroll-nav__section" id="section${i}"><!-- col-md-6 col-xs-12 --> 
280                                    <#if item.getData()?has_content > 
281                                        <#if i == 0> 
282                                            <h1 class="col-md-12 col-sm-12 main-h1">${item.getData()}</h1> 
283                                        <#else> 
284                                            <h1 class="col-md-12 col-sm-12 main-h1">${i}. ${item.getData()}</h1> 
285                                        </#if> 
286                                    </#if> 
287                                    <#list item.SUBTITLE.getSiblings() as subitem > 
288                                        <#if subitem.getData()?has_content> 
289                                            <h2 class="col-md-12 col-sm-12 col-xs-12">${subitem.getData()}</h2> 
290                                        </#if> 
291                                        <div class="article-contents col-md-12 col-sm-12 col-xs-12 row"> 
292                                            <!-- bloque 1 --> 
293 
294                                            <#assign imageAlt=""/> 
295                                            <#if subitem.IMAGEALT?? && subitem.IMAGEALT.getData()?has_content > 
296                                                <#assign imageAlt = subitem.IMAGEALT.getData()> 
297 
298 
299                                            </#if> 
300                                            <#if subitem.IMAGE.getData()?has_content > 
301                                                <div class="col-md-12 col-sm-12 col-xs-12 row"> 
302                                                    <#assign resAlt = getDefaultAltImage(subitem.IMAGE.getData(), imageAlt)/> 
303                                                    <img src="${subitem.IMAGE.getData()}" class="img-responsive image-1-columna" alt="${resAlt}"/> 
304                                                </div> 
305                                            </#if> 
306                                            <#if subitem.CITE.getData()?has_content> 
307                                                <div class="col-md-12 col-sm-12 col-xs-12 row"> 
308                                                    <cite class="col-md-12 col-sm-12 col-xs-12 cita-1-columna">${subitem.CITE.getData()}</cite> 
309                                                </div> 
310                                            </#if> 
311                                            <#if subitem.CONTENT.getData()?has_content> 
312                                                <div class="col-md-12 col-sm-12 col-xs-12 row"><p>${subitem.CONTENT.getData()}</p></div> 
313                                            </#if> 
314                                            <#if subitem.VIDEO.getData()?has_content> 
315                                                <div class="col-md-12 col-sm-12 col-xs-12 row"><p>${subitem.VIDEO.getData()}</p></div> 
316                                            </#if> 
317                                        </div> 
318                                    </#list> 
319                                </article><!-- /col-md-6 col-xs-12 --> 
320                            </section> 
321                            <#assign i = i+1> 
322                        </#list> 
323 
324                        <#if (PeuPagina.getSiblings()?size > 1) > 
325                            <section class="article peu-pagina" ><!-- reports --> 
326                                <article class="scroll-nav__section" id=""><!-- col-md-6 col-xs-12 --> 
327                                    <#list PeuPagina.getSiblings() as cur_PeuPagina> 
328                                        <div class="peu-content"> 
329                                            <#if cur_PeuPagina.get("Num")?has_content > 
330                                                <p id='${cur_PeuPagina.get("Num").getData()}' class="num-peu"> 
331                                                    ${cur_PeuPagina.get("Num").getData()}. ${cur_PeuPagina.getData()} 
332                                                    <a href="#ancora-#${cur_PeuPagina.get("Num").getData()}" rel="nofollow" class="tornar-ancora">&crarr;</a> 
333                                                </p> 
334                                            </#if> 
335                                        </div> 
336                                    </#list> 
337                                </article> 
338                            </section> 
339                        </#if> 
340                    </div> 
341                    <#if RESUM_PREVI??> 
342                        <#if getterUtil.getBoolean(RESUM_PREVI.getData())> 
343                            <div class="veure-tot-botons"> 
344					<span class="boto-resum-previ" id="boto-resum-previ-footer"> 
345						<a id="veure-resum-previ-footer" title="${ocultarBoton}" href="#"> 
346							${ocultarBoton} 
347						</a> 
348					</span> 
349                            </div> 
350                        </#if> 
351                    </#if> 
352 
353                </div> 
354                <#-- columna derecha --> 
355                <div class="col-xl-3 col-md-12 col-sm-12 col-xs-12  columna-dreta"> 
356                    <#--classification template--> 
357                    <#include "${templatesPath}/250841" /> 
358 
359                    <#--related-content template--> 
360                    <#include "${templatesPath}/250845" /> 
361                </div> 
362 
363            </article> 
364        </section> 
365 
366 
367    </div> 
368 
369</div> 
370<#--interested-content template--> 
371<#include "${templatesPath}/250849" /> 
372 
373 
374<script type="text/javascript"> 
375    $( document ).ready(function() { 
376 
377        $("#boto-resum-previ-footer").hide(); 
378        $("#boto-resum-previ-header").hide(); 
379        $("#scroll-nav").hide(); 
380        $("#article-total").show(); 
381        <#if RESUM_PREVI??> 
382        <#if getterUtil.getBoolean(RESUM_PREVI.getData())> 
383        $("#article-total").hide(); 
384        <#else> 
385        $("#article-total").show(); 
386        $("#scroll-nav").show(); 
387        </#if> 
388        </#if> 
389 
390        if ($("#detail-header-img img").length >0){ 
391            $(".main-header-aux").html($("#detail-header-img")) 
392
393 
394        if ($("#detail-header-img-back img").length >0){ 
395            $(".main-header-aux").html($("#detail-header-img-back")) 
396
397 
398        $(".header-content-home").html($("#detail-header")); 
399 
400        $("#veure-tot-header").click(function(event) { 
401            $("#boto-resum-previ-footer").show(); 
402            $("#boto-veure-tot-header").hide(); 
403            $("#boto-resum-previ-header").show(); 
404            $("#article-total").show(); 
405            $("#scroll-nav").show(); 
406            scrollNav(); 
407            event.preventDefault(); 
408        }); 
409 
410        $("#veure-resum-previ-header").click(function(event) { 
411            $("#boto-resum-previ-footer").hide(); 
412            $("#boto-veure-tot-header").show(); 
413            $("#boto-resum-previ-header").hide(); 
414            $("#article-total").hide(); 
415            $("#scroll-nav").hide(); 
416            event.preventDefault(); 
417        }); 
418 
419        $("#veure-resum-previ-footer").click(function(event) { 
420            $("#boto-veure-tot-header").show(); 
421            $("#boto-resum-previ-header").hide(); 
422            $("#boto-resum-previ-footer").hide(); 
423            $("#article-total").hide(); 
424            $("#scroll-nav").hide(); 
425            $(window).scrollTop(0); 
426            event.preventDefault(); 
427        }); 
428 
429        $('.cos-article a[href^="#"]').each(function() { 
430            $(this).addClass( "ancora" ); 
431            $(this).attr("id","ancora-"+$(this).attr("href")); 
432        }); 
433 
434        $(".tornar-ancora").click(function(event){ 
435            var idElement = $(this).attr("href"); 
436            $('.ancora').each(function() { 
437                if(idElement == "#"+$(this).attr("id")){ 
438                    $('html, body').animate({ 
439                        scrollTop: $(this).offset().top 
440                    }, 500); 
441
442            }); 
443            event.preventDefault(); 
444        }); 
445    }); 
446</script>