From 4ca2d76dae5fd1ea429aa0d0e027469c70478003 Mon Sep 17 00:00:00 2001 From: danyonsewell Date: Fri, 10 May 2024 02:40:45 +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 Signed-off-by: David Nind --- admin/searchengine/elasticsearch/mappings.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 09af08c430..60173232dc 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -2731,6 +2731,18 @@ 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: '' nal-call-number: label: nal-call-number mandatory: ~ -- 2.39.2