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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 6 Mar 2023 12:51:45 +0000 (09:51 -0300)
commit2dafd6f7491f64ad8179d00cbcdb3822be57f11f
tree437b688a3c412109c0399bf281bcae8282df0401
parentb93b6f3ddebdbcb53b435c1b9d7e64e235688d2f
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>
C4/Search.pm
t/db_dependent/Search.t