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

(-)a/C4/AuthoritiesMarc.pm (-2 / +1 lines)
Lines 770-776 sub FindDuplicateAuthority { Link Here
770
        }
770
        }
771
    }
771
    }
772
    my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::AUTHORITIES_INDEX});
772
    my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::AUTHORITIES_INDEX});
773
    my ($error, $results, $total_hits) = $searcher->simple_search_compat( $query, 0, 1 );
773
    my ($error, $results, $total_hits) = $searcher->simple_search_compat( $query, 0, 1, [ 'authorityserver' ] );
774
    # there is at least 1 result => return the 1st one
774
    # there is at least 1 result => return the 1st one
775
    if (!defined $error && @{$results} ) {
775
    if (!defined $error && @{$results} ) {
776
        my $marcrecord = C4::Search::new_record_from_zebra(
776
        my $marcrecord = C4::Search::new_record_from_zebra(
777
- 

Return to bug 19415