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

(-)a/Koha/BiblioUtils.pm (-1 / +1 lines)
Lines 131-137 sub get_all_biblios_iterator { Link Here
131
    if ($options{slice}) {
131
    if ($options{slice}) {
132
        $slice_count = $options{slice}->{count};
132
        $slice_count = $options{slice}->{count};
133
        $slice_modulo = $options{slice}->{index};
133
        $slice_modulo = $options{slice}->{index};
134
        $search_terms = \[ ' mod(biblionumber, ?) = ?', $slice_count, $slice_modulo];
134
        $search_terms = \[ 'mod(biblionumber, ?) = ?', $slice_count, $slice_modulo ];
135
    }
135
    }
136
136
137
    my $database = Koha::Database->new();
137
    my $database = Koha::Database->new();
(-)a/Koha/MetadataRecord/Authority.pm (-4 / +2 lines)
Lines 183-193 sub get_all_authorities_iterator { Link Here
183
    if ($options{slice}) {
183
    if ($options{slice}) {
184
        $slice_count = $options{slice}->{count};
184
        $slice_count = $options{slice}->{count};
185
        $slice_modulo = $options{slice}->{index};
185
        $slice_modulo = $options{slice}->{index};
186
        $search_terms->{authid} = \[ ' mod ? = ?', $slice_count, $slice_modulo];
187
        $search_terms = {
186
        $search_terms = {
188
            '-and' => [
187
            '-and' => [
189
                $search_terms,
188
                %{$search_terms},
190
                \[ ' mod(authid, ?) = ?', $slice_count, $slice_modulo]
189
                \[ 'mod(authid, ?) = ?', $slice_count, $slice_modulo ]
191
            ]
190
            ]
192
        };
191
        };
193
    }
192
    }
194
- 

Return to bug 21872