https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17979

--- Comment #2 from David Cook <[email protected]> ---
(In reply to Jonathan Druart from comment #1)
> I guess the regex should be m|^[\d-]*$|;
> Instead of just /\d/

That doesn't account for ISBN-10 where the check digit can be X or x:
https://en.wikipedia.org/wiki/Check_digit#ISBN_10

We could use Business::ISBN to check if it's an ISBN and then if it's not, we
could treat it as a title. (We could even do ISBN search only for valid ISBNs
and do title searches for everything else.)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to