[open-ils-commits] [GIT] Evergreen ILS branch rel_2_3 updated. 030b126a938c13ce2f3bc5d042ecb53059a0dca3

Evergreen Git git at git.evergreen-ils.org
Wed Sep 19 10:35:23 EDT 2012


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_3 has been updated
       via  030b126a938c13ce2f3bc5d042ecb53059a0dca3 (commit)
      from  d3cdd1b282b05b5326be0685b753b39c554b2b4a (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 030b126a938c13ce2f3bc5d042ecb53059a0dca3
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Mon Aug 20 12:22:44 2012 -0400

    Enable 1-hit redirect for item barcode searches
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Jason Stephenson <jstephenson at mvlc.org>
    Signed-off-by: Bill Erickson <berick at esilibrary.com>

diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
index 7ef3dea..c85a0bb 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -323,7 +323,7 @@ sub load_rresults {
         return $self->marc_expert_search(%args) if scalar($cgi->param("tag"));
         $self->timelog("Calling item barcode search");
         return $self->item_barcode_shortcut if (
-            $cgi->param("qtype") and ($cgi->param("qtype") eq "item_barcode")
+            $cgi->param("qtype") and ($cgi->param("qtype") eq "item_barcode") and not $internal
         );
         $self->timelog("Calling call number browse");
         return $self->call_number_browse_standalone if (
@@ -574,6 +574,9 @@ sub item_barcode_shortcut {
         );
         $self->timelog("Returned from calling get_records_and_facets() for item_barcode");
 
+        my $stat = $self->check_1hit_redirect($rec_ids);
+        return $stat if $stat;
+
         $self->ctx->{records} = [@data];
         $self->ctx->{search_facets} = {};
         $self->ctx->{hit_count} = scalar @data;

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

Summary of changes:
 .../perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list