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 516-521 our %index_field_convert = ( Link Here
516
    'mus'     => 'rtype',
516
    'mus'     => 'rtype',
517
    'aud'     => 'ta',
517
    'aud'     => 'ta',
518
    'hi'      => 'Host-Item-Number',
518
    'hi'      => 'Host-Item-Number',
519
    'at'      => 'authtype',
520
    'he'      => 'Heading'
519
);
521
);
520
522
521
sub _convert_index_fields {
523
sub _convert_index_fields {
(-)a/Koha/SearchEngine/Elasticsearch/Search.pm (-6 / +5 lines)
Lines 343-353 sub simple_search_compat { Link Here
343
    }
343
    }
344
    my $results = $self->search($query, undef, $max_results, %options);
344
    my $results = $self->search($query, undef, $max_results, %options);
345
    my @records;
345
    my @records;
346
    $results->each(sub {
346
    my $hits = $results->{'hits'};
347
            my $marc = $self->decode_record_from_result(@_);
347
    foreach my $es_record (@{$hits->{'hits'}}) {
348
            push @records, $marc;
348
        push @records, $self->decode_record_from_result($es_record->{'_source'});
349
        });
349
    }
350
    return (undef, \@records, $results->total);
350
    return (undef, \@records, $hits->{'total'});
351
}
351
}
352
352
353
=head2 extract_biblionumber
353
=head2 extract_biblionumber
354
- 

Return to bug 19365