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>
This commit is contained in:
Fridolin Somers 2022-10-19 22:13:07 -10:00 committed by Tomas Cohen Arazi
parent d7d2b86136
commit 07c5776ed9
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -302,7 +302,7 @@ a.add, a.delete {
<td>
<input type="hidden" name="mapping_search" value="[% mapping.search | html %]" readonly />[% IF mapping.search == 1 %]Yes[% ELSE %]No[% END %]
</td>
<td>
<td data-search="[% mapping.marc_field | html %]">
<input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" />
</td>
<td>&nbsp;</td>
@ -363,7 +363,7 @@ a.add, a.delete {
[% END %]
</select>
</td>
<td>
<td data-search="[% mapping.marc_field | html %]">
<input name="mapping_marc_field" type="text" value="[% mapping.marc_field | html %]" />
</td>
[% IF mapping.search_field_mandatory %]