Browse Source

Bug 27406: Update elasticsearch mapping 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:
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>
21.05.x
Catherine Ma 3 years ago
committed by Jonathan Druart
parent
commit
53e0f7424c
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt

2
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]*" name="search_field_weight" value="[% search_field.weight | html %]" />
[% ELSE %]
<input type="hidden" name="search_field_weight" value="">
[% END %]

Loading…
Cancel
Save