From 96e5de1c1c4d271812db7521a19d718d774152f7 Mon Sep 17 00:00:00 2001 From: Janusz Kaczmarek Date: Thu, 11 Apr 2024 09:21:42 +0000 Subject: [PATCH] Bug 36574: Canceled/invalid ISBN not indexed by ES for MARC 21 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For MARC 21, canceled/invalid ISBNs (subfield 020 $z) are not being indexed in Elasticsearch (search fields identifier-standard and isbn), but it is for UNIMARC (subfield 010 $z). As a result, a user searching for such an ISBN (e.g. with wrong checksum--and therefor put in 020 $z) will not find the record in the catalogue. Test plan ========= 0. Have a test installation with Elasticsearch. 1. In ktd with its test data, make a biblio search for a cancelled ISBN e.g. 9780007269854. You will get no results. 2. Apply the patch, reindex with: sudo koha-elasticsearch --rebuild -r -b kohadev 3. Repeat the test. You should get "The ice princess / Camilla Läckberg". Signed-off-by: Roman Dolny --- admin/searchengine/elasticsearch/mappings.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml index 9cd3db5c96..32bc0a5470 100644 --- a/admin/searchengine/elasticsearch/mappings.yaml +++ b/admin/searchengine/elasticsearch/mappings.yaml @@ -1974,7 +1974,7 @@ biblios: sort: 1 suggestible: '' - facet: '' - marc_field: 020a + marc_field: 020az marc_type: marc21 sort: 1 suggestible: '' @@ -2061,7 +2061,7 @@ biblios: mandatory: ~ mappings: - facet: '' - marc_field: 020a + marc_field: 020az marc_type: marc21 sort: 1 suggestible: '' -- 2.39.2