Bug 27406: Update elasticsearch mapping to adhere to ACC2
authorCatherine Ma <catherinem2003@gmail.com>
Wed, 20 Jan 2021 02:53:36 +0000 (02:53 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Jan 2021 14:42:46 +0000 (15:42 +0100)
This patch changes the 1 occurance of an input of type="number" to input
type="text" inputmode="numeric" pattern="[0-9]*"

Test plan:
open the file and ensure that no other inputs of type="number"
were missed

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt

index 6547ff3..9adcfe0 100644 (file)
@@ -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]*" name="search_field_weight" value="[% search_field.weight | html %]" />
                         [% ELSE %]
                             <input type="hidden" name="search_field_weight" value="">
                         [% END %]