From c0b9d62b4d48687703acd4bba1df66ff7218e463 Mon Sep 17 00:00:00 2001 From: danyonsewell Date: Wed, 1 May 2024 03:41:13 +0000 Subject: [PATCH] bug 36723: Add musical presentation to Elasticsearch index mappings Have written a patch to allow Musical Presentation to be a search option within Elasticsearch index mappings Test plan: 1. Apply this patch 2. Ensure MARC index 254 (Musical Presentation) is visible to edit on the default MARC bibliographic framework Koha Administration > MARC Bibliographic framework > Actions (under default framework) > MARC structure > Search 254 and actions->edit subfield > tick box for visibility should have OPAC, Staff Interface and Editor ticked. 3. Edit a record using the default MARC bibliographic framework and put a search term under index 254 and save. 4. Head back to the home page and go to Advanced Search 5. under the Search for dropdown select Musical presentation and in the search field enter the search term you used in step 3. Your results should appear Sponsored-by: Education Services Australia SCIS --- 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 2713de1dd1..5cdd3abf59 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -2709,6 +2709,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