Skip to content

Commit

Permalink
wings: provide a convenience method DefaultWork#file_sets
Browse files Browse the repository at this point in the history
Hydra works has this, and it will be nice to provide it to Wings users handling
Valkyrie native models cast back to AF.
  • Loading branch information
tamsin johnson committed Aug 10, 2023
1 parent 9c1c3a6 commit 361b113
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/wings/active_fedora_converter/default_work.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def enforce_future_date_for_lease?
false
end

def file_sets
members.select(&:file_set?)
end

def indexing_service
Hyrax::ValkyrieIndexer.for(resource: valkyrie_resource)
end
Expand Down

0 comments on commit 361b113

Please sign in to comment.