From a3f4c9ec8acbf272aba13c53add8b9c6b96de79b Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Thu, 11 Jul 2024 11:04:01 +0200 Subject: [PATCH] Bug 37319: Move mappings for 752ad (MARC21) and 210a/214a (UNIMARC) to pl index In Bug 36578, some fields were added to the pl index, but somehow it ended up in the other-control-number index. This aims to put fields 752ad (MARC21) and 210a/214a (UNIMARC) in the pl index. Test plan: ---------- 0. Have an installation with Elasticsearch and MARC 21 configuration. 1. Under Administration > Search engine configuration (Elasticsearch) under the tab Bibliographic records check that you have 752ad in other-control-number search field. 2. Apply the patch, reindex with: sudo koha-elasticsearch --rebuild -r -b kohadev 3. Under Administration > Search engine configuration (Elasticsearch) under the tab Bibliographic records check that you have 752ad in pl search field now. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Katrin Fischer --- .../searchengine/elasticsearch/mappings.yaml | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 86d2a9949c..17e513fb6f 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -3176,21 +3176,6 @@ biblios: marc_type: marc21 sort: 1 suggestible: '' - - facet: '' - marc_field: 752ad - marc_type: marc21 - sort: 1 - suggestible: '' - - facet: '' - marc_field: 210a - marc_type: unimarc - sort: 1 - suggestible: '' - - facet: '' - marc_field: 214a - marc_type: unimarc - sort: 1 - suggestible: '' opac: 1 staff_client: 1 type: '' @@ -3245,6 +3230,21 @@ biblios: marc_type: marc21 sort: 1 suggestible: '' + - facet: '' + marc_field: 752ad + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marc_field: 210a + marc_type: unimarc + sort: 1 + suggestible: '' + - facet: '' + marc_field: 214a + marc_type: unimarc + sort: 1 + suggestible: '' opac: 1 staff_client: 1 type: '' -- 2.39.5