From: Thomas Berezansky Date: Mon, 28 Mar 2016 15:03:59 +0000 (-0400) Subject: LP1559281: Allow Baker and Taylor Fake ISBNs X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ea375b03f1e7c06d7de3f9b9ec5f4ff01b1d8f40;p=evergreen%2Fmasslnc.git LP1559281: Allow Baker and Taylor Fake ISBNs For Content Cafe, jam two B&T entrys into the hash so that Business::ISBN doesn't register them as invalid prefix ISBNs. B&T uses internal ISBN's with country codes 630 and 631 for materials ordered through them when no assigned ISBN exists. The ContentCafe added content service knows about these ISBNs, but they are not generally used by other providers. To Test: This only works if you are using the ContentCafe added content provider. - Before Patch - 1. Add the isbn 9786315820243 as the only isbn on a record. Remove UPCs also.. 2. Clear the added content cache by restarting memcached or using the staff link. 3. View record in catalog and you should see no cover art. - After Patch - 1. Clear the added content cache. 2. View the record in the catalog and you should now see cover art for the title "Video games: the movie" Signed-off-by: Thomas Berezansky Signed-off-by: Josh Stompro Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/ContentCafe.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/ContentCafe.pm index 4dd5b0c6fd..3de07ff624 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/ContentCafe.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/AddedContent/ContentCafe.pm @@ -9,6 +9,10 @@ use XML::LibXML; use MIME::Base64; use DateTime; +# Hack country_data to allow B&T fake ISBNs LP#1559281 +$Business::ISBN::country_data{630} = ['B&T' => ['0000000' => '9999999']]; +$Business::ISBN::country_data{631} = ['B&T' => ['0000000' => '9999999']]; + my $AC = 'OpenILS::WWW::AddedContent'; my $post_url = 'http://contentcafe2.btol.com/ContentCafe/ContentCafe.asmx/XmlPost';