Publicador de contenidos

Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> ImagenDeFondo  [in template "20101#20128#34371" at line 25, column 34]

----
Tip: If the failing expression is known to be 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: ${ImagenDeFondo.getData()}  [in template "20101#20128#34371" at line 25, column 32]
----
1<style> 
2     .container-news 
3
4		margin: auto; 
5		max-width: 1020px; 
6
7     
8    .newsContent 
9
10		padding-left: 20px; 
11		padding-bottom: 20px; 
12
13	 
14	#newsHeader .newsContent .newsTitle 
15
16		font-size:45px; 
17
18	 
19	.newsButtons 
20
21		padding-left: 20px; 
22		padding-bottom: 20px; 
23
24    #newsHeader .content-right .content { 
25        background-image: url("${ImagenDeFondo.getData()}"); 
26        background-size: cover; 
27        background-position: center; 
28        width: 100%; 
29        padding-top: 70%; 
30
31     
32    .icon-red-social { 
33        width: 40px; 
34        height: auto; 
35
36     
37    .compartir-otros__interior { 
38        margin-left: 40px; 
39        background-color: #F7F7F7; 
40        border: 0.063rem solid #D6D6D6; 
41        border-radius: 1.250rem; 
42        z-index: 50; 
43        width: 200px; 
44
45     
46    #verVideoLock, #leerPDFlock { 
47        text-align: center; 
48        display: inline-block; 
49        position: relative; 
50        text-decoration: none; 
51        overflow: hidden; 
52        transition: all 0.3s linear 0s;        
53
54 
55    #verVideoLock:before, #leerPDFlock:before { 
56        content: "${languageUtil.get(themeDisplay.getLocale(), "cu.premium")}"; 
57        background: white; 
58        display: flex; 
59        align-items: center; 
60        justify-content: center; 
61        position: absolute; 
62        top: 0; 
63        right: -100%; 
64        width: 100%; 
65        height: 100%; 
66        border-radius: 0px $border-radius $border-radius 0px; 
67        transition: all 0.2s linear 0s; 
68        text-align: center; 
69
70 
71    #verVideoLock:hover, #leerPDFlock:hover { 
72        text-indent: -100%; 
73        opacity: 1; 
74
75 
76    #verVideoLock:hover::before, #leerPDFlock:hover::before { 
77        right: 0; 
78        text-indent: 0px; 
79        color: #2157de; 
80        text-transform: uppercase; 
81
82     
83    #verVideoLock img, #leerPDFlock img { 
84        max-width: 16px; 
85        margin-left: 10px; 
86
87     
88    #verVideoLock.sinEfecto:hover, 
89    #leerPDFlock.sinEfecto:hover { 
90        text-indent: unset; 
91
92     
93    #verVideoLock.sinEfecto:before, 
94    #leerPDFlock.sinEfecto:before { 
95        content: none; 
96
97       #leerPDFlock.nologin:before{ 
98		content: "${languageUtil.get(themeDisplay.getLocale(), "cu.login")}"; 
99    }  
100    #botonVolver button { 
101        background: transparent; 
102        border: none; 
103        color: #2157de; 
104        padding: 10px 30px; 
105
106</style> 
107 
108<#assign journalArticleId=.vars[ 'reserved-article-id'].data /> 
109<#assign journalArticleLocalService=serviceLocator.findService( "com.liferay.journal.service.JournalArticleLocalService")> 
110<#assign article=journalArticleLocalService.getArticle(groupId, .vars[ 'reserved-article-id'].data) /> 
111<#assign resourceprimKey=article.getResourcePrimKey() /> 
112<#assign assetEntryLocalService=serviceLocator.findService( "com.liferay.asset.kernel.service.AssetEntryLocalService")> 
113<#assign assetEntry=assetEntryLocalService.getEntry( "com.liferay.journal.model.JournalArticle", resourceprimKey)> 
114<#assign listCategories=assetEntry.getCategories()> 
115<#assign empty = assetEntryLocalService.incrementViewCounter(user.getUserId(), assetEntry)> 
116<#assign serviceBuilder = serviceLocator.findService("arcano.service.builder.service.ReportUserLocalService")> 
117<#assign groupID = themeDisplay.getScopeGroupId()> 
118<#assign companyID = company.getCompanyId()> 
119<#assign companyName = company.getShortName()> 
120<#assign userID = user.getUserId()> 
121<#assign userName = user.getLogin()> 
122<#assign userAgent = request.getHeader("User-Agent")> 
123<#assign reportUser = serviceBuilder.findCustom(userID, resourceprimKey)!> 
124<#if reportUser?has_content> 
125    <#assign reportUserLike = reportUser.isLike()> 
126    <#assign reportUserLeerDespues = reportUser.isLeerDespues()> 
127    <#assign reportUserLeido = reportUser.isLeido()> 
128<#else> 
129    <#assign reportUserLike = false> 
130    <#assign reportUserLeerDespues = false> 
131    <#assign reportUserLeido = false> 
132</#if> 
133<#assign currentUrl = themeDisplay.getURLCurrent()>   
134<#assign currentUrlPortal = themeDisplay.getURLPortal()>    
135<#assign AssetVocabularyLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetVocabularyLocalService")> 
136<#assign vocabularyTiposDeContenido = "Tipos_de_contenido"/> 
137<#assign vocabularyRegion = "Región"/> 
138<#assign vocabularyCaategoria = "Categorías"/> 
139<#assign vocabularyTopics = "Topics"/> 
140<#assign categoriasTiposDeContenido = ""/> 
141<#assign categoriasRegion = ""/> 
142<#assign categoriasCategoria = ""/> 
143<#assign categoriasTopics = ""/> 
144<#assign categoriasOtros = ""/> 
145<#assign isAERPublico = false> 
146 
147<#list listCategories as categoryList> 
148    <#assign vocabularyy = AssetVocabularyLocalService.getVocabulary(categoryList.getVocabularyId())> 
149    <#switch vocabularyy.getName()> 
150        <#case vocabularyTiposDeContenido> 
151            <#assign categoriasTiposDeContenido = categoriasTiposDeContenido + categoryList.getTitle(themeDisplay.getLocale())/> 
152            <#break> 
153        <#case vocabularyRegion> 
154            <#assign categoriasRegion = categoriasRegion + categoryList.getTitle(themeDisplay.getLocale()) + ","/> 
155            <#break> 
156        <#case vocabularyCaategoria> 
157            <#assign categoriasCategoria = categoriasCategoria + categoryList.getTitle(themeDisplay.getLocale()) + ","/> 
158            <#break> 
159        <#case vocabularyTopics> 
160            <#assign categoriasTopics = categoriasTopics + categoryList.getTitle(themeDisplay.getLocale()) + ","/> 
161            <#break> 
162        <#default> 
163            <#assign categoriasOtros = categoriasOtros + categoryList.getTitle(themeDisplay.getLocale()) + ","/> 
164    </#switch> 
165</#list> 
166 
167<#assign httpUtil=serviceLocator.findService("com.liferay.portal.kernel.util.HttpUtil")> 
168<#assign decodeURL=httpUtil.decodeURL(enlaceAPDF.getData())> 
169 
170<#assign formatFound=""/> 
171<#assign videoFormatMP4 = ".mp4"/> 
172<#assign videoFormatOGG = ".ogg"/> 
173<#assign videoFormatMKV = ".mkv"/> 
174<#assign videoFormatFLV = ".flv"/> 
175<#assign videoFormatMOV = ".mov"/> 
176 
177<#assign audioFormatMP3 = ".mp3"/> 
178<#assign audioFormatWAV = ".wav"/> 
179 
180<#if URLDeVideo.getData()?has_content> 
181     
182    <#if URLDeVideo.getData()?contains(videoFormatMP4)> 
183        <#assign formatFound=videoFormatMP4/> 
184    </#if> 
185    <#if URLDeVideo.getData()?contains(videoFormatOGG)> 
186        <#assign formatFound=videoFormatOGG /> 
187    </#if> 
188    <#if URLDeVideo.getData()?contains(videoFormatMKV)> 
189        <#assign formatFound=videoFormatMKV/> 
190    </#if> 
191    <#if URLDeVideo.getData()?contains(videoFormatFLV)> 
192        <#assign formatFound=videoFormatFLV/> 
193    </#if> 
194    <#if URLDeVideo.getData()?contains(videoFormatMOV)> 
195        <#assign formatFound=videoFormatMOV/> 
196    </#if> 
197    <#if URLDeVideo.getData()?contains(audioFormatMP3)> 
198        <#assign formatFound=audioFormatMP3/> 
199    </#if> 
200    <#if URLDeVideo.getData()?contains(audioFormatWAV)> 
201        <#assign formatFound=audioFormatWAV/> 
202    </#if> 
203     
204</#if> 
205 
206<div id="botonVolver"> 
207    <button onclick="goBack()"> 
208        <i class="icon-long-arrow-left"></i> Volver 
209    </button> 
210</div> 
211<div class="container container-news"> 
212    <div id="newsHeader"> 
213        <div class="row h-100 rowHeader"> 
214            <div class="col-12 order-2 order-lg-1 col-lg-6"> 
215                <div class="row newsContent"> 
216                    <div class="newsType">  
217                        ${categoriasTiposDeContenido} 
218                    </div> 
219                    <div class="newsTitle"> ${Titulo.getData()} </div> 
220                    <div class="newsDate"> 
221                        <#assign FechaDePublicacion_Data=getterUtil.getString(FechaDePublicacion.getData())> 
222 
223                            <#if validator.isNotNull(FechaDePublicacion_Data)> 
224                                <#assign FechaDePublicacion_DateObj=dateUtil.parseDate( "yyyy-MM-dd", FechaDePublicacion_Data, locale)> 
225 
226                                    ${dateUtil.getDate(FechaDePublicacion_DateObj, "dd MMM yyyy", locale)} 
227                            </#if> 
228                    </div> 
229                </div> 
230                <div class="row newsButtons"> 
231                    <#assign like = ""> 
232                    <#assign likeFull = ""> 
233                    <#assign leerDespues = ""> 
234                    <#assign leerDespuesFull = ""> 
235                    <#if reportUser?has_content> 
236                        <#if reportUserLike> 
237                            <#assign like = "d-none"> 
238                        <#else> 
239                            <#assign likeFull = "d-none"> 
240                        </#if> 
241                        <#if reportUserLeerDespues> 
242                            <#assign leerDespues = "d-none"> 
243                        <#else> 
244                            <#assign leerDespuesFull = "d-none"> 
245                        </#if> 
246                    <#else> 
247                        <#assign likeFull = "d-none"> 
248                        <#assign leerDespuesFull = "d-none"> 
249                    </#if> 
250                    <img id="like" class="${like}" src="/o/arcano-theme/images/like.svg" alt="Like" data-toggle="tooltip" data-placement="top" title="Me gusta"> 
251                    <img id="likeFull" class="${likeFull}" src="/o/arcano-theme/images/like-full.svg" alt="Like" data-toggle="tooltip" data-placement="top" title="Me gusta"> 
252                    <img id="leerDespues" class="${leerDespues}" src="/o/arcano-theme/images/saved.svg" alt="Save" data-toggle="tooltip" data-placement="top" title="My research"> 
253                    <img id="leerDespuesFull" class="${leerDespuesFull}" src="/o/arcano-theme/images/saved-full.svg" alt="Save" data-toggle="tooltip" data-placement="top" title="My research"> 
254                    <a  data-toggle="collapse" data-target="#collapseShare" aria-expanded="true" aria-controls="collapse"><img src="/o/arcano-theme/images/share.svg" alt="Share"  title="Compartir"></a>                 
255                </div> 
256                <!-- Collapse redes sociales--> 
257                <div class="collapse compartir-otros__interior mt-1" id="collapseShare"> 
258         
259                    <#assign urlTobody = currentUrlPortal + currentUrl> 
260                     
261                    <a href="javascript:openMail()"> 
262                        <img src="/o/arcano-theme/images/emailShare.svg" class="ml-1 mt-1 icon-red-social" alt="compartirEmail"> 
263                    </a> 
264                    <a href="#" onclick="javascript:openTwitter()" title="Twitter"> 
265                        <img src="/o/arcano-theme/images/twitterShare.svg" class="ml-1 icon-red-social" alt="compartirTwitter"> 
266                    </a> 
267                    <a href="#" onclick="javascript:openLinkedin()" title="Linkedin"> 
268                        <img src="/o/arcano-theme/images/linkedinShare.svg" class="ml-1 icon-red-social" alt="compartirLinkedin"> 
269                    </a> 
270                 </div> 
271            </div> 
272            <div class="col-12 order-1 order-lg-2 col-lg-6 content-right"> 
273                <div class="row"> 
274                    <div class="content"> 
275                        <div class="timeRemaining"> <img src="/o/arcano-theme/images/clock.svg" alt="Clock"> <span>${TiempoDeLecturaEstimada.getData()}</span> 
276                        </div> 
277                    </div> 
278                </div> 
279            </div> 
280        </div> 
281         
282    </div> 
283</div> 
284<div class="container container-news"> 
285     <div id="topics"> 
286        <div class="col-12"> 
287            <div class="row"> 
288                <span class="resalted">${languageUtil.get(themeDisplay.getLocale(), "cu.category")}:</span> 
289                <span class="divider"></span> 
290                <#if categoriasCategoria?has_content> 
291                    <#list categoriasCategoria?remove_ending(",")?split(",") as cat> 
292		                <#if (cat == "AER Público")> 
293		                	<#assign isAERPublico = true> 
294						</#if> 
295                        <#if (cat == "AER Personal")> 
296                            <span class="categoryName d-none">${cat}</span> 
297                        <#else> 
298                            <span class="categoryName">${cat}</span> 
299                            <span class="divider"></span> 
300                        </#if> 
301                    </#list> 
302                </#if> 
303                <#if categoriasRegion?has_content> 
304                    <#list categoriasRegion?remove_ending(",")?split(",") as cat> 
305                        <span class="categoryName">${cat}</span> 
306                        <span class="divider"></span> 
307                    </#list> 
308                </#if> 
309                <#if categoriasTopics?has_content> 
310                    <#list categoriasTopics?remove_ending(",")?split(",") as cat> 
311                        <span class="categoryName">${cat}</span> 
312                        <span class="divider"></span> 
313                    </#list> 
314                </#if> 
315                <#if categoriasOtros?has_content> 
316                    <#list categoriasOtros?remove_ending(",")?split(",") as cat> 
317                        <span class="categoryName">${cat}</span> 
318                        <span class="divider"></span> 
319                    </#list> 
320                </#if>     
321            </div> 
322        </div> 
323    </div> 
324</div> 
325<div class="container container-news"> 
326    <div id="analistas"> 
327        <div class="row"> 
328            <div class="col-12 col-md-8 content-left"> 
329                <div class="row"> 
330                    <div class="text"> 
331                        <h6>${languageUtil.get(themeDisplay.getLocale(), "cu.analysts")}:</h6> 
332                        
333                        <#if Nombre.getSiblings()?has_content> 
334                            <#list Nombre.getSiblings() as cur_Nombre> 
335 
336                                <div class="contact"> <img src="/o/arcano-theme/images/point.svg" alt="dot"> 
337                                    <div>  
338                                        <span class="name"> 
339                                            ${cur_Nombre.getData()} 
340                                            <#if cur_Nombre.getChildren()?size gte 3> 
341                                                ${cur_Nombre.apellidos.getData()} 
342                                            </#if> 
343                                        </span> 
344                                    </div> 
345                                </div> 
346                            </#list> 
347                        </#if> 
348                    </div> 
349                </div> 
350            </div> 
351        </div> 
352    </div> 
353</div> 
354<div class="container container-news"> 
355    <div class="newsContent"> 
356        <div class="paragraph">${textoComplementario.getData()}  
357                        <br> 
358                           <div class="bullet"> 
359                            <#list textoComplementario.Bullet.getSiblings() as cur_textoComplementario> 
360                                <#if cur_textoComplementario.getData()?has_content> 
361                                <div class="contact"> <img class="bulletPoint" src="/o/arcano-theme/images/point.svg" alt="dot"> 
362                                 <span class="name">${cur_textoComplementario.getData()}</span>  
363                                </div> 
364                                </#if> 
365                            </#list> 
366                        </div> 
367                         
368         </div> 
369 
370    </div> 
371</div> 
372<div class="downloaded"> 
373<#if themeDisplay.isSignedIn()> 
374    <div class="center"> 
375        <#if URLDeVideo.getData()?has_content> 
376            <button id="visorVideo" class="buttonArcano buttonTransparent mr-1 d-none" data-toggle="modal" data-src="${URLDeVideo.getData()}" data-target="#modalVideoReport">${languageUtil.get(themeDisplay.getLocale(), "cu.watch-informative-video")}</button> 
377         
378            <a id="verVideoLockLink" <#if isAERPublico> href="/login?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Fcreate_account" <#else>href="/servicios#p_p_id_subscripcion_portlet_SubscripcionPortlet_INSTANCE_PnZcpppQbirC_"</#if>> 
379                <button id="verVideoLock" role="button" class="buttonArcano buttonColored .effect" role="button"> 
380                    ${languageUtil.get(themeDisplay.getLocale(), "cu.watch-informative-video")}<img src="/o/arcano-theme/images/lockWhite.png"/> 
381                </button> 
382            </a> 
383        </#if> 
384 
385         <button id="leerPDF" role="button" class="buttonArcano buttonColored d-none">${languageUtil.get(themeDisplay.getLocale(), "cu.read-document")}</button>  
386 
387         <a id="leerPDFlockLink" <#if isAERPublico> href="/login?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Fcreate_account" <#else>href="/servicios#p_p_id_subscripcion_portlet_SubscripcionPortlet_INSTANCE_PnZcpppQbirC_"</#if>><button id="leerPDFlock" role="button" class="buttonArcano buttonColored .effect" role="button">${languageUtil.get(themeDisplay.getLocale(), "cu.read-document")}<img src="/o/arcano-theme/images/lockWhite.png"/></button></a> 
388    </div> 
389<#else>     
390    <div class="center"> 
391         <a id="leerPDFlockLink" <#if isAERPublico> href="/login?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Fcreate_account" <#else>href="/servicios#p_p_id_subscripcion_portlet_SubscripcionPortlet_INSTANCE_PnZcpppQbirC_"</#if> > 
392         		<button id="leerPDFlock" role="button" class="buttonArcano buttonColored .effect <#if isAERPublico> nologin</#if>" role="button">${languageUtil.get(themeDisplay.getLocale(), "cu.read-document")}<img src="/o/arcano-theme/images/lockWhite.png"/></button> 
393         </a> 
394    </div> 
395 </#if> 
396</div> 
397<!-- Modal --> 
398<div class="modal fade" id="modalVideoReport" tabindex="-1" role="dialog" aria-hidden="true"> 
399    <div class="modal-dialog" role="document"> 
400        <div class="modal-content"> 
401            <div class="modal-body"> 
402                <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 
403                    <span aria-hidden="true">&times;</span> 
404                </button> 
405                <!-- 16:9 aspect ratio --> 
406                <#if formatFound == videoFormatMP4 ||  
407                     formatFound == videoFormatOGG ||  
408                     formatFound == videoFormatMKV ||  
409                     formatFound == videoFormatMOV ||  
410                     formatFound == videoFormatFLV> 
411                <div class="embed-responsive embed-responsive-16by9"> 
412                    <video class="reportVideoPlayer" width="620" height="400" controls controlsList="nodownload" id="reportVideoPlayer"> 
413                        <source src="${URLDeVideo.getData()}" type="video/${formatFound[1..]}"> 
414                    </video> 
415                </div> 
416                </#if> 
417                <#if formatFound == audioFormatMP3 ||  
418                     formatFound == audioFormatWAV> 
419                <div class="embed-responsive"> 
420                    <audio class="reportAudioPlayer" controls controlsList="nodownload" id="reportVideoPlayer"> 
421                        <source src="${URLDeVideo.getData()}" type="audio/${formatFound[1..]}"> 
422                    </audio> 
423                </div> 
424                </#if> 
425            </div> 
426        </div> 
427    </div> 
428</div> 
429<div class="modal fade bd-example-modal-sm" id="iosModal" tabindex="-1" role="dialog" aria-labelledby="iosModalLabel" aria-hidden="true"> 
430    <div class="modal-dialog modal-dialog-centered modal-sm" role="document"> 
431        <div class="modal-content"> 
432            <div class="modal-header"> 
433                <h5 class="modal-title" id="exampleModalLabel"> 
434                    ${languageUtil.get(themeDisplay.getLocale(), "ios.modal.title")} 
435                </h5> 
436                <button type="button" class="close" data-dismiss="modal" aria-label="Close"> 
437                    <span aria-hidden="true">&times;</span> 
438                </button> 
439            </div> 
440            <div class="modal-body"> 
441                ${languageUtil.get(themeDisplay.getLocale(), "ios.modal.message")} 
442            </div> 
443        </div> 
444    </div> 
445</div> 
446 
447<!-- VISOR PDF --> 
448<div class="container container-news collapse" id="collapsePDF"> 
449    <div id='pdfviewer'  class="pdfContainer"></div> 
450</div> 
451 
452<script src='/o/arcano-theme/js/lib/WebViewer/lib/webviewer.min.js'></script> 
453 
454<script type="text/javascript"> 
455    var deviceSSOO = "" + localStorage.getItem("ssooDevice"); 
456    if ((deviceSSOO.toLowerCase().indexOf("ios") != -1)){ 
457        var textoBoton = $('#leerPDFlock').text(); 
458        var imageHtml = $('#leerPDFlock img'); 
459        $('#leerPDFlockLink').remove(); 
460        var buttonModal = $('<button/>', { 
461            type: 'button', 
462            class: 'buttonArcano buttonColored d-none sinEfecto', 
463            text: textoBoton, 
464            id: 'leerPDFlock' 
465        }); 
466        buttonModal.attr("data-toggle", "modal"); 
467        buttonModal.attr("data-target", "#iosModal"); 
468        buttonModal.append(imageHtml); 
469        $('.downloaded').append(buttonModal); 
470         
471        var textoBoton = $('#verVideoLock').text(); 
472        var imageHtml = $('#verVideoLock img'); 
473        $('#verVideoLockLink').remove(); 
474        var buttonModal = $('<button/>', { 
475            type: 'button', 
476            class: 'buttonArcano buttonColored d-none sinEfecto', 
477            text: textoBoton, 
478            id: 'verVideoLock' 
479        }); 
480        buttonModal.attr("data-toggle", "modal"); 
481        buttonModal.attr("data-target", "#iosModal"); 
482        buttonModal.append(imageHtml); 
483        $('.downloaded').prepend(buttonModal); 
484
485</script> 
486 
487<script type="text/javascript"> 
488    var userLogado = themeDisplay.isSignedIn(); 
489    var showDownload = false; 
490    var usuario = themeDisplay.getUserId(); 
491    var nombreUsuario; 
492    var compania; 
493    var marcaDeAgua; 
494    var like = ${reportUserLike?c}; 
495    var leido = ${reportUserLeido?c}; 
496    var leerDespues = ${reportUserLeerDespues?c}; 
497    var soyUserAdhoc = ${UsuariosAdHoc.getData()?contains(user.getEmailAddress())?c}; 
498    var pdfWebViewer; 
499     
500    var INSIGHTS='insights'; 
501    var AER_PUBLICO='aer público'; 
502    var AER_PUBLICO_EN='aer public' 
503	var AER_TECH='aer tech' 
504    var MACROECONOMIC='aer global'; 
505    var ADHOC='ad hoc'; 
506    var PROMOCION='aer personal'; 
507     
508    var PORTUGAL='aer portugal'; 
509    var ESPANA='aer españa'; 
510    var TECH='aer tech'; 
511     
512    var GROUP_CLIENTE='cliente'; 
513    var GROUP_CLIENTE_DESCARGA='clientedescarga'; 
514    var GROUP_CLIENTE_SOLO_INFORMES='clientesoloinformes'; 
515    var GROUP_EMPLEADO='empleadoarcano'; 
516    var GROUP_EMPLEADO_DESCARGA='empleadoarcanodescarga'; 
517    var GROUP_EMPLEADO_SOLO_INFORMES='empleadosoloinformes'; 
518    var GROUP_PROMOCION='aer personal'; 
519     
520    var GROUP_PORTUGAL='aer portugal'; 
521    var GROUP_ESPANA='aer españa'; 
522    var GROUP_TECH='aer tech'; 
523 
524    var categorias = document.getElementsByClassName("categoryName"); 
525    var leerPDF = document.getElementById('leerPDF'); 
526    var leerPDFlock = document.getElementById('leerPDFlock'); 
527    var visorVideo = document.getElementById('visorVideo');        
528    var verVideoLock = document.getElementById('verVideoLock'); 
529 
530    callCreateRegistroService('Visualizacion'); 
531     
532    if (userLogado == false) { 
533        document.getElementById('like').classList.add("d-none"); 
534        document.getElementById('likeFull').classList.add("d-none"); 
535        document.getElementById('leerDespues').classList.add("d-none");                  
536        document.getElementById('leerDespuesFull').classList.add("d-none"); 
537
538     
539    if (soyUserAdhoc == true) { 
540        leerPDF.classList.remove("d-none");                                 
541        leerPDFlock.classList.add("d-none"); 
542        if (visorVideo) { 
543            visorVideo.classList.remove("d-none"); 
544            verVideoLock.classList.add("d-none"); 
545
546        showDownload = true; 
547
548 
549    for (var i = 0; i < categorias.length; i++) { 
550        switch (String(categorias[i].innerHTML).toLowerCase()) { 
551            case AER_PUBLICO: 
552            case AER_PUBLICO_EN: 
553            case ADHOC: 
554                leerPDF.classList.remove("d-none");                                 
555                leerPDFlock.classList.add("d-none"); 
556                if (visorVideo) { 
557                    visorVideo.classList.remove("d-none"); 
558                    verVideoLock.classList.add("d-none"); 
559
560                if (userLogado == true) { 
561                    showDownload = true; 
562
563                break; 
564            case MACROECONOMIC: 
565                if (userLogado == true) { 
566                    Liferay.Service( 
567                        '/usergroup/get-user-user-groups', { 
568                            userId: this.usuario 
569                        }, 
570                        function(obj) { 
571                         
572                            if(String(obj[0].name) != 'undefined'){ 
573                                var usuarioTieneGrupo=true; 
574								let macro = true; 
575                                if ( obj.length == 0 ) { 
576                                    usuarioTieneGrupo=false; 
577
578                                for (var i = 0; i < categorias.length; i++) { 
579        							switch (String(categorias[i].innerHTML).toLowerCase()) { 
580                        				 case PORTUGAL: 
581			                                if(obj.findIndex(a => a.name.toLowerCase() == GROUP_PORTUGAL) > -1) { 
582												leerPDF.classList.remove("d-none"); 
583                                    			leerPDFlock.classList.add("d-none"); 
584			                                 
585			                                    if (obj.findIndex(a => a.name.toLowerCase() == GROUP_CLIENTE_DESCARGA) > -1 ||obj.findIndex(a => a.name.toLowerCase() == GROUP_EMPLEADO_DESCARGA) > -1) { 
586			                                        showDownload = true;                               
587			                                    }  
588			                                    if (obj.findIndex(a => a.name.toLowerCase() == GROUP_CLIENTE_SOLO_INFORMES) < 0 || obj.findIndex(a => a.name.toLowerCase() == GROUP_EMPLEADO_SOLO_INFORMES) > -1) { 
589			                                        if (visorVideo) { 
590			                                            visorVideo.classList.remove("d-none"); 
591			                                            verVideoLock.classList.add("d-none"); 
592
593
594
595			                             macro = false;                        				  
596                        				 break; 
597 
598                        				 case ESPANA: 
599			                                if(obj.findIndex(a => a.name.toLowerCase() == GROUP_ESPANA) > -1) { 
600												leerPDF.classList.remove("d-none"); 
601                                    			leerPDFlock.classList.add("d-none"); 
602			                                 
603			                                    if (obj.findIndex(a => a.name.toLowerCase() == GROUP_CLIENTE_DESCARGA) > -1 ||obj.findIndex(a => a.name.toLowerCase() == GROUP_EMPLEADO_DESCARGA) > -1) { 
604			                                        showDownload = true;                               
605			                                    }  
606			                                    if (obj.findIndex(a => a.name.toLowerCase() == GROUP_CLIENTE_SOLO_INFORMES) < 0 || obj.findIndex(a => a.name.toLowerCase() == GROUP_EMPLEADO_SOLO_INFORMES) > -1) { 
607			                                        if (visorVideo) { 
608			                                            visorVideo.classList.remove("d-none"); 
609			                                            verVideoLock.classList.add("d-none"); 
610
611
612
613										 macro = false;  
614                        				 break; 
615                        				 /* 
616										 case TECH: 
617											if(obj.findIndex(a => a.name.toLowerCase() == GROUP_TECH) > 0) { 
618												leerPDF.classList.remove("d-none"); 
619                                    			leerPDFlock.classList.add("d-none"); 
620			                                    if (obj.findIndex(a => a.name.toLowerCase() == GROUP_CLIENTE_DESCARGA) > 0 ||obj.findIndex(a => a.name.toLowerCase() == GROUP_EMPLEADO_DESCARGA) > 0) { 
621			                                        showDownload = true;                               
622			                                    }  
623			                                    if (obj.findIndex(a => a.name.toLowerCase() == GROUP_CLIENTE_SOLO_INFORMES) < 0 || obj.findIndex(a => a.name.toLowerCase() == GROUP_EMPLEADO_SOLO_INFORMES) > 0) { 
624			                                        if (visorVideo) { 
625			                                            visorVideo.classList.remove("d-none"); 
626			                                            verVideoLock.classList.add("d-none"); 
627
628
629
630										 macro = false;  
631                        				 break;  
632										 */ 
633
634
635 
636                                if (macro && usuarioTieneGrupo && (obj.findIndex(a => a.name.toLowerCase() == GROUP_PROMOCION) < 0) &&  
637									(obj.findIndex(a => a.name.toLowerCase() == AER_TECH)  < 0) )  { 
638                                    leerPDF.classList.remove("d-none"); 
639                                    leerPDFlock.classList.add("d-none"); 
640									if (obj.findIndex(a => a.name.toLowerCase() == GROUP_CLIENTE_DESCARGA) > -1 ||obj.findIndex(a => a.name.toLowerCase() == GROUP_EMPLEADO_DESCARGA) > -1) { 
641			                        	showDownload = true;                               
642			                         }  
643			                         if (obj.findIndex(a => a.name.toLowerCase() == GROUP_CLIENTE_SOLO_INFORMES) < 0 || obj.findIndex(a => a.name.toLowerCase() == GROUP_EMPLEADO_SOLO_INFORMES) > -1) { 
644			                         	if (visorVideo) { 
645			                            	visorVideo.classList.remove("d-none"); 
646			                                verVideoLock.classList.add("d-none"); 
647
648			                  		}  
649
650
651
652                    ); 
653                }                   
654                break; 
655            case PROMOCION: 
656                if (userLogado == true) { 
657                    Liferay.Service( 
658                        '/usergroup/get-user-user-groups', { 
659                            userId: this.usuario 
660                        }, 
661                        function(obj1) { 
662                            if(String(obj1[0].name) != 'undefined'){ 
663                                var usuarioTieneGrupo=true; 
664                                if ( obj1.length == 0 ) { 
665                                    usuarioTieneGrupo=false; 
666
667                                if (usuarioTieneGrupo && String(obj1[0].name).toLowerCase() == GROUP_PROMOCION) { 
668                                     console.log('entra2'); 
669                                    leerPDF.classList.remove("d-none"); 
670                                    leerPDFlock.classList.add("d-none"); 
671                                    if (visorVideo) { 
672                    					visorVideo.classList.remove("d-none"); 
673                    					verVideoLock.classList.add("d-none"); 
674
675                                     
676
677
678
679                    ); 
680                }                   
681                break; 
682				 
683				// CASE AER TECH 
684				 
685				case AER_TECH: 
686				if (userLogado == true) { 
687                    Liferay.Service( 
688                        '/usergroup/get-user-user-groups', { 
689                            userId: this.usuario 
690                        }, 
691                        function(obj1) { 
692                            if(String(obj1[0].name) != 'undefined'){ 
693                                 
694								var usuarioTieneGrupo=true; 
695                                 
696								if ( obj1.length == 0 ) { 
697                                    usuarioTieneGrupo=false; 
698
699								 
700								var usuarioEsTech = false; 
701								 
702								for (const obj1cat of obj1)  
703								{  
704									if ( String(obj1cat.name).toLowerCase() == GROUP_TECH) 
705										usuarioEsTech = true; 
706
707								 
708								 
709								if (usuarioTieneGrupo && usuarioEsTech) { 
710                                    leerPDF.classList.remove("d-none"); 
711                                    leerPDFlock.classList.add("d-none"); 
712                                    if (visorVideo) { 
713                    					visorVideo.classList.remove("d-none"); 
714                    					verVideoLock.classList.add("d-none"); 
715
716                                     
717
718								 
719
720
721                    ); 
722                }                   
723                break; 
724 
725				 
726				///////////////////// 
727				 
728				 
729
730
731     
732     
733    $("#like").click(function() { 
734        like = true; 
735        callLiferayService(like, leido, leerDespues); 
736        $("#like").addClass("d-none"); 
737        $("#likeFull").removeClass("d-none"); 
738    }); 
739     
740    $("#likeFull").click(function() { 
741        like = false; 
742        callLiferayService(like, leido, leerDespues); 
743        $("#likeFull").addClass("d-none"); 
744        $("#like").removeClass("d-none"); 
745    }); 
746     
747    $("#leerDespues").click(function() { 
748        leerDespues = true; 
749        callLiferayService(like, leido, leerDespues); 
750        $("#leerDespues").addClass("d-none"); 
751        $("#leerDespuesFull").removeClass("d-none"); 
752    }); 
753     
754    $("#leerDespuesFull").click(function() { 
755        leerDespues = false; 
756        callLiferayService(like, leido, leerDespues); 
757        $("#leerDespuesFull").addClass("d-none"); 
758        $("#leerDespues").removeClass("d-none"); 
759    }); 
760     
761    $("#leerPDF").click(function() { 
762        callCreateRegistroService('Lectura'); 
763        if(!leido){ 
764            leido = true; 
765            callLiferayService(like, leido, leerDespues);    
766
767         
768        var deviceSSOO = "" + localStorage.getItem("ssooDevice"); 
769        var versionSSOO = "" + localStorage.getItem("ssooVersion"); 
770 
771        if (typeof loadPDFReport != 'undefined' && (deviceSSOO.toLowerCase().indexOf("ios") != -1  
772        || (deviceSSOO.toLowerCase().indexOf("android") != -1 && versionSSOO.toLowerCase().indexOf("6.") == -1) )) { 
773            try {  
774                var downloadParams = '/o/download-file/document/${resourceprimKey}/${themeDisplay.getLocale()}/AERDocument-${resourceprimKey}-guest-${themeDisplay.getLocale()}.pdf|'+showDownload; 
775                if (userLogado) { 
776                    var watermarkPromise = getWatermarkText(); 
777                    watermarkPromise.then((value) => { 
778                        var watermarkParts = value.split("\n"); 
779                        var downloadParams = '/o/download-file/document/${resourceprimKey}/' + encodeURI(watermarkParts[0]) + '/' + encodeURI(watermarkParts[1]) + '/${themeDisplay.getLocale()}/AERDocument-${resourceprimKey}-${themeDisplay.getLocale()}.pdf|'+showDownload; 
780                        //alert('downloadParams: '+downloadParams); 
781                        loadPDFReport.postMessage(downloadParams);  
782                    }); 
783                } else { 
784                    loadPDFReport.postMessage(downloadParams);  
785
786                 
787            } catch (err) {} 
788            //location.href = 'download:/o/download-file/document/${resourceprimKey}'; 
789        } else { 
790            $("#collapsePDF").toggleClass("show"); 
791            WebViewer({ 
792                path: '/o/arcano-theme/js/lib/WebViewer/lib', // path to the PDFTron 'lib' folder on your server 
793                licenseKey: 'Arcano Asesores Financieros S.L. (arcanopartners.com):OEM:Arcano Economic Research Portal::B+:AMS(20230729):DCB5DB7204B7880AF360B13AC9A2737860616F7CE750BD3395C57DDA1CD7108632D4B6F5C7', 
794                initialDoc: '${enlaceAPDF.getData()}', 
795                documentType: 'pdf', 
796                 
797              }, document.getElementById('pdfviewer')) 
798              .then( (instance) =>  { 
799                pdfWebViewer = instance; 
800                pdfWebViewer.setTheme('dark'); 
801                pdfWebViewer.enableTextSelection(false); 
802                pdfWebViewer.disableElements([ 'freeHandToolGroupButton',  
803                    'freeHandToolButton', 
804                    'textToolGroupButton', 
805                    'shapeToolGroupButton', 
806                    'signatureToolButton', 
807                    'freeTextToolButton', 
808                    'eraserToolButton', 
809                    'stickyToolButton', 
810                    'miscToolGroupButton', 
811                    'leftPanel', 
812                    'filePickerButton', 
813                    'downloadButton', 
814                    'printButton', 
815                    'pageNavOverlay', 
816                    'menuButton', 
817                    'leftPanelButton', 
818                    'selectToolButton', 
819                    'panToolButton', 
820                    'toolsButton', 
821                    'highlightToolButton', 
822                    'highlightToolButton2', 
823                    'highlightToolButton3', 
824                    'highlightToolButton4', 
825                    'viewControlsButton']); 
826                pdfWebViewer.hotkeys.off(pdfWebViewer.hotkeys.Keys.CTRL_P); 
827                pdfWebViewer.hotkeys.off(pdfWebViewer.hotkeys.Keys.COMMAND_P); 
828                pdfWebViewer.setHeaderItems(function(header) { 
829                      if (showDownload) { 
830                          header.push({ 
831                            title: 'Download', 
832                            type: 'actionButton', 
833                            img: ' data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAAHdElNRQfkBhAMIw1XWqOzAAAAxklEQVRIx+2UOwrCQBRF74hiJaS3cAM27iI2bsLObWQjdu5BUASxyDYSsRZbhWMho4ZkxkwsFPGWM+/c9xneSE6xw2rrjjIeA57CnHEtvam/wd/gVw1Y2xUsnFqtXlfQ8yb030oSfTJcOjCo0RVDjpX4iVHNwRBzLuEXJgGzZVoymAXgkkRSwJNAXMIwv+MLjC+04t0liQ5LADZ0vYzLQCIiJSXyJTWP79v4yiwZWOYLlylU7XJfH2hh35jOb6WPyWmijFi6AiuxD6Ljv60BAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTA2LTE2VDEyOjM1OjEzKzAwOjAwOq0sPQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMC0wNi0xNlQxMjozNToxMyswMDowMEvwlIEAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAAAAElFTkSuQmCC', 
834                            onClick: function() { 
835                                pdfWebViewer.downloadPdf({includeAnnotations: true,flatten: true, filename: '${decodeURL?keep_before_last("/")?keep_after_last("/")}',}); 
836                                callCreateRegistroService('Descarga'); 
837
838                          }); 
839
840                     header.push({ 
841                        title: 'Full Screen', 
842                        type: 'actionButton', 
843                        img: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAE+XpUWHRSYXcgcHJvZmlsZSB0eXBl\nIGV4aWYAAHja7VhdeusoDH3XKmYJiH+WAwa+7+5glj9HMnHiNHWbdh7mYewbA0IISUcI9dL4+8+k\nv/DYaDL5kHIsMRo8vvhiKzrZ7M/esvH61cevKYxPdDomLEgOrduHcSz+Cnq4L0hrAbczndK25OQl\niA/B+jjZWfqLLy9Bzu50XmMqa131D+asn92W2CX8eewTnNED5DlLdjh2Bt8su7j9V/EL+FqXwcSu\nKMUphV/7jo7uk/OO3pPvTF10d3YFmbgY4pOPFp3DE90d29iTRnzf+TQBtIp5fB58N2fPc47duuoj\nPBVpGXUzRXtgbHCl02URb8IvoJ/0LXgzTNyAWAeaDe9GXNjC25M9d648eWi78QYVvR02obV2g5eF\nll2yxW5OIPDy8rQJYHRyGUhsQM2BbA9dWPctut/GGTt3BqdlCGOs+PDSK+JP3kPQnBK6zCYfvoJe\nVmIaaghy8gUXAOG5fBrUv/rSQ9yYB2AdEAzq5gwDq2m7iBb4HltOcXbgC8bTOs6c+hIAF2HvAGXY\nAQET2QWObJK1iRl+zMCnQnPrvG1AgEOwnWkCG+ciwMFpwN5Yk1h5bbA7GakFQAQXXQI0OC4Ay/uA\n+Ek+I4ZqcMFTCCGGFHIooUYXfQwxxhQlR9Xkkk8hxZRSTiXV7LLPIceccs4l12KLQwoLJZZEJZdS\nasWmFaIrVldw1Npsc8230GJLLbfS6obw2fwWtrilLW9lq91213H8e+yJeu6l18EDoTT8CCOONPIo\no07E2nTTzzDjTDPPMuuB2kL1jBo/IXeNGi/UBDGvfOmOGsgp3USwpJMgmAEx6xmIJ0EAAW0FM5PZ\neyvICWamWByKYIEaBwGnsyAGBP1gGyYf2N2Ru8SNgn8LN/sZciTQ/RvIkUC3kPuI2wvUetUbxSlA\ncgrFp8ZNJDYwVZvxD/n4qxbCcGBnLFXaUkKbow/p04y5yzkL2BxEF+Z0tiXkpS5jZFwzv9zB9Uki\nLUYsh5cSVnanlBYO6caMbWvSIvdJ5lO+WGc1D7LIfNus65au7H7HbLqy+x2z6crud1o6CDOLDAeb\nqm1Daa9GnzmClicykiuOLz5XLQ81t+ldsYmlcajgFqi2gVtT1RHfQX7+ctQUiipFVdUpfOjWObdq\njazUzguGDy19xfBhB/HTC63oas07WtEb2lxq9cFHC97BNUKZGuSWriUBn1rdiYxsohMI0SqmaQzq\neonTzxjda9FGl4vtVJGOhDmvEKvF62Jbg2Sx2rbvxTq9exgO7z8pQM8ayElAhELda01RRO5T+4Ql\noRvzLAG2n9juXJ8Jp6XF9n4UnFv6rYD/Bf0nBB0RG8MeK01vCVuaXBJRA1Gm9gklI8IaRU21mtpv\ngfiCLeYr4SKCDhlXjNuRe/a75sVRpF/e14cj6EsdYO0tVxVkoVHj2HNV3G/irrmq0DGnM3LL9f2+\nXRI0W5ZXXO40QSfZNwk/uAjol0F0XAT06tb8iVZkfh/aqhV9dpd/oZVioUXBGtF5+DBaKbfrJYQi\nfk4U2zvFSV1itEAJZrVkngjayoq9FNM6TA7JqRJzWjGpSbcRnYe7Yj+JcTrV4hJNckHcCzGhPFSk\niG+tSeV/dm5VqdBYUPtWPa7RvB+nh8r0oS6lS1+8YSC98UfIpeF0bfn3Dadry79vOF1thdRU6B8U\nXTxcYm1PawAAAAZiS0dEAGMA8gBU/ZeEsQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+QF\nHBEDGcGMpicAAAB4SURBVHja7dvRCcAgDEVRn/vvHFfww5RCzh1A6qFCpDRVVaupJHmxTucz7jU8\nAAAAAAAAAMDccjtlvZrqvup2X44AAAAAAAAAAAAAAACSJEmSJEnShHwen/4GAAAAAAAAAAAAAADg\nMtSwuL/GHAEAAAAAAAAAwH872rogSQsDGK4AAAAASUVORK5CYII=\n', 
844                        onClick: function() { 
845                          pdfWebViewer.toggleFullScreen(); 
846
847                    }); 
848                }); 
849                var docViewer = pdfWebViewer.docViewer;  
850                 
851                var watermarkPromise = getWatermarkText(); 
852                watermarkPromise.then((value) => { 
853                    watermarkOptions = { 
854                        diagonal: { 
855                            text: value, 
856                            fontSize: 40, 
857                            color: '#031539', 
858                            opacity: 15 
859
860                    }; 
861                    docViewer.setWatermark(watermarkOptions); 
862                }) 
863 
864            });      
865
866    }); 
867     
868     $(".reportVideoPlayer").on("play", function () { 
869        callCreateRegistroService('Video'); 
870    }); 
871     
872    $(".reportAudioPlayer").on("play", function () { 
873        callCreateRegistroService('Audio'); 
874    }); 
875     
876    function getWatermarkText() { 
877        return new Promise(resolve => { 
878                    var marcaDeAgua; 
879                    if (userLogado == true){ 
880                        Liferay.Service( 
881                            '/user/get-current-user', 
882                            function(user) { 
883                                nombreUsuario = user.firstName + " " + user.lastName; 
884                                var companyId = user.companyId; 
885                                var classPK = user.userId; 
886                                Liferay.Service( 
887                                    '/expandovalue/get-data', 
888
889                                        companyId: companyId, 
890                                        className: 'com.liferay.portal.kernel.model.User', 
891                                        tableName: 'CUSTOM_FIELDS', 
892                                        columnName: 'compania', 
893                                        classPK: classPK 
894                                    }, 
895                                    function(expando) { 
896                                        compania = expando; 
897                                        marcaDeAgua = nombreUsuario + "\n" + compania; 
898                                            
899                                        resolve(marcaDeAgua); 
900
901                                ); 
902
903                        ); 
904                    } else { 
905                        marcaDeAgua = ''; 
906 
907                        resolve(marcaDeAgua); 
908
909                }); 
910
911     
912    function callLiferayService(likee, leidoo, leerDespuess){ 
913        Liferay.Service( 
914          '/pdf.reportuser/update-custom', 
915
916            groupId: ${groupID}, 
917            companyId: ${companyID}, 
918            userId: ${userID}, 
919            assetId: ${resourceprimKey}, 
920            like: likee, 
921            leido: leidoo, 
922            leerDespues: leerDespuess 
923          }, 
924          function(obj) { 
925
926        ); 
927
928 
929    function callCreateRegistroService(tipoRegistro){ 
930        Liferay.Service( 
931          '/registro.registro/create-registro', 
932
933            groupId: ${groupID}, 
934            companyId: ${companyID}, 
935            userId: ${userID}, 
936            assetEntryId: ${resourceprimKey}, 
937            tipoRegistro: tipoRegistro, 
938            createDate: true, 
939            modifiedDate: false, 
940          }, 
941          function(obj) { 
942            if (tipoRegistro=='Visualizacion'){ 
943                if (typeof(Storage) !== 'undefined') { 
944                    sessionStorage.registroSB = obj; 
945
946
947
948        ); 
949
950     
951    function callUpdateRegistroService(registro){ 
952        Liferay.Service( 
953          '/registro.registro/update-registro', 
954
955            idregistro: registro 
956          }, 
957          function(obj) { 
958
959        ); 
960
961     
962    $("#modalVideoReport").on("hide.bs.modal", function (e) { 
963        console.log("modal video cerrada..."); 
964        $("#reportVideoPlayer").get(0).pause();   
965    });  
966     
967    function openLinkedin() { 
968        var dir = window.document.URL; 
969        var tit = window.document.title; 
970        var dir2 = encodeURIComponent(dir.replace(/ /g, '+')); 
971        var tit2 = encodeURIComponent(tit); 
972        urlLinkedin = 'https://www.linkedin.com/shareArticle?mini=true&url=' + dir2; 
973        var deviceSSOO = "" + localStorage.getItem("ssooDevice"); 
974 
975        if (typeof launchURL != 'undefined' && (deviceSSOO.toLowerCase().indexOf("ios") != -1  
976            || deviceSSOO.toLowerCase().indexOf("android") != -1)) { 
977            launchURL.postMessage(urlLinkedin); 
978        } else {     
979            window.open(urlLinkedin); 
980
981
982     
983    function openTwitter() { 
984        var dir = window.document.URL; 
985        var tit = window.document.title; 
986        var dir2 = encodeURIComponent(dir.replace(/ /g, '+')); 
987        var tit2 = encodeURIComponent(tit); 
988        var urlTwitter = 'https://twitter.com/intent/tweet?text=' + tit2 + '&url=' + dir2 + '&via=Arcano'; 
989         
990        var deviceSSOO = "" + localStorage.getItem("ssooDevice"); 
991 
992        if (typeof launchURL != 'undefined' && (deviceSSOO.toLowerCase().indexOf("ios") != -1  
993            || deviceSSOO.toLowerCase().indexOf("android") != -1)) { 
994            launchURL.postMessage(urlTwitter); 
995        } else {             
996            window.open(urlTwitter); 
997
998
999     
1000    function openMail() { 
1001        var deviceSSOO = "" + localStorage.getItem("ssooDevice"); 
1002 
1003        if (typeof launchURL != 'undefined' && (deviceSSOO.toLowerCase().indexOf("ios") != -1  
1004            || deviceSSOO.toLowerCase().indexOf("android") != -1)) { 
1005            alert('mailto:?subject=' + encodeURI("Arcano Economic Research: ") + encodeURI(window.document.title) + '&body=' + encodeURI("${urlTobody}")); 
1006            launchURL.postMessage('mailto:?subject=' + encodeURI("Arcano Economic Research: ") + encodeURI(window.document.title) + '&body=' + encodeURI("${urlTobody}"));  
1007        } else { 
1008            location.href = 'mailto:?subject=Arcano Economic Research: ' + encodeURI(window.document.title) + '&body=' + encodeURI("${urlTobody}"); 
1009
1010
1011     
1012    function goBack() { 
1013      window.history.back(); 
1014      idRegistro  = sessionStorage.registroSB; 
1015      callUpdateRegistroService(idRegistro); 
1016
1017     
1018    window.onbeforeunload = function (e) { 
1019      idRegistro  = sessionStorage.registroSB; 
1020      callUpdateRegistroService(idRegistro); 
1021
1022</script> 
Lo siento, no tiene los roles necesarios para acceder a este portlet

TePuedeInteresar

Portlets no está disponible temporalmente.