]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 10 Mar 2023 16:34:31 +0000 (16:34 +0000)
commit26d9092de48164418c103e79abcb7db81c8be5e7
tree1736dd5207d77f88584e5cbe1d94b2efe37d8425
parentff7b0a0cddf19b02ccf44ee4980d9aeafcede26b
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>
(cherry picked from commit 47ad3dd1b284c74a7b1850e45b3fb3d0e72f677e)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Search.pm
t/db_dependent/Search.t