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

--- Comment #2 from Simon Hohl <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to