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

Evergreen Git git at git.evergreen-ils.org
Fri Oct 7 09:14:20 EDT 2011


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  d0063cd6e536f4a27925e8228f8a1622717f7974 (commit)
      from  004d23837442fc5410ecf823342d4837f0f8c69b (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 d0063cd6e536f4a27925e8228f8a1622717f7974
Author: Bill Erickson <berick at esilibrary.com>
Date:   Fri Oct 7 09:08:38 2011 -0400

    TPac: Jump-to-details on first result page only
    
    When activated, jump-to-record-details-on-1-hit should only come into
    play on the first page of results.  In other words, if page 2 of a
    search has 1 item, do not jump to the record details page for that item.
    Instead, show page 2 of the search results.
    
    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 903dea7..eb5d7ea 100644
--- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
+++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Search.pm
@@ -263,8 +263,10 @@ sub load_rresults {
         }
     );
 
-    my $stat = $self->check_1hit_redirect($rec_ids);
-    return $stat if $stat;
+    if ($page == 0) {
+        my $stat = $self->check_1hit_redirect($rec_ids);
+        return $stat if $stat;
+    }
 
     # shove recs into context in search results order
     for my $rec_id (@$rec_ids) {
@@ -441,8 +443,10 @@ sub marc_expert_search {
 
     return Apache2::Const::OK if @{$self->ctx->{ids}} == 0 or $args{internal};
 
-    my $stat = $self->check_1hit_redirect($self->ctx->{ids});
-    return $stat if $stat;
+    if ($page == 0) {
+        my $stat = $self->check_1hit_redirect($self->ctx->{ids});
+        return $stat if $stat;
+    }
 
     my ($facets, @data) = $self->get_records_and_facets(
         $self->ctx->{ids}, undef, {flesh => "{holdings_xml,mra}"}

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

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


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list