From 04efd1157c52af7c1b3b84c93305e5acf8b48fd2 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 022ay, 023ay (MARC21) and 011ayz (UNIMARC). 011y and 011z have been removed from issn search field for UNIMARC. 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 | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 60173232dcc..bb166578830 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -2130,7 +2130,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: 022ay + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marcfield: 023ay + marc_type: marc21 + sort: 1 + suggestible: '' + - facet: '' + marcfield: 011ayz marc_type: unimarc sort: 1 suggestible: '' -- 2.30.2