View | Details | Raw Unified | Return to bug 6679
Collapse All | Expand All

(-)a/opac/changelanguage.pl (-2 / +2 lines)
Lines 15-22 Link Here
15
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
15
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
16
# Suite 330, Boston, MA  02111-1307 USA
16
# Suite 330, Boston, MA  02111-1307 USA
17
17
18
#use strict;
18
use strict;
19
#use warnings; FIXME - Bug 2505
19
use warnings;
20
20
21
use C4::Templates;
21
use C4::Templates;
22
use CGI;
22
use CGI;
(-)a/opac/opac-detail.pl (-3 / +6 lines)
Lines 141-148 if ($session->param('busc')) { Link Here
141
        my @servers;
141
        my @servers;
142
        @servers = @{$arrParamsBusc->{'server'}} if $arrParamsBusc->{'server'};
142
        @servers = @{$arrParamsBusc->{'server'}} if $arrParamsBusc->{'server'};
143
        @servers = ("biblioserver") unless (@servers);
143
        @servers = ("biblioserver") unless (@servers);
144
        my $default_sort_by = C4::Context->preference('OPACdefaultSortField')."_".C4::Context->preference('OPACdefaultSortOrder') if (C4::Context->preference('OPACdefaultSortField') && C4::Context->preference('OPACdefaultSortOrder'));
144
145
        my @sort_by = @{$arrParamsBusc->{'sort_by'}} if $arrParamsBusc->{'sort_by'};
145
        my ($default_sort_by, @sort_by);
146
        $default_sort_by = C4::Context->preference('OPACdefaultSortField')."_".C4::Context->preference('OPACdefaultSortOrder') if (C4::Context->preference('OPACdefaultSortField') && C4::Context->preference('OPACdefaultSortOrder'));
147
        @sort_by = @{$arrParamsBusc->{'sort_by'}} if $arrParamsBusc->{'sort_by'};
146
        $sort_by[0] = $default_sort_by if !$sort_by[0] && defined($default_sort_by);
148
        $sort_by[0] = $default_sort_by if !$sort_by[0] && defined($default_sort_by);
147
        my ($error, $results_hashref, $facets);
149
        my ($error, $results_hashref, $facets);
148
        eval {
150
        eval {
Lines 419-425 my @items; Link Here
419
my @hiddenitems = GetHiddenItemnumbers(@all_items);
421
my @hiddenitems = GetHiddenItemnumbers(@all_items);
420
422
421
# Are there items to hide?
423
# Are there items to hide?
422
my $hideitems = 1 if C4::Context->preference('hidelostitems') or scalar(@hiddenitems) > 0;
424
my $hideitems;
425
$hideitems = 1 if C4::Context->preference('hidelostitems') or scalar(@hiddenitems) > 0;
423
426
424
# Hide items
427
# Hide items
425
if ($hideitems) {
428
if ($hideitems) {
(-)a/opac/opac-reserve.pl (-2 / +1 lines)
Lines 48-54 my ( $template, $borrowernumber, $cookie ) = get_template_and_user( Link Here
48
    }
48
    }
49
);
49
);
50
my $OPACDisplayRequestPriority = (C4::Context->preference("OPACDisplayRequestPriority")) ? 1 : 0;
50
my $OPACDisplayRequestPriority = (C4::Context->preference("OPACDisplayRequestPriority")) ? 1 : 0;
51
sub get_out ($$$) {
51
sub get_out {
52
	output_html_with_http_headers(shift,shift,shift); # $query, $cookie, $template->output;
52
	output_html_with_http_headers(shift,shift,shift); # $query, $cookie, $template->output;
53
	exit;
53
	exit;
54
}
54
}
55
- 

Return to bug 6679