diff --git a/Gemfile.lock b/Gemfile.lock index 324257c3b..dcd08272f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -20,7 +20,7 @@ GIT GIT remote: https://github.com/notch8/willow_sword.git - revision: e4edebde9a29636d74c794efca423535db296880 + revision: 8c97a00679b04115d0ebd3bb083359360b1a2071 branch: main specs: willow_sword (0.2.0) diff --git a/config/initializers/hyrax.rb b/config/initializers/hyrax.rb index f45a40cb1..e10573d07 100644 --- a/config/initializers/hyrax.rb +++ b/config/initializers/hyrax.rb @@ -268,3 +268,11 @@ Hyrax::Transactions::Container.namespace('collection_resource') do |ops| ops.register 'save_collection_thumbnail', Hyrax::Transactions::Steps::SaveCollectionThumbnail.new end + +Hyrax::Resource.delegate( + :visibility_during_embargo, :visibility_after_embargo, :embargo_release_date, to: :embargo, allow_nil: true +) + +Hyrax::Resource.delegate( + :visibility_during_lease, :visibility_after_lease, :lease_expiration_date, to: :lease, allow_nil: true +) diff --git a/config/initializers/willow_sword.rb b/config/initializers/willow_sword.rb index 9035f05c0..e1a63849b 100644 --- a/config/initializers/willow_sword.rb +++ b/config/initializers/willow_sword.rb @@ -8,5 +8,6 @@ config.file_set_models = [Hyrax.config.file_set_model] config.default_work_model = Hyrax.config.curation_concerns.first config.authorize_request = true + config.xml_mapping_read = 'Hyku' end end