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

(-)a/C4/AuthoritiesMarc.pm (-2 / +1 lines)
Lines 829-835 sub FindDuplicateAuthority { Link Here
829
        }
829
        }
830
    }
830
    }
831
    my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::AUTHORITIES_INDEX});
831
    my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::AUTHORITIES_INDEX});
832
    my ($error, $results, $total_hits) = $searcher->simple_search_compat( $query, 0, 1 );
832
    my ($error, $results, $total_hits) = $searcher->simple_search_compat( $query, 0, 1, [ "authorityserver" ]);
833
    # there is at least 1 result => return the 1st one
833
    # there is at least 1 result => return the 1st one
834
    if (!defined $error && @{$results} ) {
834
    if (!defined $error && @{$results} ) {
835
        my $marcrecord = C4::Search::new_record_from_zebra(
835
        my $marcrecord = C4::Search::new_record_from_zebra(
836
- 

Return to bug 16746