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)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 19 Nov 2021 14:23:27 +0000 (15:23 +0100)
commit10de703d61d79685eb72094c5013cf760fe076c6
tree03c7d4aa3c1bba6fa33ecc4ba0d1e4afe49e3f6c
parent80f393cc3ea360c80bd8958a6e9792517c039d30
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>
C4/Breeding.pm
cataloguing/addbooks.pl