Bugzilla – Attachment 165956 Details for
Bug 36574
Canceled/invalid ISBN not indexed for MARC21
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36574: Canceled/invalid ISBN not indexed by ES for MARC 21
Bug-36574-Canceledinvalid-ISBN-not-indexed-by-ES-f.patch (text/plain), 2.37 KB, created by
Nick Clemens (kidclamp)
on 2024-05-01 10:42:22 UTC
(
hide
)
Description:
Bug 36574: Canceled/invalid ISBN not indexed by ES for MARC 21
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2024-05-01 10:42:22 UTC
Size:
2.37 KB
patch
obsolete
>From ac6952607660baa2c10b9861556beb62fd62cf75 Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >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. > >A new isbn-all Elasticsearch search field 'isbn-all' has been created with >020az (MARC 21, and 010az for UNIMARC), 010z has been removed from isbn >search field for UNIMARC, and 020z has been added to identifier-standard >search field. > >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 <roman.dolny@jezuici.pl> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../searchengine/elasticsearch/mappings.yaml | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) > >diff --git a/admin/searchengine/elasticsearch/mappings.yaml b/admin/searchengine/elasticsearch/mappings.yaml >index 16aaabfdbb9..14ab3ecd99b 100644 >--- a/admin/searchengine/elasticsearch/mappings.yaml >+++ b/admin/searchengine/elasticsearch/mappings.yaml >@@ -1992,7 +1992,7 @@ biblios: > sort: 1 > suggestible: '' > - facet: '' >- marc_field: 020a >+ marc_field: 020az > marc_type: marc21 > sort: 1 > suggestible: '' >@@ -2083,6 +2083,23 @@ biblios: > marc_type: marc21 > sort: 1 > suggestible: '' >+ - facet: '' >+ marc_field: 010a >+ marc_type: unimarc >+ sort: 1 >+ suggestible: '' >+ opac: 1 >+ staff_client: 1 >+ type: isbn >+ isbn-all: >+ label: isbn-all >+ mandatory: ~ >+ mappings: >+ - facet: '' >+ marc_field: 020az >+ marc_type: marc21 >+ sort: 1 >+ suggestible: '' > - facet: '' > marc_field: 010az > marc_type: unimarc >-- >2.39.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36574
:
164667
|
164778
|
164799
|
164807
| 165956