LP1559281: Allow Baker and Taylor ISBNs user/tsbere/lp1559281_bt_isbns
authorThomas Berezansky <tsbere@mvlc.org>
Mon, 21 Mar 2016 16:07:14 +0000 (12:07 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Mon, 21 Mar 2016 16:07:14 +0000 (12:07 -0400)
Jam a B&T entry into the hash so that Business::ISBN doesn't register them as
invalid prefix ISBNs.

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent.pm

index 254d790..713e967 100644 (file)
@@ -23,6 +23,9 @@ use MIME::Base64;
 use Business::ISBN;
 use Business::ISSN;
 
+# Hack country_data to allow B&T fake ISBNs
+$Business::ISBN::country_data{631} = ['B&T' => ['0000000' => '9999999']];
+
 my $AC = __PACKAGE__;