From 7f8613c1e7a285f3a6771d7bec62143e8e5fa5db Mon Sep 17 00:00:00 2001 From: danyonsewell Date: Wed, 5 Jun 2024 05:14:58 +0000 Subject: [PATCH] Bug 36724: Add cartographic mathematical data to Elasticsearch index mappings ah my mistake, thanks for the pointers. Have gone ahead and made the requested changes. 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 255$a & 255$b in the default framework so that it is visible in the Editor. 7. Add a new record using the default framework and put a unique term in both field 255$a and 255$b. 8. Using the basic keyword search, search for the terms you put in step 7. --- admin/searchengine/elasticsearch/mappings.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 9cd3db5c967..7a17fa989ef 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -948,6 +948,17 @@ biblios: opac: 1 staff_client: 1 type: '' + label: cartographic-mathematical-data + mandatory: ~ + mappings: + - facet: '' + marc_field: '255ab' + marc_type: marc21 + sort: 1 + suggestible: '' + opac: 1 + staff_client: 1 + type: '' acqsource: label: acqsource mandatory: ~ -- 2.39.2