[open-ils-commits] [GIT] Evergreen ILS branch rel_2_2 updated. e1014dff83a6a1cab910315a430a426bdc40755d
Evergreen Git
git at git.evergreen-ils.org
Wed Sep 19 10:36:29 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_2 has been updated
via e1014dff83a6a1cab910315a430a426bdc40755d (commit)
from 2b77c235a9da8bdfe77316d2c64d42e6b5c3ee43 (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 e1014dff83a6a1cab910315a430a426bdc40755d
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 8ed1812..1384d58 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -301,7 +301,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 (
@@ -549,6 +549,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