[open-ils-commits] ***SPAM*** [GIT] Evergreen ILS branch master updated. 71908f1d3b0e13e943143a7510abf6ba1c9793b0

Evergreen Git git at git.evergreen-ils.org
Wed Jan 8 17:08:30 EST 2014


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  71908f1d3b0e13e943143a7510abf6ba1c9793b0 (commit)
      from  24d254d578be8e36ba91fac95af9d3875fe6517f (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 71908f1d3b0e13e943143a7510abf6ba1c9793b0
Author: Jeff Davis <jdavis at sitka.bclibraries.ca>
Date:   Wed Jan 8 13:21:13 2014 -0800

    Fix bug that caused deleted holdings to be visible in SRU/Z39.50 results
    
    Signed-off-by: Jeff Davis <jdavis at sitka.bclibraries.ca>
    Signed-off-by: Ben Shum <bshum at biblio.org>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm
index 64687720..4d4ed93 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/Application/SuperCat.pm
@@ -2042,7 +2042,7 @@ sub basic_record_holdings {
     $logger->debug("Searching for holdings at orgs [".join(',', at ou_ids)."], based on $ou");
 
     for my $cn (@{$tree->call_numbers}) {
-        next unless ( $cn->deleted eq 'f' || $cn->deleted == 0 );
+        next unless ( $cn->deleted eq 'f' || !$cn->deleted );
 
         my $found = 0;
         for my $c (@{$cn->copies}) {
@@ -2078,7 +2078,7 @@ sub _cp_is_visible {
     my $cp = shift;
 
     my $visible = 0;
-    if ( ($cp->deleted eq 'f' || $cp->deleted == 0) &&
+    if ( ($cp->deleted eq 'f' || !$cp->deleted) &&
          $cp->location->opac_visible eq 't' && 
          $cp->status->opac_visible eq 't' &&
          $cp->opac_visible eq 't' &&

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

Summary of changes:
 .../perlmods/lib/OpenILS/Application/SuperCat.pm   |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list