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

(-)a/C4/AuthoritiesMarc.pm (-1 / +1 lines)
Lines 760-766 sub FindDuplicateAuthority { Link Here
760
    if ($QParser) {
760
    if ($QParser) {
761
        $op = '&&';
761
        $op = '&&';
762
    } else {
762
    } else {
763
        $op = 'and';
763
        $op = 'AND';
764
    }
764
    }
765
    my $query='at:'.$authtypecode.' ';
765
    my $query='at:'.$authtypecode.' ';
766
    my $filtervalues=qr([\001-\040\Q!'"`#$%&*+,-./:;<=>?@(){[}_|~\E\]]);
766
    my $filtervalues=qr([\001-\040\Q!'"`#$%&*+,-./:;<=>?@(){[}_|~\E\]]);
(-)a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm (+2 lines)
Lines 523-528 our %index_field_convert = ( Link Here
523
    'mus'     => 'rtype',
523
    'mus'     => 'rtype',
524
    'aud'     => 'ta',
524
    'aud'     => 'ta',
525
    'hi'      => 'Host-Item-Number',
525
    'hi'      => 'Host-Item-Number',
526
    'at'      => 'authtype',
527
    'he'      => 'Heading'
526
);
528
);
527
529
528
sub _convert_index_fields {
530
sub _convert_index_fields {
(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-6 / +5 lines)
Lines 344-354 sub simple_search_compat { Link Here
344
    }
344
    }
345
    my $results = $self->search($query, undef, $max_results, %options);
345
    my $results = $self->search($query, undef, $max_results, %options);
346
    my @records;
346
    my @records;
347
    $results->each(sub {
347
    my $hits = $results->{'hits'};
348
            my $marc = $self->decode_record_from_result(@_);
348
    foreach my $es_record (@{$hits->{'hits'}}) {
349
            push @records, $marc;
349
        push @records, $self->decode_record_from_result($es_record->{'_source'});
350
        });
350
    }
351
    return (undef, \@records, $results->total);
351
    return (undef, \@records, $hits->{'total'});
352
}
352
}
353
353
354
=head2 extract_biblionumber
354
=head2 extract_biblionumber
355
- 

Return to bug 19365