KPAC: Testing removal of some processing that the results page does upon
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 30 Dec 2015 20:58:49 +0000 (15:58 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Wed, 30 Dec 2015 20:58:49 +0000 (15:58 -0500)
load that we do not appear to need in order to see if it improves display
of search results or not.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm

index fc200e5..708c211 100644 (file)
@@ -55,13 +55,17 @@ sub load_kpac_rresults {
     # The redirect-to-record-details-on-single-hit logic
     # leverages the opac_root to determine the record detail
     # page.  Replace it temporarily for our purposes.
-    my $tpac_root = $self->ctx->{opac_root};
-    $self->ctx->{opac_root} = $self->ctx->{kpac_root};
-
-    my $stat = $self->load_rresults;
-    $self->ctx->{opac_root} = $tpac_root;
-
-    return $stat;
+       
+ # From Terran: Try taking out this functionality to see if performance improves. 
+ # We are not using the function to redirect to record upon single hit anyhow. 
+ #   my $tpac_root = $self->ctx->{opac_root};     
+ #   $self->ctx->{opac_root} = $self->ctx->{kpac_root};
+ #   my $stat = $self->load_rresults;
+ #   $self->ctx->{opac_root} = $tpac_root;
+
+ #   return $stat; 
+     return $self->load_rresults;
 }
 
 sub load_getit {
@@ -81,7 +85,6 @@ sub load_getit {
     return $self->login_and_place_hold($rec_id) if $action eq 'hold';
 
 
-
     # if the user is logged in, fetch his bookbags
     if ($ctx->{user}) {
         $ctx->{bookbags} = $self->editor->search_container_biblio_record_entry_bucket([