Add new physical object normalization command-line task to merge duplicate containers
|Assignee:||Mike Cantelon||% Done:|
|Target version:||Release 2.5.0|
|Google Code Legacy ID:||Tested version:|
This feature will a new command-line task to AtoM that will aid in the management of containers in AtoM's physical storage module.
Specifically, this task will allow a system administrator to merge duplicate storage locations (i.e. those that share identical values in the container name, location, and type), preserving the relations to archival descriptions in the first container.
This task will behave very similar to the taxonomy:normalize task - it is not actually merging data from multiple fields. Instead, when duplicates are identified, it will preserve the oldest of these (based on the createdAt timestamp in the database, and then will append all relations from the duplicate(s) to that record before deleting the duplicates.
The task should look and work something like the taxonomy normalization task, i.e perhaps:
php symfony physicalobject:normalize
Build in option to factor in location data (which is string data, i.e. free-text) when comparing.
By default, match-and-merge criteria is that all 3 values (name, location, and type) must be identical for a merge. However, an option will be added added - --name-only - that will allow the task to ONLY match-and-merge based on the container name.
If time allows, a --dry-run option will also be included, that will output a list of containers that will be affected in the console, without actually merging and deleting.
#8 Updated by Dan Gillean 3 months ago
- Requires documentation deleted (