Se ha producido un error al procesar la plantilla.
The following has evaluated to null or missing:
==> customSanitizerUtil [in template "20115#20151#TMP_FISCALIA_TERRITORIAL_PROVINCIA_STATIC" at line 12, column 36]
----
Tip: If the failing expression is known to 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: #assign reservedArticleUrlTitle = cus... [in template "20115#20151#TMP_FISCALIA_TERRITORIAL_PROVINCIA_STATIC" at line 12, column 1]
----
1<#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()>
2<#assign themeDisplay = serviceContext.getThemeDisplay() />
3<#assign httpServletRequest = serviceContext.getRequest()>
4<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") >
5<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") />
6
7<#assign vocabularyAncestro = layout.getAncestors() />
8<#list vocabularyAncestro as voc>
9 <#assign vocabularyId = getterUtil.getLong(voc.getExpandoBridge().getAttribute('vocabularyId')) />
10</#list>
11
12<#assign reservedArticleUrlTitle = customSanitizerUtil.sanitizedField(themeDisplay.getLayout(), themeDisplay.getUserId(), .vars['reserved-article-url-title'].data)>
13<#assign article = journalArticleLocalService.fetchArticleByUrlTitle(themeDisplay.getScopeGroupId(), reservedArticleUrlTitle) />
14<#assign articleCategories = assetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle", article.getResourcePrimKey()) />
15<#list articleCategories as articleCategory>
16 <#assign articleAssetCategory = assetCategoryLocalService.getAssetCategory(articleCategory.categoryId) />
17
18 <#if (vocabularyId==articleAssetCategory.vocabularyId) >
19 <#assign categoryId = articleCategory.categoryId />
20 <#assign parentCategoryId = articleCategory.getParentCategory().categoryId />
21 </#if>
22</#list>
23
24<#assign portalPreferencesLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.PortalPreferencesLocalService")>
25<#assign portalPreferences = portalPreferencesLocalService.getPreferences(themeDisplay.getCompanyId(), getterUtil.getInteger(1))>
26<#assign isGoogleMapsActive = getterUtil.getBoolean(portalPreferences.getValue("googleMapsScriptActive", "false"), false)>
27
28<#if parentCategoryId?has_content && parentCategoryId != 0 >
29 <#assign categoryList = assetCategoryLocalService.getChildCategories(parentCategoryId?number) />
30 <#if categoryList?has_content>
31 <#if categoryList?size == 1>
32 <#assign uniProv = true />
33 <#else>
34 <#assign uniProv = false />
35 </#if>
36 <#list categoryList as curCategoryList >
37 <#if curCategoryList.getTitle(locale)?contains("Madrid")>
38 <#assign uniProv = false />
39 </#if>
40 </#list>
41 </#if>
42</#if>
43
44<section class="mj-section">
45 <div class="gridContainer mj-container">
46 <article class="mj-article">
47 <div class="row">
48
49 <div class="col-md-8">
50 <h2 class="mj-article__title">${customSanitizerUtil.sanitizedField(themeDisplay.getLayout(), themeDisplay.getUserId(), .vars['reserved-article-title'].data)}</h2>
51 <span class="mj-article__subtitle">Fiscal jefe:
52 </span>
53 <span class="mj-article__subtitle mj-article__subtitle--primary"> ${customSanitizerUtil.sanitizedField(themeDisplay.getLayout(), themeDisplay.getUserId(), Fiscal.getData())}</span>
54 <div class="mj-article__txt">
55 ${Descripcion.getData()}
56 </div>
57 </div>
58
59 <div class="col-md-4">
60 <figure class="mj-article__fig">
61 <#if Imagen.getData()?? && Imagen.getData() !="">
62 <img class="mj-article__img" data-fileentryid="${Imagen.getAttribute("fileEntryId")}" alt="${Imagen.getAttribute("alt")}" src="${Imagen.getData()}" />
63 </#if>
64 <!--<img class="mj-article__img" alt="$reserved-article-title.getData()" src="${Imagen.getData()}">-->
65 </figure>
66 </div>
67 </div>
68 </article>
69
70<#attempt>
71 <#if isGoogleMapsActive>
72 <#--se recupera la configuracion de los mapas estaticos -->
73 <#assign googleMapsUrl = getterUtil.getString(portalPreferences.getValue("googleMapsUrl", ""), "")>
74 <#assign googleMapsKey = getterUtil.getString(portalPreferences.getValue("googleMapsKey", ""), "")>
75
76 <#list MapFieldset.getSiblings() as cur_map >
77 <#assign numMarkers = cur_map.NombreFieldSet.getSiblings()?size/>
78 <#assign customZoom = 15/>
79 <#if numMarkers gt 1 >
80 <#assign customZoom = 8/>
81 </#if>
82
83 <#-- se construye la url estatica del mapa con los diferentes marcadores para posteriormente visualizarla -->
84 <#assign url = googleMapsUrl + "?key=" + googleMapsKey +"&zoom="+customZoom+"&size=800x400" />
85 <#assign markers = ""/>
86 <#assign markersInfo = ""/>
87
88 <#list cur_map.NombreFieldSet.getSiblings() as cur_marker >
89 <#if cur_marker.Latitud.getData()?has_content && cur_marker.Longitud.getData()?has_content>
90 <#assign index = cur_marker?index +1 />
91 <#assign markers += "&markers=label:"+index+"|color:0x4169E1|"+cur_marker.Latitud.getData()+","+cur_marker.Longitud.getData()/>
92 <#-- info del marcador -->
93 <#assign markersInfo += "<div class='mr-3 border-bottom mb-3'><address>"/>
94 <#if cur_marker.Nombre.getData()?has_content>
95 <#assign markersInfo += "<span class='font-weight-bold ico-local'></span><span class='font-weight-bold'>"+index+": "+cur_marker.Nombre.getData()+"</span>"/>
96 </#if>
97 <#if cur_marker.Direccion.getData()?has_content>
98 <#assign markersInfo += "<br/>"+cur_marker.Direccion.getData() />
99 </#if>
100 <#if cur_marker.Telefono.getData()?has_content>
101 <#assign markersInfo += "<br/>"+languageUtil.get(locale, "phone")+": "+cur_marker.Telefono.getData() />
102 </#if>
103 <#if cur_marker.Fax.getData()?has_content>
104 <#assign markersInfo += "<br/>"+languageUtil.get(locale, "fax")+": "+cur_marker.Fax.getData()/>
105 </#if>
106 <#assign markersInfo += "</address></div>" />
107 </#if>
108 </#list>
109 <#--se establece la url completa del mapa con los marcadores -->
110 <#assign urlFull = url + markers/>
111 <div class="mb-4">
112 <div class="row">
113 <div class="col-md-8 mb-3">
114 <img src="${urlFull}" alt="Mapa Estático">
115 </div>
116 <div class="col-md-4">
117 ${markersInfo}
118 </div>
119 </div>
120 </div>
121 </#list>
122 </#if>
123<#recover></#attempt>
124
125 <#if uniProv?c == "false" >
126 <@liferay_portlet["runtime"]
127 instanceId="ASDJASFJAFDJasdasd"
128 portletName="JusticiaSearchPlugin"
129 />
130 </#if>
131
132 </div>
133</section>