]> git.koha-community.org Git - koha.git/commit
Bug 31471: Send multiple ISBN with 'OR' for FindDuplicate
authorNick Clemens <nick@bywatersolutions.com>
Fri, 24 Feb 2023 14:04:34 +0000 (14:04 +0000)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Tue, 7 Mar 2023 18:09:01 +0000 (18:09 +0000)
commit47ad3dd1b284c74a7b1850e45b3fb3d0e72f677e
tree8f7acf2d7ecd92df1a83f2d0795d9d28d82d9d3d
parent99454c388599a9f3eced976f913ead44b893d5d2
Bug 31471: Send multiple ISBN with 'OR' for FindDuplicate

When a record has multiple ISBNs the database stores them seperated by a
pipe

Zebra interprets a string like "isbn:1600213510 | 9781600213519" as an 'OR' search, but for
Elasticsearch we need to explicitly send "OR" - and Zebra support this
as well

To test:
1 - Make sure you are using Elasticsearch
2 - Cataloging->Add a new record from Z3950
3 - Choose target: LOC
4 - Search for: Control number: 14455023
5 - Import and save
6 - Search for the record again
7 - Import and save - duplicate check isn't been triggered
8 - Apply patch
9 - restart_all
10 - repeat 2-7
11 - this time you should get a duplicate notification
12 - Sitch SearchEngine syspref to 'Zebra'
13 - repeat 2-7
14 - Ensure you still get duplicate notification

Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 2dafd6f7491f64ad8179d00cbcdb3822be57f11f)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
C4/Search.pm
t/db_dependent/Search.t