Review the following models files to determine what needs to get converted into valkyrie resources. When you pick up a model, please include its entirety.
~rails generate hyrax:work_resource GenericWorkResource~
edit: use the knapsack generator, so the files go in the right locations.
Set up config/initializers/wings.rb and register each model.
ignore changes to register in hyrax.rb
IE: converting the model Journal Article should also include its valkyrized Indexers, Forms, etc.
Models to convert:
[x] ConferenceItem
[x] Dataset
[x] ExamPaper
[x] Generic Work
[x] Image
[x] JournalArticle
[x] PublishedWork
[x] Thesis
Acceptance Criteria
[ ] Devs have identified and converted models into valkyrie resources
[ ] valkyrized resources can be created for each work type
[ ] ConferenceItem
[ ] Dataset
[ ] ExamPaper
[ ] Generic Work
[ ] Image
[ ] JournalArticle
[ ] PublishedWork
[ ] Thesis
Screenshots or Video
TBD
Testing Instructions
TBD
Notes
A tenant created after the new work types will get all of the work types into its site configuration. In the admin settings to select work type it weeds out the duplicates but the modal includes all of them.
Summary
Review the following models files to determine what needs to get converted into valkyrie resources. When you pick up a model, please include its entirety.
~
rails generate hyrax:work_resource GenericWorkResource
~ edit: use the knapsack generator, so the files go in the right locations.Steps for each work type:
bundle exec rails generate hyku_knapsack:work_resource WorkTypeResource
Hyrax::ArResource
&Hyrax::NestedWorks
< Hyrax::Forms::ResourceForm(
< Hyrax::Forms::ResourceForm
include Hyku::WorksControllerBehavior
curation_concern_type
to xxxResourceself.work_form_service = Hyrax::FormFactory.new
config/initializers/wings.rb
and register each model.IE: converting the model Journal Article should also include its valkyrized Indexers, Forms, etc.
Models to convert:
Acceptance Criteria
Screenshots or Video
TBD
Testing Instructions
TBD
Notes
A tenant created after the new work types will get all of the work types into its site configuration. In the admin settings to select work type it weeds out the duplicates but the modal includes all of them.