Skip to content

Bridge2Hyku/cdm_migrator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CdmMigrator

This migrator is designed to export individual ContentDM collections to a CSV for refining. It then allows batch importing into Hyrax via a CSV upload.

Installation

Add this line to your application's Gemfile:

gem 'cdm_migrator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install cdm_migrator

Finally, run:

$ rails g cdm_migrator:install

Usage

  1. Add your ContentDM url and api port to the cdm_migrator.yml file.
  2. Navigate to the cdm_migrator/cdm/collection url to select your contentdm collection and what type of work you want to export it to and click "choose mappings".
  3. Map the ContentDM fields to your Hyrax work and file fields* and click "generate CSV".
  4. Refine the CSV as you see fit.
  5. Navigate to the cdm_migrator/csv/upload url; choose your multi-value seperator (default is |) and upload your CSV file.
  6. Done.

* cdm_migrator uses the generated Hyrax forms (ex. Hyrax::Forms::GenericWorkForm) in your host application to obtain it's terms for mapping. If you have added terms to your FileSet model extend the Hyrax::Forms::FileSetEditForm with FileSetForm in your host application so that the changes will be detected by the migrator.

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 87.4%
  • HTML 8.3%
  • JavaScript 2.2%
  • CSS 2.1%