@@ -, +, @@ --- C4/Search.pm | 3 +-- catalogue/itemsearch.pl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) --- a/C4/Search.pm +++ a/C4/Search.pm @@ -854,8 +854,7 @@ sub pazGetRecords { $results_per_page, $offset, $expanded_facet, $branches, $query_type, $scan ) = @_; - - $branches ||= { map { $_->branchcode => $_->branchname } Koha::Libraries->search }; + #NOTE: Parameter $branches is not used here ! my $paz = C4::Search::PazPar2->new(C4::Context->config('pazpar2url')); $paz->init(); --- a/catalogue/itemsearch.pl +++ a/catalogue/itemsearch.pl @@ -247,7 +247,7 @@ if (scalar keys %params > 0) { if ($format eq 'html') { # Retrieve data required for the form. - my @branches = map { value => $_->branchcode => label => $_->branchname }, Koha::Libraries->search( {}, { order_by => 'branchname' } ); + my @branches = map { value => $_->branchcode, label => $_->branchname }, Koha::Libraries->search( {}, { order_by => 'branchname' } ); my @locations; foreach my $location (@$location_values) { push @locations, { --