From: Terran McCanna Date: Wed, 30 Dec 2015 20:58:49 +0000 (-0500) Subject: KPAC: Testing removal of some processing that the results page does upon X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f18ec94ae407d5275e6af28a36af58b9dda2c2a9;p=evergreen%2Fpines.git KPAC: Testing removal of some processing that the results page does upon 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 --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm index fc200e5a7c..708c211b44 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGKPacLoader.pm @@ -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([