The Great Hyrax Migration
What is Samvera
A Community and the Software
A Global Community of Technologists
Flexible Repository Software
The Technology
It Is Finally Time
Paths for Migration
^#*$ it! We'll Do It Live!
A Tail of Two Goddesses
But Which One Is Which?
Good question
Freyja => Postgres
This adapter will Freyja from FCREPO forever
Frigg => FCREPO 6
It's about Frigg'in time we had FCREPO 6 support
Steps for setting up an adapter
Upgrade to Hyrax 5
Create resource models
rails generate hyrax:work_resource ${MODEL_NAME}Resource field:type
Model your existing properties in a config/metadata/.yaml file
attributes:
abstract:
type: string
multiple: true
form:
primary: false
alternative_title:
type: string
multiple: true
form:
primary: false
based_near:
type: string
multiple: true
form:
primary: false
index_keys:
- "based_near_sim"
- "based_near_tesim"
Register with Wings
Wings::ModelRegistry.register(Asset, Asset)
Wings::ModelRegistry.register(AssetResource, Asset)
Wings::ModelRegistry.register(Collection, Collection) Wings::ModelRegistry.register(Hyrax::PcdmCollection, Collection)
�Wings::ModelRegistry.register(Hyrax::AdministrativeSet, AdminSet)
Wings::ModelRegistry.register(AdminSet, AdminSet)
Set Your Collection and AdminSet models
In config/initializers/hyrax.rb
config.collection_model = 'Hyrax::PcdmCollection'
config.admin_set_model = 'Hyrax::AdministrativeSet'
Set The Adapter
Valkyrie::MetadataAdapter.register(
Freyja::MetadataAdapter.new, :freyja
)
Valkyrie.config.metadata_adapter = :freyja �
Hyrax.config.query_index_from_valkyrie = true
Hyrax.config.index_adapter = :solr_index
Bring over and actor customizations to Hyrax::Transactions
Some Other Things to Check
Start Migrating Data!
What's Left?
Demo
Thank You
Rob Kaufman, Scientist.com
rob@scientist.com
@orangewolf everywhere else