Bugzilla – Attachment 142230 Details for
Bug 31887
Search on MARC field does not work in Elasticsearch mappings table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31887: Fix search on MARC field in Elasticsearch mappings table
Bug-31887-Fix-search-on-MARC-field-in-Elasticsearc.patch (text/plain), 2.60 KB, created by
Martin Renvoize (ashimema)
on 2022-10-20 08:21:32 UTC
(
hide
)
Description:
Bug 31887: Fix search on MARC field in Elasticsearch mappings table
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-10-20 08:21:32 UTC
Size:
2.60 KB
patch
obsolete
>From 12a40e4c964dcd2cd71b2d356d7e830efd499beb Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Wed, 19 Oct 2022 22:13:07 -1000 >Subject: [PATCH] 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> >--- > .../en/modules/admin/searchengine/elasticsearch/mappings.tt | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >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 d8c5986dd6..911446872a 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 >@@ -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> </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 %] >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31887
:
142229
|
142230
|
143032