samvera-deprecated / sufia

[DEPRECATED] Sufia: a fully featured, flexible Samvera repository front-end.
http://sufia.io/
Other
111 stars 78 forks source link

Import Metadata and content from Sufia 6.x to Sufia PCDM #2137

Closed carolyncole closed 7 years ago

carolyncole commented 8 years ago

I would like to create an executable that reads json files created by the exporter #2136 to migrate the Sufia 6.x object to the correct Sufia PCDM representation of the object.

This will be done when I can run sufia_import.exe in my Sufia PCDM application, with a directory of json files. The directory is expected to contain json files representing each of my Sufia 6.x objects. Each object will be migrated and translated to the correct Sufia PCDM object(s):

My executable should take the following options: --json_directory= directory # directory where files were exported --json_mapping= {class: directory_pattern, ...} # Import the files discoverable by the directory pattern as objects of the class. The hash defaults to { Collection: coll.json, GenericFile: gf.json)

slide5

carolyncole commented 8 years ago

@mjgiarlo Adding a comment here to address your question about IDs. The PCDM version of the GenericFile (the GenericWork) should have the same ID as the Sufia 6.x version of the GenericFile. The Sufia PCDM version of the Collection (the Collection) should have the same ID as the Sufia 6.x version of the Collection.

mjgiarlo commented 8 years ago

Thank you!