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

(-)a/Koha/Authorities.pm (-2 / +1 lines)
Lines 51-57 sub get_usage_count { Link Here
51
    my $authid = $params->{authid} || return;
51
    my $authid = $params->{authid} || return;
52
52
53
    my $searcher = Koha::SearchEngine::Search->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX });
53
    my $searcher = Koha::SearchEngine::Search->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX });
54
    my ( $err, $result, $count ) = $searcher->simple_search_compat( 'an:' . $authid, 0, 0 );
54
    my ( $err, $result, $count ) = $searcher->simple_search_compat( "an:\"$authid\"", 0, 0 );
55
    if( $err ) {
55
    if( $err ) {
56
        warn "Error: $err from search for " . $authid;
56
        warn "Error: $err from search for " . $authid;
57
        return;
57
        return;
58
- 

Return to bug 33802