From ad0fb001aa7d36b75791a31381d1e8b825533f5c Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Wed, 15 May 2024 12:42:09 +1200 Subject: [PATCH] Bug 36728: Add cancelled/invalid standard number (024z) to ES index mappings - Added a new index invalid-identifier-other for 024z - Added 024az to existing indentifier-standard index Test plan: 1. Start up KTD with Elasticsearch: ktd --es8 up 2. Add a new biblio record putting the value '2471697678526' into the cancelled/valid standard number ( 024$z) 3. Do a biblio search for '2471697678526' and confirm no results are returned 4. Apply this patch and restart all services (restart_all) 5. Reset the mappings: Administration > Catalog > Search engine configuration (Elasticsearch) > Reset mappings (at the bottom of the page) 6. Reindex: koha-elasticsearch --rebuild -d -b -a kohadev 7. Alternative to steps 5 and 6: reset_all 8. Repeat the biblio search for '2471697678526' and confirm you get a result Sponsored-by: Education Services Australia SCIS --- admin/searchengine/elasticsearch/mappings.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 929f2f94103..2c109bdd49d 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -1987,6 +1987,18 @@ biblios: opac: 1 staff_client: 1 type: '' + invalid-identifier-other: + label: invalid-identifier-other + mandatory: ~ + mappings: + - facet: '' + marc_field: 024z + marc_type: marc21 + sort: 1 + suggestible: '' + opac: 1 + staff_client: 1 + type: '' identifier-publisher-for-music: label: identifier-publisher-for-music mandatory: ~ @@ -2038,6 +2050,11 @@ biblios: marc_type: marc21 sort: 1 suggestible: '' + - facet: '' + marc_field: 024az + marc_type: marc21 + sort: 1 + suggestible: '' - facet: '' marc_field: 010az marc_type: unimarc -- 2.30.2