@@ -, +, @@ iterator --- Koha/BiblioUtils.pm | 2 +- Koha/MetadataRecord/Authority.pm | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) --- a/Koha/BiblioUtils.pm +++ a/Koha/BiblioUtils.pm @@ -131,7 +131,7 @@ sub get_all_biblios_iterator { if ($options{slice}) { $slice_count = $options{slice}->{count}; $slice_modulo = $options{slice}->{index}; - $search_terms = \[ ' mod(biblionumber, ?) = ?', $slice_count, $slice_modulo]; + $search_terms = \[ 'mod(biblionumber, ?) = ?', $slice_count, $slice_modulo ]; } my $database = Koha::Database->new(); --- a/Koha/MetadataRecord/Authority.pm +++ a/Koha/MetadataRecord/Authority.pm @@ -182,11 +182,10 @@ sub get_all_authorities_iterator { if ($options{slice}) { $slice_count = $options{slice}->{count}; $slice_modulo = $options{slice}->{index}; - $search_terms->{authid} = \[ ' mod ? = ?', $slice_count, $slice_modulo]; $search_terms = { '-and' => [ - $search_terms, - \[ ' mod(authid, ?) = ?', $slice_count, $slice_modulo] + %{$search_terms}, + \[ 'mod(authid, ?) = ?', $slice_count, $slice_modulo ] ] }; } --