[open-ils-commits] [GIT] Evergreen ILS branch rel_2_10 updated. ffa57c81e0c3477b82577b8a1afa68d91097516c

Evergreen Git git at git.evergreen-ils.org
Tue Aug 9 13:02:27 EDT 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, rel_2_10 has been updated
       via  ffa57c81e0c3477b82577b8a1afa68d91097516c (commit)
      from  81c6b3587cf0be50e8c482bd8bbf6994db37ba35 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit ffa57c81e0c3477b82577b8a1afa68d91097516c
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Mon Mar 28 11:03:59 2016 -0400

    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 <tsbere at mvlc.org>
    Signed-off-by: Josh Stompro <stomproj at larl.org>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

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 4dd5b0c..3de07ff 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';

-----------------------------------------------------------------------

Summary of changes:
 .../lib/OpenILS/WWW/AddedContent/ContentCafe.pm    |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list