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

(-)a/C4/Search.pm (-2 / +1 lines)
Lines 854-861 sub pazGetRecords { Link Here
854
        $results_per_page, $offset,       $expanded_facet, $branches,
854
        $results_per_page, $offset,       $expanded_facet, $branches,
855
        $query_type,       $scan
855
        $query_type,       $scan
856
    ) = @_;
856
    ) = @_;
857
857
    #NOTE: Parameter $branches is not used here !
858
    $branches ||= { map { $_->branchcode => $_->branchname } Koha::Libraries->search };
859
858
860
    my $paz = C4::Search::PazPar2->new(C4::Context->config('pazpar2url'));
859
    my $paz = C4::Search::PazPar2->new(C4::Context->config('pazpar2url'));
861
    $paz->init();
860
    $paz->init();
(-)a/catalogue/itemsearch.pl (-2 / +1 lines)
Lines 247-253 if (scalar keys %params > 0) { Link Here
247
if ($format eq 'html') {
247
if ($format eq 'html') {
248
    # Retrieve data required for the form.
248
    # Retrieve data required for the form.
249
249
250
    my @branches = map { value => $_->branchcode => label => $_->branchname }, Koha::Libraries->search( {}, { order_by => 'branchname' } );
250
    my @branches = map { value => $_->branchcode, label => $_->branchname }, Koha::Libraries->search( {}, { order_by => 'branchname' } );
251
    my @locations;
251
    my @locations;
252
    foreach my $location (@$location_values) {
252
    foreach my $location (@$location_values) {
253
        push @locations, {
253
        push @locations, {
254
- 

Return to bug 15758