Skip to content

Commit

Permalink
Merge pull request #2447 from samvera/update-willow-sword
Browse files Browse the repository at this point in the history
⬆️ Update WillowSword gem
  • Loading branch information
kirkkwang authored Feb 7, 2025
2 parents dccf8dc + 84ee066 commit add8ede
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 8 additions & 0 deletions config/initializers/hyrax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
1 change: 1 addition & 0 deletions config/initializers/willow_sword.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit add8ede

Please sign in to comment.