eprintsug / EPrintsArchivematica

Digital Preservation through EPrints-Archivematica Integration - An EPrints export plugin to Archivematica
6 stars 1 forks source link

Archivematica export plugin for eprints #12

Closed wfyson closed 4 years ago

wfyson commented 4 years ago

Initial work on the export plugin that can be used to create an Archivematica transfer. This plugin is currently called via 'Manage records' --> 'Archivematica' and then clicking the 'Export' button for the relevant Archivematica record (Archivematica records can be created via an EPrint's 'Actions' tab). The plugin can then later be integrated with the triggers when ready.

tw4l commented 4 years ago

Hi @wfyson, this is looking good so far!

Two notes:

  1. Dublin Core metadata: What we have so far looks good, but Archivematica expects that Dublin Core elements in metadata.json are prefaced with the namespace dc.. See this section of the Archivematica documentation for explanation and an example. In the case of the example in the documentation, Dublin Core is being written on a file-by-file basis. Since we're writing metadata that's relevant to the entire transfer, the value for "filename" should be hardcoded to "objects/".

  2. MD5 hashes: So far it looks like this module is generating a new MD5 hash for each file exported. Where possible, we'd prefer to use the existing stored MD5 from the database, and only generate new hashes when there is not a recorded value. More information on the logic that should be used is in the README. The idea would be to verify that the fixity for a file on export is the same that it was when the file was uploaded to the eprints repository. It's quite possible that you're already planning to implement that and this was just the first step - if so, please forgive my eagerness!

photomedia commented 4 years ago

I am merging this pull request. I created two issues based on @timothyryanwalsh 's comments. https://github.com/eprintsug/EPrintsArchivematica/issues/14 https://github.com/eprintsug/EPrintsArchivematica/issues/13