Errorea gertatu da txantiloia prozesatzerakoan.
String index out of range: The index was 31 (0-based), but the length of the string is only 31.

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${tipoDocumentoRelacionado[i]}  [in template "37727#37775#183998" at line 64, column 99]
----
1<#assign freeMarkerUtilities = serviceLocator.findService("es.alava.freemarker.utilities.api.FreemarkerUtilities") /> 
2<#assign isEmptyJSON = data.getJSONObject().length() == 0 /> 
3 
4<#if status == 200 && data?? && data!='null' && !isEmptyJSON> 
5	<#assign locale = miLocale /> 
6    <section class="titulo-de-pagina"> 
7        <div class="container"> 
8            <a class="enlace-a-inicio" href="${redirect}">${languageUtil.get(resourceBundle, "volver")}</a> 
9        </div> 
10		<#if ((locale = "es_ES" && (data.enunciado?? && data.enunciado !='null')) ||(locale = "eu_ES" && (data.enunciado_e?? && data.enunciado_e !='null'))) > 
11	        <div class="titulo-principal"> 
12	            <div class="container"> 
13		            <h2 class="descripcion">${(locale=="eu_ES")?then(data.enunciado_e, data.enunciado)}</h2> 
14	            </div> 
15	        </div> 
16		</#if> 
17    </section> 
18    <section class="detalle-iniciativa"> 
19        <div class="container"> 
20            <div class="row"> 
21                <div class="col-12"> 
22                    <div class="info-destacada"> 
23                        <ul class="informacion-principal"> 
24                            <li> 
25                                <strong>${languageUtil.get(resourceBundle, "type")}: </strong><span>${(locale=="eu_ES")?then(data.tipo_e, data.tipo)}</span> 
26	                            <#if data.documento?? && data.documento !='null'> 
27		                            <#assign descarga = freeMarkerUtilities.getURLDocument(data.documento)> 
28		                            <a class="download" href="${descarga}" target="_blank">${languageUtil.get(resourceBundle, "adt-detalle-expediente.ver-documento")}</a> 
29	                            </#if> 
30                            </li> 
31                            <li> 
32                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.fecha")}: </strong><span>${ data.fechaDocumento}</span> 
33                            </li> 
34                            <li> 
35                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.numero")}: </strong><span>${ data.numero}</span> 
36                            </li> 
37                            <li> 
38                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.organo")}: </strong><span>${(locale=="eu_ES")?then(  data.organo_e, data.organo)}</span> 
39                            </li> 
40                            <li> 
41                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.expediente-asociado")}: </strong> 
42                                <#assign legislatura = data.num_exp?split("/")[0]/> 
43                                <#assign numero_expediente = data.num_exp?split("/")[3]/> 
44                                <a class="enlace" href="javascript:cargarDetalle(${legislatura},'${numero_expediente}','${themeDisplay.getURLCurrent()?replace("&","_amp_")}');">${data.num_exp}</a>                                 
45                            </li> 
46                            <li> 
47                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.fuente")}: </strong><span>${(locale=="eu_ES")?then( data.fuente_e, data.fuente)} / ${ data.num_fuente}</span> 
48                            </li> 
49                            <li> 
50                                <strong>${languageUtil.get(resourceBundle, "adt-detalle-norma.fecha-publicacion")}: </strong><span>${ data.fechaPublicacion}</span> 
51                            </li> 
52 
53                        </ul> 
54                        <div class="enlaces"> 
55							<#if (data.documentoRelacionado !='null' && data.documentoRelacionado?length gt 0) || ( data.documentoCorreccion?? && data.documentoCorreccion !='null' && data.documentoCorreccion?has_content)> 
56								 <h3>${languageUtil.get(resourceBundle, "related-documents")}</h3> 
57								<#assign documentosRelacionados = data.documentoRelacionado/> 
58								<#assign tipoDocumentoRelacionado = data.tipoDocumentoRelacionado/> 
59								 <ul> 
60									<#if documentosRelacionados?length gt 0>											 
61										<#list 0..documentosRelacionados?length-1 as i> 
62										 
63											     <#assign descarga = freeMarkerUtilities.getURLDocument(documentosRelacionados[i])> 
64		                       <li><a class="download" href="${descarga}" target="_blank">${tipoDocumentoRelacionado[i]}</a></li> 
65						 
66										</#list> 
67									</#if> 
68									 <#if data.documentoCorreccion?? && data.documentoCorreccion !='null'&& data.documentoCorreccion?has_content> 
69										 <#assign descarga = freeMarkerUtilities.getURLDocument(data.documentoCorreccion)> 
70										 <li><a class="download" href="${descarga}" target="_blank">${languageUtil.get(locale, "adt-detalle-norma.correccion")}</a></li> 
71									 </#if> 
72								 </ul> 
73							</#if> 
74                        </div> 
75                    </div> 
76                </div> 
77            </div> 
78        </div> 
79    </section> 
80<#else> 
81	<div class="container"> 
82		<a class="enlace-a-inicio" href="${redirect}">${languageUtil.get(resourceBundle, "volver")}</a> 
83	</div> 
84    <#if themeDisplay.isSignedIn()> 
85        <div class="my-3"> 
86            <div class="container"> 
87                <div class="alert alert-danger"> 
88                    <p class="mb-0"><b>Status: </b> ${status}</p> 
89                </div> 
90            </div> 
91        </div> 
92    <#else> 
93        <#-- ${request.setAttribute("PORTLET_CONFIGURATOR_VISIBILITY", false)} --> 
94    </#if> 
95    <#if isEmptyJSON> 
96        <div class="container"> 
97            <div class="alert alert-danger"> 
98                <p class="mb-0"> 
99                    <@liferay.language key="${(miLocale=='eu_ES')?then( 
100                        'Zure eskaera ezin izan da behar bezala gauzatu', 
101                        'your-request-failed-to-complete')}" /> 
102                </p> 
103            </div> 
104        </div> 
105    </#if>  
106</#if> 
107<script> 
108    function cargarDetalle(legislatura, numero_expediente, currentURL) { 
109        window.location.href= "/detalle-exp?t=E&leg=" + legislatura + "&num=" + numero_expediente  + "&redirect=" + currentURL; 
110
111</script>