# 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 {
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([