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();
$search_terms->{authid} = \[ ' mod ? = ?', $slice_count, $slice_modulo];
$search_terms = {
'-and' => [
$search_terms,
%{$search_terms},
\[ ' mod(authid, ?) = ?', $slice_count, $slice_modulo]
\[ 'mod(authid, ?) = ?', $slice_count, $slice_modulo ]
]
};
-