From e140fd28a0df0e770815fb5338ca83c1ba49e396 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Mon, 13 May 2024 18:13:07 +0000 Subject: [PATCH] Bug 36727: Add new issn-all Elasticsearch index for MARC21 - This index searches 022ayz, 023ayz (MARC21) and 011ayz (UNIMARC). - 011y and 011z have been removed from issn search field for UNIMARC. - 022yz and 023yz have also been added to the identifier-standard search field Test plan: 1. Start up KTD with Elasticsearch: ktd --es8 up 2. Apply this patch and restart all services (restart_all) 3. Reset the mappings: Administration > Catalog > Search engine configuration (Elasticsearch) > Reset mappings (at the bottom of the page) 4. Reindex: koha-elasticsearch --rebuild -d -b -a kohadev 5. Alternative to steps 3 and 4: reset_all 6. Add a new biblio record putting the value '0046-2254' into the incorrect ISSN subfield (022y / 023y for MARC21), or if using UNIMARC then 011z 7. Make a biblio search for '0046-2254' and confirm you get a result Sponsored-by: Education Services Australia SCIS --- .../searchengine/elasticsearch/mappings.yaml | 31 +++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 60173232dcc..76a37dd3fd9 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -2009,7 +2009,12 @@ biblios: sort: 1 suggestible: '' - facet: '' - marc_field: 022a + marc_field: 022ayz + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marc_field: 023ayz marc_type: marc21 sort: 1 suggestible: '' @@ -2130,7 +2135,29 @@ biblios: sort: 1 suggestible: '' - facet: '' - marc_field: 011ayz + marc_field: 011a + marc_type: unimarc + sort: 1 + suggestible: '' + opac: 1 + staff_client: 1 + type: stdno + issn-all: + label: issn-all + mandatory: ~ + mappings: + - facet: '' + marcfield: 022ayz + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marcfield: 023ayz + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marcfield: 011ayz marc_type: unimarc sort: 1 suggestible: '' -- 2.30.2