-
Notifications
You must be signed in to change notification settings - Fork 7
Hybridge in ESSI
The Hybridge gem ingests CSV files generated by CDM Bridge in order to import content from CONTENTdm.
Add this line to Gemfile gem 'hybridge', git: 'https://github.com/Bridge2Hyku/hybridge'
Run bundle install
Run installer rails g hybridge:install
Hybridge is meant to be run inside a Hyku applications. The following steps can be followed in order for Hybridge to work in a Hyrax application such as ESSI.
Changes are required in the hybridge ingest controller. Create a local override file at
app/controllers/hybridge/ingest_controller.rb
.
Copy content from revised controller gist into file.
The above file requires that an ingest directory be configured.
config.hybridge_directory = '/dir/for/hybridge/ingest'
This configuration can be placed in the config/environment/*
files.
Currently, hybridge appears to only work for Generic Works. ESSI includes the GenericWork model, but not the form. Running the work type generator, but ignoring the model creation, takes care of this.
rails generate hyrax:work GenericWork