Feature #12618

Add new physical object normalization command-line task to merge duplicate containers

Added by Mike Cantelon 6 months ago. Updated 4 days ago.

Status:VerifiedStart date:12/06/2018
Priority:MediumDue date:
Assignee:Mike Cantelon% Done:

0%

Category:Physical storage
Target version:Release 2.5.0
Google Code Legacy ID: Tested version:
Sponsored:Yes Requires documentation:

Description

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.


Related issues

Related to Access to Memory (AtoM) - Feature #12646: Add new command-line task to delete any Physical storage ... Verified 12/18/2018

History

#3 Updated by Mike Cantelon 5 months ago

A separate task is being created to delete unlinked physical objects.

#4 Updated by Dan Gillean 5 months ago

  • Description updated (diff)
  • Target version set to Release 2.5.0
  • Sponsored changed from No to Yes

#5 Updated by Dan Gillean 5 months ago

  • Related to Feature #12646: Add new command-line task to delete any Physical storage locations not linked to any descriptions added

#6 Updated by Dan Gillean 5 months ago

  • Subject changed from Physical object normalization task to Add new physical object normalization command-line task to merge duplicate containers

#7 Updated by Dan Gillean about 1 month ago

  • Status changed from New to Verified

Also available in: Atom PDF