Errorea gertatu da txantiloia prozesatzerakoan.
Expression subCategory is undefined on line 27, column 54 in 842907#842945#38053.
1<#assign assetEntryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetEntryLocalService") /> 
2<#assign journalArticleLocalService = serviceLocator.findService("com.liferay.portlet.journal.service.JournalArticleLocalService") /> 
3<#assign assetCategoryLocalService = serviceLocator.findService("com.liferay.portlet.asset.service.AssetCategoryLocalService")> 
4                     
5 
6<#assign lang = localeUtil.toLanguageId(locale)> 
7                     
8<#assign topicsLayoutUrl = "/eu/gaiak" /> 
9<#if lang == 'es_ES'> 
10	<#assign topicsLayoutUrl = "/es/temas" />  
11</#if> 
12 
13<#assign article = journalArticleLocalService.getArticle(getterUtil.getLong(groupId), .vars['reserved-article-id'].data)> 
14<#assign asset = assetEntryLocalService.getEntry('com.liferay.portlet.journal.model.JournalArticle', article.resourcePrimKey) > 
15             
16<#if asset.getCategories()?has_content> 
17	<#assign finalCategory = asset.getCategories()[0]> 
18	<#assign subCategory = assetCategoryLocalService.getCategory(finalCategory.parentCategoryId) > 
19	<#if subCategory.parentCategoryId != 0> 
20		<#assign category = assetCategoryLocalService.getCategory(subCategory.parentCategoryId) > 
21	</#if> 
22</#if> 
23                     
24<#if category?has_content> 
25	<#assign returnUrl = topicsLayoutUrl + "#" + category.getCategoryId() + "-" +	subCategory.getCategoryId()> 
26<#else> 
27	<#assign returnUrl = topicsLayoutUrl + "#" + subCategory.getCategoryId()> 
28</#if> 
29 
30 
31<div class="container"> 
32                  <div class="row"> 
33                     <div class="col-xxs-12 col-xs-11 col-xxs-offset-0 col-xs-offset-1"> 
34                        <h1><span>${.vars['reserved-article-title'].data}</span></h1> 
35                     </div> 
36                  </div> 
37                  <!-- /.row --> 
38               </div> 
39 
40<div class="bipo_temas"> 
41     <div class="container"> 
42                  <div class="row"> 
43                     <div class="col-xxs-12 col-xs-11 col-xxs-offset-0 col-xs-offset-1"> 
44                     </div> 
45                  </div> 
46                  <!-- /.row --> 
47   </div> 
48   <div class="container"> 
49          <div class="row"> 
50             <p class="col-xxs-12 col-xxs-offset-0 col-xs-11 col-xs-offset-1 hidden-md hidden-lg bipo_enlace_izquierda bipo_primero"><a href="${returnUrl}" class="bipo_enlace_izquierda"><span class="bipoicon bipo_iconOpenRight" aria-hidden="true">←</span><@liferay.language key="gnl-tema.back"/></a></p> 
51                  </div> 
52               </div> 
53               <div class="container"> 
54                  <div class="row"> 
55                     <div class="col-xxs-12 col-xxs-offset-0 col-xs-6 col-xs-offset-1 col-md-8 col-md-offset-0"> 
56                     <#if title.getSiblings()?has_content> 
57                        <ul class="bipo-inner bipo_enlaces_temas"> 
58 
59                    	<#list title.getSiblings() as cur_title> 
60                           <li> 
61                                <#if getterUtil.getBoolean(cur_title.getChild('target').getData())> 
62                                     <a href="${replaceSpecialCharacters(cur_title.getChild('link').getData())}" target="_blank" title="<@liferay.language key='opens-new-window' />"> 
63                                <#else> 
64                                    <a href="${replaceSpecialCharacters(cur_title.getChild('link').getData())}" target="_self"> 
65                                </#if> 
66 
67                                <h2>${cur_title.getData()}<span class="bipoicon icon-enlace_externo"></span></h2> 
68                                </a> 
69                                ${cur_title.getChild('description').getData()} 
70                            </li> 
71                                                
72                    	</#list> 
73                        </ul> 
74                     
75                    </#if> 
76                      
77                       
78                     </div> 
79                      
80                      
81                      
82             <div class="col-xxs-12 col-xs-4 col-md-2 col-md-offset-1"> 
83                <div class="bipo_sidebar_temas"> 
84                 
85                <#assign es = 'es_ES'> 
86                    <ul> 
87                        <li class="bipo-inner"> 
88                        <#if lang == es> 
89                            <a target="_blank" href="https://apli.bizkaia.net/bizkaibai/Castellano/Aldundia/ogasuna/Seguridad/caLoginBai.asp" title="<@liferay.language key='opens-new-window' />"> 
90                        <#else> 
91                            <a target="_blank" href="https://apli.bizkaia.net/bizkaibai/euskara/aldundia/ogasuna/seguridad/euLoginBai.asp" title="<@liferay.language key='opens-new-window' />"> 
92                        </#if> 
93                        <span class="bipoicon icon-icono_laptop"></span><@liferay.language key="gnl-tema.virtual-office"/></a> 
94                        </li> 
95                        <li class="bipo-inner"> 
96                        <#if lang == es> 
97                            <a target="_blank" title="<@liferay.language key='opens-new-window' />" href="http://www.bizkaia.eus/home2/Temas/DetalleTema.asp?Tem_Codigo=2131&idioma=CA&dpto_biz=5&codpath_biz=5" > 
98                        <#else> 
99                            <a target="_blank" title="<@liferay.language key='opens-new-window' />" href="http://www.bizkaia.eus/home2/Temas/DetalleTema.asp?Tem_Codigo=2131&idioma=EU&dpto_biz=5&codpath_biz=5"> 
100                        </#if> 
101                        <span class="bipoicon icon-icono_normativas"></span><@liferay.language key="gnl-tema.related-norm"/></a> 
102                        </li> 
103                        <li class="bipo-inner"> 
104                         <#if lang == es> 
105                            <a target="_blank" title="<@liferay.language key='opens-new-window' />" href="http://www.bizkaia.eus/Kultura/Ekintza_kulturala/Argitalpenkatalogoa/ca_index.asp?Tem_Codigo=4634&idioma=CA&dpto_biz=4&codpath_biz=4%7C4611%7C4614%7C4634"> 
106                        <#else> 
107                            <a target="_blank" title="<@liferay.language key='opens-new-window' />" href="http://www.bizkaia.eus/Kultura/Ekintza_kulturala/Argitalpenkatalogoa/eu_index.asp?Tem_Codigo=4634"> 
108                        </#if> 
109                        <span class="bipoicon icon-icono_documento"> 
110                        </span><@liferay.language key="gnl-tema.related-pub"/></a></li> 
111                   </ul> 
112                    
113                     
114                    <p class="bipo_departamento"> 
115                        <@liferay.language key="gnl-tema.dependent-themes"/><strong> 
116                        <#if category?has_content> 
117                            <a href="${topicsLayoutUrl}#${category.categoryId}">${category.getTitle(locale,true)}</a> / <a href="${returnUrl}">${subCategory.getTitle(locale,true)}</a> 
118                        <#else> 
119                            <a href="${returnUrl}">${subCategory.getTitle(locale,true)}</a> 
120                        </#if> 
121                         </strong> 
122                    </p> 
123                </div> 
124             </div> 
125          </div> 
126          <div class="row"> 
127             <div class="col-xxs-12 col-xxs-offset-0 col-xs-10 col-xs-offset-1 col-md-12 col-md-offset-0"> 
128                <div class="bipo-inner"> 
129                   <div class="bipo_borde_inferior"></div> 
130                </div> 
131             </div> 
132          </div> 
133       </div> 
134        
135        
136        
137        
138       <div class="container"> 
139          <div class="row"> 
140             <p class="col-xxs-12 col-xxs-offset-0 col-xs-11 col-xs-offset-1 col-md-12 col-md-offset-0 bipo_enlace_izquierda"><a href="${returnUrl}" class="bipo_enlace_izquierda"><span class="bipoicon bipo_iconOpenRight" aria-hidden="true">←</span><@liferay.language key="gnl-tema.return"/></a></p> 
141          </div> 
142       </div> 
143    </div> 
144 
145 
146<#function replaceSpecialCharacters(url)> 
147    <#assign newUrl = url?replace("%","%25")?replace(" ","%20")?replace("[","%5B")?replace("\\","%5C")?replace("]","%5D")?replace("^","%5E")?replace("{","%7B")?replace("|","%7C")?replace("}","%7D")> 
148     
149    <#return newUrl /> 
150</#function>