Lines 118-123
if (C4::Context->preference('TagsEnabled')) {
Link Here
|
118 |
} |
118 |
} |
119 |
} |
119 |
} |
120 |
|
120 |
|
|
|
121 |
# Read session |
122 |
my $session = get_session($cgi->cookie("CGISESSID")); |
123 |
|
121 |
## URI Re-Writing |
124 |
## URI Re-Writing |
122 |
# Deprecated, but preserved because it's interesting :-) |
125 |
# Deprecated, but preserved because it's interesting :-) |
123 |
# The same thing can be accomplished with mod_rewrite in |
126 |
# The same thing can be accomplished with mod_rewrite in |
Lines 395-400
if (C4::Context->preference('OpacSuppression')) {
Link Here
|
395 |
|
398 |
|
396 |
$template->param ( LIMIT_INPUTS => \@limit_inputs ); |
399 |
$template->param ( LIMIT_INPUTS => \@limit_inputs ); |
397 |
|
400 |
|
|
|
401 |
# Set session variables |
402 |
$session->param('currentsearchisoneresult', '0'); # init is only one result |
403 |
my $abs_url = $cgi->url( -absolute => 1, -query => 1 ); |
404 |
$abs_url =~ s/;/&/g; # CGI returns url with ; instead of & to separate url parameters |
405 |
$session->param('currentsearchurl', $abs_url); |
406 |
|
398 |
## II. DO THE SEARCH AND GET THE RESULTS |
407 |
## II. DO THE SEARCH AND GET THE RESULTS |
399 |
my $total = 0; # the total results for the whole set |
408 |
my $total = 0; # the total results for the whole set |
400 |
my $facets; # this object stores the faceted results that display on the left-hand of the results page |
409 |
my $facets; # this object stores the faceted results that display on the left-hand of the results page |
Lines 539-545
for (my $i=0;$i<@servers;$i++) {
Link Here
|
539 |
print $cgi->redirect("/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=$biblionumber"); |
548 |
print $cgi->redirect("/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=$biblionumber"); |
540 |
} else { |
549 |
} else { |
541 |
print $cgi->redirect("/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber"); |
550 |
print $cgi->redirect("/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber"); |
542 |
} |
551 |
} |
|
|
552 |
$session->param('currentsearchisoneresult', 1); |
543 |
exit; |
553 |
exit; |
544 |
} |
554 |
} |
545 |
if ($hits) { |
555 |
if ($hits) { |
Lines 648-654
if ($query_desc || $limit_desc) {
Link Here
|
648 |
|
658 |
|
649 |
# VI. BUILD THE TEMPLATE |
659 |
# VI. BUILD THE TEMPLATE |
650 |
# Build drop-down list for 'Add To:' menu... |
660 |
# Build drop-down list for 'Add To:' menu... |
651 |
my $session = get_session($cgi->cookie("CGISESSID")); |
|
|
652 |
my @addpubshelves; |
661 |
my @addpubshelves; |
653 |
my $pubshelves = $session->param('pubshelves'); |
662 |
my $pubshelves = $session->param('pubshelves'); |
654 |
my $barshelves = $session->param('barshelves'); |
663 |
my $barshelves = $session->param('barshelves'); |
655 |
- |
|
|