From c1879aeab49634b6888d99e52eac215256a56b4b 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 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 Signed-off-by: Katrin Fischer (cherry picked from commit fffb3665eadec04792b055e9ba04152b3b36d6dd) Signed-off-by: Fridolin Somers (cherry picked from commit 58052b46f4365b0d5c6729b80a84b7f13ebe6b34) Signed-off-by: Lucas Gass --- 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 a92ed1ace4..a4c312cffa 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -2701,6 +2701,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.5