[Bug 44291] New: Duplicate check is skipped when the record has none of the fields used by the framework matching rule
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44291 Bug ID: 44291 Summary: Duplicate check is skipped when the record has none of the fields used by the framework matching rule Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Cataloging Assignee: koha-bugs@lists.koha-community.org Reporter: thibaud.guillot@biblibre.com QA Contact: testopia@bugs.koha-community.org CC: m.de.rooy@rijksmuseum.nl Target Milestone: --- Hi, Since bug 15248, a record matching rule can be set on a MARC framework to check for duplicates when cataloguing or ordering from an external source. When set, it replaces FindDuplicate. If the record has none of the fields used by the rule, the matcher cannot build any search key, so no duplicate is ever found and the record is not checked at all. Typical case (UNIMARC): a matching rule on 009 (PPN, Sudoc identifier) is set on the default framework. Records coming from a vendor (e.g. Electre) have no 009, so a record with the same ISBN and title as an existing one is created without any duplicate warning. Without the matching rule, FindDuplicate would have found it. Expected: when the matching rule cannot be applied to the record, fall back to FindDuplicate, as when no rule is set. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44291 Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Comma delimited| |BibLibre list of Sponsors| | Assignee|koha-bugs@lists.koha-commun |thibaud.guillot@biblibre.co |ity.org |m Sponsorship status|--- |Sponsored Depends on| |15248 Status|NEW |Needs Signoff Patch complexity|--- |Small patch Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15248 [Bug 15248] Make it possible to configure duplicate check on bibliographic records -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44291 --- Comment #1 from Thibaud Guillot (thibaud_g) <thibaud.guillot@biblibre.com> --- Created attachment 212627 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212627&action=edit Bug 44291: Fall back to FindDuplicate when the matching rule does not apply When a record matching rule is set for a framework (bug 15248), it replaces FindDuplicate. If the record has none of the fields used by the rule (e.g. a rule on 035$a and a vendor record without 035), nothing can match and the record is not checked for duplicates at all. FindDuplicateWithMatchingRules now falls back to FindDuplicate in that case. Test plan: 1. Create a record matching rule for biblios: threshold 100, one match point on index Other-control-number, score 100, tag 035, subfield a 2. Administration > MARC frameworks > Default framework: select this rule 3. Catalog a new record with the same ISBN and title as an existing record, without 035, and save => No duplicate warning 4. Apply the patch, restart_all 5. Repeat 3 => "Duplicate record suspected" warning 6. Catalog a record whose 035$a matches an existing record => The matching rule is still used 7. prove t/db_dependent/Search.t -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org