|
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 407-412
if (C4::Context->preference('OpacSuppression')) {
Link Here
|
| 407 |
|
410 |
|
| 408 |
$template->param ( LIMIT_INPUTS => \@limit_inputs ); |
411 |
$template->param ( LIMIT_INPUTS => \@limit_inputs ); |
| 409 |
|
412 |
|
|
|
413 |
# Set session variables |
| 414 |
$session->param('currentsearchisoneresult', '0'); # init is only one result |
| 415 |
my $abs_url = $cgi->url( -absolute => 1, -query => 1 ); |
| 416 |
$abs_url =~ s/;/&/g; # CGI returns url with ; instead of & to separate url parameters |
| 417 |
$session->param('currentsearchurl', $abs_url); |
| 418 |
|
| 410 |
## II. DO THE SEARCH AND GET THE RESULTS |
419 |
## II. DO THE SEARCH AND GET THE RESULTS |
| 411 |
my $total = 0; # the total results for the whole set |
420 |
my $total = 0; # the total results for the whole set |
| 412 |
my $facets; # this object stores the faceted results that display on the left-hand of the results page |
421 |
my $facets; # this object stores the faceted results that display on the left-hand of the results page |
|
Lines 551-557
for (my $i=0;$i<@servers;$i++) {
Link Here
|
| 551 |
print $cgi->redirect("/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=$biblionumber"); |
560 |
print $cgi->redirect("/cgi-bin/koha/opac-MARCdetail.pl?biblionumber=$biblionumber"); |
| 552 |
} else { |
561 |
} else { |
| 553 |
print $cgi->redirect("/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber"); |
562 |
print $cgi->redirect("/cgi-bin/koha/opac-detail.pl?biblionumber=$biblionumber"); |
| 554 |
} |
563 |
} |
|
|
564 |
$session->param('currentsearchisoneresult', 1); |
| 555 |
exit; |
565 |
exit; |
| 556 |
} |
566 |
} |
| 557 |
if ($hits) { |
567 |
if ($hits) { |
|
Lines 672-678
if ($query_desc || $limit_desc) {
Link Here
|
| 672 |
|
682 |
|
| 673 |
# VI. BUILD THE TEMPLATE |
683 |
# VI. BUILD THE TEMPLATE |
| 674 |
# Build drop-down list for 'Add To:' menu... |
684 |
# Build drop-down list for 'Add To:' menu... |
| 675 |
my $session = get_session($cgi->cookie("CGISESSID")); |
|
|
| 676 |
my @addpubshelves; |
685 |
my @addpubshelves; |
| 677 |
my $pubshelves = $session->param('pubshelves'); |
686 |
my $pubshelves = $session->param('pubshelves'); |
| 678 |
my $barshelves = $session->param('barshelves'); |
687 |
my $barshelves = $session->param('barshelves'); |
| 679 |
- |
|
|