Se ha producido un error al procesar la plantilla.
Denied access to method or field getParameter of class org.apache.catalina.core.ApplicationHttpRequest
----
FTL stack trace ("~" means nesting-related):
- Failed at: #local paramValue = request.getParame... [in template "34352066712900#33336#65816767" in function "findMatchedItem" at line 47, column 5]
----
1<#--
2 LANGUAGE HEADER DROPDOWN
3 -->
4<#assign currentURL = themeDisplay.getURLCurrent()>
5<#assign baseURL = themeDisplay.getPortalURL()>
6<#assign relativeURL = currentURL?replace(baseURL, "")>
7
8<#assign translatableParams = ["ics", "ctn"] />
9<#assign matchedItemsCache = buildMatchedItemsCache(translatableParams, locale) />
10
11<#assign desc = themeDisplay.getLanguageId()?split("_")?first >
12<div class="select-btn" id="language-select" role="button" aria-haspopup="listbox" aria-expanded="false" tabindex="0">
13 <#assign siteLanguage = themeDisplay.getLocale().getDisplayLanguage( themeDisplay.getLocale() )?cap_first>
14 <span
15 class="sBtn-text text-uppercase d-flex align-content-center align-items-center">${desc} <span
16 class="fa-solid fa-chevron-down" aria-hidden="true"></span></span>
17</div>
18 <ul class="options hide" role="listbox" aria-labelledby="language-select">
19 <li class="option actives" style="pointer-events:none" role="option" aria-selected="true">
20 <span class="option-text">
21 <svg aria-hidden="true" class="lexicon-icon mr-2 lexicon-icon-${themeDisplay.getLanguageId()?replace('_', '-')?lower_case}">
22 <use href="/o/classic-theme/images/clay/icons.svg#${themeDisplay.getLanguageId()?replace('_', '-')?lower_case}"></use>
23 </svg>
24 ${siteLanguage}
25 </span>
26 </li>
27 <#if entries?has_content>
28 <#list entries as curLanguage>
29 <#if !curLanguage.isSelected()>
30
31 <#assign entryHref = buildTranslatedHref(curLanguage.getURL(), curLanguage.getLanguageId(), translatableParams, matchedItemsCache) />
32 <li class="option" role="option"><span class="option-text"> <a href="${entryHref}" class="language-entry-short-text"
33 lang="${curLanguage.getLanguageId()}">${curLanguage.getLongDisplayName()?capitalize}</a> </span></li>
34
35
36 </#if>
37 </#list>
38 </#if>
39</ul>
40
41
42<#-- ============================================================
43 Traduccion de parametros de la URL al cambiar de idioma
44 ============================================================ -->
45
46<#function findMatchedItem paramName locale>
47 <#local paramValue = request.getParameter(paramName)! />
48 <#if !paramValue?has_content>
49 <#return "" />
50 </#if>
51
52 <#local paramValueTrim = paramValue?trim />
53 <#local paramType = paramName?upper_case />
54 <#local endpointURL = "/c/selectoptions/?languageId=" + locale?string + "&sort=name:asc&filter=optionsType eq '" + paramType + "'" />
55 <#local optionsResponse = restClient.get(endpointURL) />
56
57 <#list optionsResponse.items![] as item>
58 <#local valueI18n = item.value_i18n![] />
59 <#local found = false />
60
61 <#list valueI18n?keys as key>
62 <#if valueI18n[key]! == paramValueTrim>
63 <#local found = true />
64 <#break />
65 </#if>
66 </#list>
67
68 <#if !found && (item.value!"") == paramValueTrim>
69 <#local found = true />
70 </#if>
71
72 <#if found>
73 <#return item />
74 </#if>
75 </#list>
76
77 <#return "" />
78</#function>
79
80<#function buildMatchedItemsCache paramNames locale>
81 <#local cache = {} />
82 <#list paramNames as paramName>
83 <#local cache = cache + {paramName: findMatchedItem(paramName, locale)} />
84 </#list>
85 <#return cache />
86</#function>
87
88<#function translateParamInURL originalURL paramName targetLanguageId matchedItemsCache>
89 <#local paramValue = request.getParameter(paramName)! />
90 <#local matchedItem = matchedItemsCache[paramName]!"" />
91
92 <#if !paramValue?has_content || !matchedItem?has_content>
93 <#return originalURL />
94 </#if>
95
96 <#local rawValueInURL = originalURL?replace(".*[?&]" + paramName + "=([^&]*).*", "$1", "r") />
97
98 <#if rawValueInURL == originalURL>
99 <#return originalURL />
100 </#if>
101
102 <#local urlDecoder = staticUtil["java.net.URLDecoder"] />
103 <#local urlEncoder = staticUtil["java.net.URLEncoder"] />
104 <#local decodedValueInURL = urlDecoder.decode(rawValueInURL, "UTF-8") />
105
106 <#if decodedValueInURL != paramValue?trim>
107 <#return originalURL />
108 </#if>
109
110 <#local newValue = matchedItem.value_i18n[targetLanguageId]!matchedItem.value!paramValue />
111
112 <#if newValue == decodedValueInURL>
113 <#return originalURL />
114 </#if>
115
116 <#local newEncoded = urlEncoder.encode(newValue, "UTF-8") />
117
118 <#return originalURL?replace(paramName + "=" + rawValueInURL, paramName + "=" + newEncoded) />
119</#function>
120
121<#function buildTranslatedHref originalURL targetLanguageId paramNames matchedItemsCache>
122 <#local resultURL = originalURL />
123
124 <#list paramNames as paramName>
125 <#local resultURL = translateParamInURL(resultURL, paramName, targetLanguageId, matchedItemsCache) />
126 </#list>
127
128 <#return resultURL />
129</#function>
130
131
132<#-- ============================================================ -->
133
134<script>
135 $(document).ready(function () {
136 // Toggle el estado del menu de idiomas
137 $('.select-btn').on('click', function () {
138 var expanded = $(this).attr('aria-expanded') === 'true';
139 $(this).attr('aria-expanded', !expanded);
140 $('.options').toggleClass('hide', expanded);
141 });
142
143 // Acciones de teclado para la lupa
144 $('.select-btn').on('keydown', function (e) {
145 if (e.key === 'Enter' || e.key === ' ') {
146 e.preventDefault(); // Evitar desplazamiento al presionar espacio
147 $(this).click(); // Simula el click para abrir/cerrar el menu
148 }
149 });
150
151 // Cerrar el menu al hacer clic en cualquier parte fuera de el
152 $(document).on('click', function (event) {
153 if (!$(event.target).closest('.select-btn, .options').length) {
154 $('.options').addClass('hide');
155 $('.select-btn').attr('aria-expanded', 'false');
156 }
157 });
158
159 // Navegar con las teclas de flecha
160 let options = $('.option');
161 let selectedIndex = 0;
162
163 options.on('keydown', function (e) {
164 if (e.key === 'ArrowDown') {
165 selectedIndex = (selectedIndex + 1) % options.length;
166 options.eq(selectedIndex).focus();
167 }
168 if (e.key === 'ArrowUp') {
169 selectedIndex = (selectedIndex - 1 + options.length) % options.length;
170 options.eq(selectedIndex).focus();
171 }
172 if (e.key === 'Enter') {
173 window.location.href = $(this).find('a').attr('href'); // Redirige a la opcion seleccionada
174 }
175 });
176 });
177</script>
El producto se ha añadido a la cesta de la compra
-50% de descuento*
Si compras la misma norma UNE en distintos idiomas.
*
Dto. sobre el pvp inferior.
Ver condiciones
ISO 4468:2020
Gear hobs — Accuracy requirements
Loading...
| Fecha edición: |
2020-07-28
En Vigor
|
|---|---|
| Idiomas disponibles: | Inglés |
| ICS: | 21.200 - Engranajes |
| CTN: | 49236 |
|
Anulaciones Normas |
Anula a ISO 4468:2009 Anula a ISO 4468:2009/Cor 1:2009 |
Please enter a valid video URL.
The URL can point to any video file or a Youtube video.
El libro en palabras del autor
Ultricies magna feugiat malesuada sociosqu varius vivamus cubilia parturient, himenaeos vitae vehicula nam placerat netus urna platea, nostra rutrum felis mattis penatibus velit quisque.
ButtonNormas citadas
Libros relacionados
Normas relacionadas
Colecciones temáticas relacionadas
Preguntas frecuentes
¿Tienes alguna duda sobre nuestros productos?
Respuesta 2
Desde la web
Libros y normas










