[Koha-bugs] [Bug 21972] Record matching rule for authorities only works for first 20 authority records

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Dec 7 15:30:28 CET 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21972

--- Comment #2 from Simon Hohl <simon.hohl at dainst.org> ---
Some further testing:

1) If I remove the match point for subfield 024$2, the staged records are all
matched correctly. But this is not a viable solution for a production
environment, because I basically stop checking if the ID in 024$a really is an
iDAI.gazetteer ID.
2) I suspect the error is caused by this line:

my ( $authresults, $total ) = $searcher->search_auth_compat( $search_query, 0,
20 );
See: https://gitlab.com/koha-community/Koha/blob/master/C4/Matcher.pm#L718

Is it possible, that the matching rule searches for existing authority records
024$2 subfields with the same value (= iDAI.gazetteer), but the result has a
cut off at 20 results? Then, because 'iDAI.gazetteer' is the 024$2 value of ALL
place authority records, the result will just contain the first 20 returned and
everything else is discarded and the check on 024$a is somehow ignored.

I have never coded anything in Perl, so I am not quite sure how the different
rules get applied - I may be wrong.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list