From 0a1bf5d21bcb451cf4c50e3e182a3ec0600c3ef9 Mon Sep 17 00:00:00 2001 From: danyonsewell Date: Fri, 10 May 2024 02:32:49 +0000 Subject: [PATCH] bug 36723: Add musical presentation to Elasticsearch index mappings After discussing with my team this morning we agreed the best way forward given the insight from Katrin would be to only include the addition to the index mappings and leave the advanced search dropdown additions as a customization for our client who requested it, due to it being more of a niche enchancement. I have amended the patch to only include the changes to the Elasticsearch mappings. Testing plan: 1. Start up KTD with Elasticsearch: ktd --es8 up 2. Apply the patch and restart everything (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. Update the visibility for 254$a in the default framework so that it is visible in the Editor (OPAC, Staff interface should already be selected). 7. Add a new record using the default framework and put a term in 254$a, such as 'Full score'. Sponsored-by: Education Services Australia SCIS --- .../searchengine/elasticsearch/mappings.yaml | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 16aaabfdbb..5cdd3abf59 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -2697,6 +2697,30 @@ biblios: opac: 1 staff_client: 1 type: '' + musical-presentation: + label: musical-presentation + mandatory: ~ + mappings: + - facet: '' + marc_field: '254' + marc_type: marc21 + sort: 1 + suggestible: '' + opac: 1 + staff_client: 1 + type: '' + musical-presentation: + label: musical-presentation + mandatory: ~ + mappings: + - facet: '' + marc_field: '254' + marc_type: marc21 + sort: 1 + suggestible: '' + opac: 1 + staff_client: 1 + type: '' nal-call-number: label: nal-call-number mandatory: ~ -- 2.39.2