Skip to content

Commit

Permalink
Include bulkrax metadata in resource forms and indexers (#2314)
Browse files Browse the repository at this point in the history
* Include bulkrax metadata

Several models were missing bulkrax identifier metadata
on the forms and indexers, causing it to not be saved on
the resource.

* Update bulkrax

Brings in fix with file importing.
  • Loading branch information
laritakr authored Sep 9, 2024
1 parent aafef75 commit 83b2afe
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ GIT

GIT
remote: https://github.com/samvera/bulkrax.git
revision: cd9b58226ef215528a716a761f1d2b47d8c24915
revision: b511db6968a12023d74b6e2788947bfe70d5405d
branch: main
specs:
bulkrax (8.1.0)
Expand Down
1 change: 1 addition & 0 deletions app/forms/etd_resource_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class EtdResourceForm < Hyrax::Forms::ResourceForm(EtdResource)
# Commented out basic_metadata because these terms were added to etd_resource so we can customize it.
# include Hyrax::FormFields(:basic_metadata)
include Hyrax::FormFields(:bulkrax_metadata)
include Hyrax::FormFields(:etd_resource)
include Hyrax::FormFields(:with_pdf_viewer)
include Hyrax::FormFields(:with_video_embed)
Expand Down
1 change: 1 addition & 0 deletions app/forms/oer_resource_form.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
class OerResourceForm < Hyrax::Forms::ResourceForm(OerResource)
# Commented out basic_metadata because these terms were added to etd_resource so we can customize it.
# include Hyrax::FormFields(:basic_metadata)
include Hyrax::FormFields(:bulkrax_metadata)
include Hyrax::FormFields(:oer_resource)
include Hyrax::FormFields(:with_pdf_viewer)
include Hyrax::FormFields(:with_video_embed)
Expand Down
3 changes: 2 additions & 1 deletion app/indexers/etd_resource_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Generated via
# `rails generate hyrax:work_resource EtdResource`
class EtdResourceIndexer < Hyrax::ValkyrieWorkIndexer
include Hyrax::Indexer(:basic_metadata)
# Commented out basic_metadata because these terms were added to etd_resource so we can customize it.
# include Hyrax::Indexer(:basic_metadata)
include Hyrax::Indexer(:bulkrax_metadata)
include Hyrax::Indexer(:etd_resource)
include Hyrax::Indexer(:with_pdf_viewer)
Expand Down
3 changes: 2 additions & 1 deletion app/indexers/oer_resource_indexer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# Generated via
# `rails generate hyrax:work_resource OerResource`
class OerResourceIndexer < Hyrax::ValkyrieWorkIndexer
include Hyrax::Indexer(:basic_metadata)
# Commented out basic_metadata because these terms were added to etd_resource so we can customize it.
# include Hyrax::Indexer(:basic_metadata)
include Hyrax::Indexer(:bulkrax_metadata)
include Hyrax::Indexer(:oer_resource)
include Hyrax::Indexer(:with_pdf_viewer)
Expand Down

0 comments on commit 83b2afe

Please sign in to comment.