Add setting to automatically strip filename from information objects generated during DIP upload
|Assignee:||Mike Cantelon||% Done:|
|Target version:||Release 2.3.0|
|Google Code Legacy ID:||Tested version:||2.3|
This feature will add a new section to the Admin > Settings page: DIP upload (as we expect that in the future, there may be more settings added here).
In the DIP upload section of the settings, we are adding a setting that will allow administrators to determine if file extensions will be stripped from the automated information object names created when DIP objects are uploaded into AtoM (as there is a 1:1 relationship between a digital object and an information object in AtoM, and a new information object is created for each digital object uploaded as part of the DIP upload).
This setting will use regex to strip file extensions from the automated names given to corresponding information objects during upload (e.g. .jpg, .pdf, etc). Ideally, the regex should look for whitespace at the end, so it will not strip out elements of a filename that might use periods (e.g. "my.Movie.File.mp4" should just become "my.Movie.File").
The setting will NOT retroactively affect existing uploads/information objects, only new information objects created during the DIP upload process from Archivematica. As the manual digital object upload options allow the user to set the information object names during upload, it should not need to affect any of these either - just DIP upload. Something like this:
Strip file extensions from information object names generated during DIP upload: [ X ] Yes [ ] No
Note as well that the uploaded file itself is NOT affected (the extension is not stripped from the digital object) - it is only the generated information object (e.g. description) in AtoM.
#3 Updated by Dan Gillean over 6 years ago
- Requires documentation deleted (
Documentation added to 2.3 docs branch, here: https://github.com/artefactual/atom-docs/commit/7780fbb07f540ee54dba7e044cdb8a96ad9de02f
#7 Updated by Sara Allain almost 6 years ago
- Status changed from Verified to Feedback
- Assignee changed from Sara Allain to Mike Cantelon
The feature works for straight DIP uploads, but not for DIP uploads that have been assigned levels of description in Archivematica. For an example, see: https://atom-qa-23x.artefactual.com/8758-test-w-hierarchy