From e713e4de92ac8e9d4d8a495cbce1959d66f27ffa Mon Sep 17 00:00:00 2001 From: Anke Bruns Date: Wed, 8 Oct 2025 15:13:03 +0000 Subject: [PATCH] Test plan part 1: Zebra: 0) start instance with searchengine set to Zebra a) set system preference UseControlNumber to Use b) import bug_39287.xml from the attachements f.e. via More -> Cataloging -> Stage records for import Format is MARCXML c) After import search for "main" and open the record with "Main title" d) Click on Show volumes e) recognize search string is "rcn:cnmain NOT (bib-level:a OR bib-level:b)" and 4 results are found f) apply patch g) copy the necessary files to the zebra dirctory sudo cp -i etc/zebradb/biblios/etc/bib1.att /etc/koha/zebradb/biblios/etc/bib1.att sudo cp -i etc/zebradb/ccl.properties /etc/koha/zebradb/ccl.properties sudo cp -i etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl /etc/koha/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl h) restart zebra: sudo koha-zebra --restart kohadev i) rebuild the index: sudo koha-rebuild-zebra -b -f -v kohadev j) restart_all k) redo step b) to d) l) recognize search string is now 'rcn-volumes:cnmain NOT (bib-level:a OR bib-level:b)' and only 2 records (volumes) are found Test plan part 2: Elasticsearch 0) start instance with searchengine set to Elasticsearch a) Rebuild Elasticsearch index with --reset parameter to apply new mappings. Redo test plan from part 1 step c) to d) and l) m) sign off --- admin/searchengine/elasticsearch/mappings.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 139d66f..c2377d1 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -4454,3 +4454,17 @@ biblios: opac: 1 staff_client: 1 type: '' + rcn-volumes: + label: rcn-volumes + mandatory: ~ + mappings: + - facet: '' + marc_field: 773w + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marc_field: '830w' + marc_type: marc21 + sort: 1 + suggestible: '' -- 2.39.5