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

(-)a/catalogue/search.pl (+6 lines)
Lines 499-504 if (C4::Context->preference('NoZebra')) { Link Here
499
        ($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$query_type,$scan);
499
        ($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$query_type,$scan);
500
    };
500
    };
501
}
501
}
502
# This sorts the facets into alphabetical order
503
if ($facets) {
504
    foreach my $f (@$facets) {
505
        $f->{facets} = [ sort { uc($a->{facet_title_value}) cmp uc($b->{facet_title_value}) } @{ $f->{facets} } ];
506
    }
507
}
502
if ($@ || $error) {
508
if ($@ || $error) {
503
    $template->param(query_error => $error.$@);
509
    $template->param(query_error => $error.$@);
504
    output_html_with_http_headers $cgi, $cookie, $template->output;
510
    output_html_with_http_headers $cgi, $cookie, $template->output;
(-)a/opac/opac-search.pl (-1 / +7 lines)
Lines 422-427 elsif (C4::Context->preference('NoZebra')) { Link Here
422
        ($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$query_type,$scan);
422
        ($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$query_type,$scan);
423
    };
423
    };
424
}
424
}
425
# This sorts the facets into alphabetical order
426
if ($facets) {
427
    foreach my $f (@$facets) {
428
        $f->{facets} = [ sort { uc($a->{facet_title_value}) cmp uc($b->{facet_title_value}) } @{ $f->{facets} } ];
429
    }
430
}
431
425
# use Data::Dumper; print STDERR "-" x 25, "\n", Dumper($results_hashref);
432
# use Data::Dumper; print STDERR "-" x 25, "\n", Dumper($results_hashref);
426
if ($@ || $error) {
433
if ($@ || $error) {
427
    $template->param(query_error => $error.$@);
434
    $template->param(query_error => $error.$@);
428
- 

Return to bug 4891