[open-ils-commits] [GIT] Evergreen ILS branch master updated. 2038e93aa68baaabe20a8b4218cfb0ed6fc5903c

Evergreen Git git at git.evergreen-ils.org
Mon Nov 30 14:47:29 EST 2015


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, master has been updated
       via  2038e93aa68baaabe20a8b4218cfb0ed6fc5903c (commit)
      from  d3dd07c63e90a79be88213a540a35861e939d524 (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 2038e93aa68baaabe20a8b4218cfb0ed6fc5903c
Author: Josh Stompro <stomproj at larl.org>
Date:   Wed Nov 25 13:36:08 2015 -0600

    LP#1519925 - Allow MARC Federated Search to search UPC index of local catalog.
    
    If a organization added UPC search for certain Z39.50 servers then the UPC search box
    would display in the MARC Federated Search interface, but the local catalog would
    not be searched.  This adds the ability to search the local catalog "Evergreen Catalog"
    UPC index from that interface.
    
    Confirm the Issue:
    
    1. To trigger the initial problem you need a Z39.50 server setup that includes a UPC
    Search.  For OCLC the following Z39.50 attributes add UPC searching.
    Name:upc, Label:UPC, Code:1007, Format:4, Truncation:0
    
    2. Now the MARC Federated Search should include a UPC search option.  Try searching
    for a UPC that exists in the local catalog.  Nothing should come up.
    
    After patch applied:
    
    1. Now if you search for a UPC in the MARC Federated Search that you know exists,
    it will show up.
    
    Signed-off-by: Josh Stompro <stomproj at larl.org>
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
index 8de593b..777ef7e 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Biblio.pm
@@ -1002,6 +1002,7 @@ sub cat_search_z_style_wrapper {
     $$searchhash{searches}{keyword}{term} = $$args{search}{keyword} if $$args{search}{keyword};
     $$searchhash{searches}{'identifier|isbn'}{term} = $$args{search}{isbn} if $$args{search}{isbn};
     $$searchhash{searches}{'identifier|issn'}{term} = $$args{search}{issn} if $$args{search}{issn};
+    $$searchhash{searches}{'identifier|upc'}{term} = $$args{search}{upc} if $$args{search}{upc};
 
     $$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{tcn}       if $$args{search}{tcn};
     $$searchhash{searches}{keyword}{term} .= join ' ', $$searchhash{searches}{keyword}{term}, $$args{search}{publisher} if $$args{search}{publisher};
diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm
index a5a4f6c..cff8c6f 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/Search/Z3950.pm
@@ -194,6 +194,7 @@ sub fetch_service_defs {
             publisher => {code => 'publisher', label => 'Publisher'},
             pubdate => {code => 'pubdate', label => 'Pub Date'},
             item_type => {code => 'item_type', label => 'Item Type'},
+            upc => {code => 'upc', label => 'UPC'},
         }
     };
 

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

Summary of changes:
 .../lib/OpenILS/Application/Search/Biblio.pm       |    1 +
 .../lib/OpenILS/Application/Search/Z3950.pm        |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list