Text to go in the release notes:
|
This new command line script (misc/maintenance/dedup_authorities.pl) is a tool for helping to automatically remove duplicate authority records.
Features:
- Choose a method(s) to select which authority record to keep when duplicates are found. Methods include:
. date: keep the most recent authority (based on 005 field)
. used: keep the most used authority
. ppn: PPN (UNIMARC only), keep the authority with a ppn (when some authorities don't have one, based on 009 field)
- Use a SQL WHERE statement to limit the authority records checked for deduplication
- Check only specified authority types
- Increase the level of detail shown using the --verbose option
- Changes are only made when the --confirm option is used
Examples:
- Methods - for the authorities that have a PPN, keep the most recent, and if two (or more) have the same date in 005, keep the most used: --method ppn --method date --method used
- SQL WHERE statement - only look at records with an auth_id less than 5,000: --where="authid < 5000"
- Limit deduplication to specific authority types: --authtypecode PERSO_NAME
See the script help for the options available and usage examples (misc/maintenance/dedup_authorities.pl --help).
|