From fb918a53fe35c151f370bfa9410755985f03f007 Mon Sep 17 00:00:00 2001 From: Caroline Cyr La Rose Date: Thu, 23 May 2024 15:35:04 -0400 Subject: [PATCH] Bug 36952: Add 370 to authority index (MARC21) This enhancement adds field 370 to MARC21 default authority index mappings. To test: 1. Import the attached .mrc file 2. Go to Authorities 3. Search 'Main heading' for quebec --> 1 result (normal) 4. Search 'Entire record' for quebec --> 1 result 5. Go to the OPAC > Authority search 6. Redo steps 3 and 4 --> Same results 7. Apply patch 8. Reindex authorities (in KTD shell: koha-elasticsearch --rebuild -a -v -r kohadev) 9. Redo step 3 --> Still 1 result (normal) 10. Redo step 4 --> 2 results 11. Redo step 5-6 --> Same results as steps 9-10 Signed-off-by: David Nind Signed-off-by: Katrin Fischer --- 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 27d6072395..86d2a9949c 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -800,6 +800,18 @@ authorities: opac: 1 staff_client: 1 type: '' + Place: + label: Place + mandatory: ~ + mappings: + - facet: '' + marc_field: 370(abcefg) + marc_type: marc21 + sort: 1 + suggestible: '' + opac: 1 + staff_client: 1 + type: '' See-also-from: label: See-also-from mandatory: ~ -- 2.39.5