Bug 31887: Fix search on MARC field in Elasticsearch mappings table
authorFridolin Somers <fridolin.somers@biblibre.com>
Thu, 20 Oct 2022 08:13:07 +0000 (22:13 -1000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 4 Nov 2022 22:57:07 +0000 (19:57 -0300)
commit07c5776ed92648e6b1ebb373208009039cd70a64
treece039b6ab87f1f6405b4fcad877f997f10753859
parentd7d2b86136bd073c583c3b3d092992dd1d2d2e13
Bug 31887: Fix search on MARC field in Elasticsearch mappings table

In Elasticsearch mappings table, in tabs with MARC fields, searching using DataTable search field does not work for MARC fields / subfields.
This is because cell contains an input HTML tag with MARC data in attribute value.

Test plan :
1) Go to Administration > Search engine configuration (Elasticsearch)
2) Go to tab 'Bibliographic records'
3) Enter in search field a used MARC field (like 245)
=> Table gets filtered by rows with mapping on searched field
4) Enter in search field the field+subfield used for issues (952l in KTD)
=> Table gets filtered by rows with mapping on field+subfield

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/searchengine/elasticsearch/mappings.tt