[Koha-bugs] [Bug 13706] Deduping authorities script (dedup_authorities.pl)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 16 20:34:34 CEST 2021


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

Nick Clemens <nick at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #35885|0                           |1
        is obsolete|                            |
  Attachment #40069|0                           |1
        is obsolete|                            |
 Attachment #121920|0                           |1
        is obsolete|                            |

--- Comment #8 from Nick Clemens <nick at bywatersolutions.com> ---
Created attachment 122049
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122049&action=edit
Bug 13706: New script dedup_authorities.pl

This script allow to deduplicate authorities automatically.

Script is in misc/maintenance/

It works this way:
 1) authorities are fetched from the database. You can limit fetched
 results by authtypecode, or directly by specifying WHERE clause
 2) for each authority:
  2.1) build a Zebra query using the 'search_form' for the heading
  2.2) run the query, retrieve the results
  2.3) among duplicates, choose the one we want to keep (use
  --choose-method option).
  2.5) use C4::Authorities::merge to merge authorities
 3) delete the merged authorities

Use --help for more informations on options

To be done:
1 - Move to module and cover with tests
2 - Add option to only merge unused authorities
3 - Expand 'ppn' option to be 'control-number' option and allow specifying
field
4 - More?

1 & 2 I will attempt - 3 & 4 may be future enhancements

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


More information about the Koha-bugs mailing list