Bug 29437: Search reservoir for term as title, author, or variations of ISBN
authorNick Clemens <nick@bywatersolutions.com>
Mon, 8 Nov 2021 19:24:36 +0000 (19:24 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 19 Nov 2021 17:01:51 +0000 (12:01 -0500)
commitb422b7af2392440c5a4ca83b0740dceb262b9cd4
tree3cdc0bd862148951c3135169aee74b0f5bec36d4
parent4c2fc8eac541a4eef624e7be88844cf058bad398
Bug 29437: Search reservoir for term as title, author, or variations of ISBN

The code in the script and the module attempt to determine whether a term is an isbn, or not. Rather
than try to do this, we can simply search it on the three fields: isbn, title, author

Additionally, we should search as any of the ISBN variations to broaden our matches

Note: Curently only an ISBN 10 is stored in import biblios, so for an ISBN13 that doesn't convert
the value will be blank - this is another bug

To test:
1 - Perform a cataloging search for a valid ISBN 13 with no ISBN10 counterpart:
    9798200834976
2 - 500 error
3 - Apply patch
4 - Repeat, no results
5 - Import some records
6 - Search by title/author/isbn
7 - Confirm searching works as expected

WNC amended to fix spelling

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
AMENDED: Useless call of ISBNs (plural) when you only pass one parameter.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
C4/Breeding.pm
cataloguing/addbooks.pl