[Koha-bugs] [Bug 16746] Can not find duplicated authorities cataloguing a new one
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 24 16:39:25 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16746
--- Comment #3 from M. Tompsett <mtompset at hotmail.com> ---
Comment on attachment 52440
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=52440
Patch to solve this issue
Review of attachment 52440:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=16746&attachment=52440)
-----------------------------------------------------------------
::: C4/AuthoritiesMarc.pm
@@ +829,4 @@
> }
> }
> my $searcher = Koha::SearchEngine::Search->new({index => $Koha::SearchEngine::AUTHORITIES_INDEX});
> + my ($error, $results, $total_hits) = $searcher->simple_search_compat( $query, 0, 1, [ "authorityserver" ]);
I don't think this is the correct solution, as ElasticSearch and Zebra both
implement simple_search_compat, but ElasticSearch does not take the fourth
parameter. Instead, it uses the objects 'index' accessor, which the Zebra
version seems to be missing. Counter patch to follow today.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list