From f2c1f6aeb217b8494c3ef5969d54501e7e77e248 Mon Sep 17 00:00:00 2001
From: Catherine Ma <catherinem2003@gmail.com>
Date: Wed, 20 Jan 2021 02:53:36 +0000
Subject: [PATCH] Bug 27406: update file to adhere to ACC2

This patch changes the 1 occurance of an input of type="number" to input
type="text" inputmode="numeric" pattern="[0-9]*"

Test plan:
ken the file and ensure that no other inputs of type="number
were missed.
---
 .../prog/en/modules/admin/searchengine/elasticsearch/mappings.tt        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt
index 6547ff3f99..10c32feea4 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt
@@ -276,7 +276,7 @@ a.add, a.delete {
                       </td>
                       <td>
                         [% IF search_field.mapped_biblios %]
-                            <input type="number" step="0.01" min="0.01" max="999.99" name="search_field_weight" value="[% search_field.weight | html %]" />
+                            <input type="text" inputmode="numeric" pattern="[0-9]*" step="0.01" min="0.01" max="999.99" name="search_field_weight" value="[% search_field.weight | html %]" />
                         [% ELSE %]
                             <input type="hidden" name="search_field_weight" value="">
                         [% END %]
-- 
2.11.0