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 |
$session->param('currentsearchquery', $query_cgi); |
404 |
$session->param('currentsearchlimit', $limit_cgi); |
405 |
|
398 |
## II. DO THE SEARCH AND GET THE RESULTS |
406 |
## II. DO THE SEARCH AND GET THE RESULTS |
399 |
my $total = 0; # the total results for the whole set |
407 |
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 |
408 |
my $facets; # this object stores the faceted results that display on the left-hand of the results page |
Lines 538-544
for (my $i=0;$i<@servers;$i++) {
Link Here
|
538 |
print $cgi->redirect("/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=$biblionumber"); |
546 |
print $cgi->redirect("/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=$biblionumber"); |
539 |
} else { |
547 |
} else { |
540 |
print $cgi->redirect("/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber"); |
548 |
print $cgi->redirect("/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber"); |
541 |
} |
549 |
} |
|
|
550 |
$session->param('currentsearchisoneresult', 1); |
542 |
exit; |
551 |
exit; |
543 |
} |
552 |
} |
544 |
if ($hits) { |
553 |
if ($hits) { |
Lines 647-653
if ($query_desc || $limit_desc) {
Link Here
|
647 |
|
656 |
|
648 |
# VI. BUILD THE TEMPLATE |
657 |
# VI. BUILD THE TEMPLATE |
649 |
# Build drop-down list for 'Add To:' menu... |
658 |
# Build drop-down list for 'Add To:' menu... |
650 |
my $session = get_session($cgi->cookie("CGISESSID")); |
|
|
651 |
my @addpubshelves; |
659 |
my @addpubshelves; |
652 |
my $pubshelves = $session->param('pubshelves'); |
660 |
my $pubshelves = $session->param('pubshelves'); |
653 |
my $barshelves = $session->param('barshelves'); |
661 |
my $barshelves = $session->param('barshelves'); |
654 |
- |
|
|