]> git.evergreen-ils.org Git - Evergreen.git/commit
LP#1302207 - Attempt to validate ISBNs in AddedContent.pm.
authorJason Stephenson <jstephenson@mvlc.org>
Wed, 9 Jul 2014 20:34:26 +0000 (16:34 -0400)
committerBen Shum <bshum@biblio.org>
Thu, 7 Aug 2014 15:07:49 +0000 (11:07 -0400)
commitcdda11af2f411a1fad7e2d571b94af80523fa2ba
tree6725a9c61940731c41c77803be7754f677272ff0
parent76bb7b2329faf41e861e91a16ca69f1122d9a7d3
LP#1302207 - Attempt to validate ISBNs in AddedContent.pm.

When getting ISBNs from the database, they often contain extra stuff
after the ISBN that sometimes causes problems for Business::ISBN.

This commit attempts to resolve some of that by looking only for the
part of the ISBN data that resembles an ISBN and using just that part.
If the ISBN data doesn't look like an ISBN, then it is discarded.

Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm