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

            Bug ID: 41097
           Summary: Deduping authorities script (dedup_authorities.pl) can
                    die on duplicated ids
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Command-line Utilities
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

When running the script it seems to generate duplicate ids:

Processing authority 1660 (531/650 81.69%)
    Merging 1660,1662 into 1660.
    Updated 0 biblios
    Deleting 1662
    Merge done.

This seems to be a product of _choose_records which gets all the candidates,
but then adds the original record twice

318     my @records         = map { C4::AuthoritiesMarc::GetAuthority($_) }
@recordids;
319     my @candidate_auths = @records;

and later: 
$choose_subs[2] ? $choose_subs[2]->($_) : 0 ] => ( $records[0],
@candidate_auths );

-- 
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]
https://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