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

(-)a/Koha/SearchEngine/Elasticsearch/Indexer.pm (-3 / +3 lines)
Lines 101-107 sub update_index { Link Here
101
101
102
    my $documents = $self->marc_records_to_documents($records);
102
    my $documents = $self->marc_records_to_documents($records);
103
    my @body;
103
    my @body;
104
105
    for (my $i = 0; $i < scalar @$biblionums; $i++) {
104
    for (my $i = 0; $i < scalar @$biblionums; $i++) {
106
        my $id = $biblionums->[$i];
105
        my $id = $biblionums->[$i];
107
        my $document = $documents->[$i];
106
        my $document = $documents->[$i];
Lines 302-308 sub index_records { Link Here
302
    $records = [$records] if ref $records ne 'ARRAY' && defined $records;
301
    $records = [$records] if ref $records ne 'ARRAY' && defined $records;
303
    if ( $op eq 'specialUpdate' ) {
302
    if ( $op eq 'specialUpdate' ) {
304
        my $index_record_numbers;
303
        my $index_record_numbers;
305
        unless ($records) {
304
        if ($records){
305
            $index_record_numbers = $record_numbers;
306
        } else {
306
            foreach my $record_number ( @$record_numbers ){
307
            foreach my $record_number ( @$record_numbers ){
307
                my $record = _get_record( $record_number, $server );
308
                my $record = _get_record( $record_number, $server );
308
                if( $record ){
309
                if( $record ){
309
- 

Return to bug 26903