osulp / Scholars-Archive

ScholarsArchive@OSU, institutional repository for Oregon State University
https://ir.library.oregonstate.edu/
15 stars 3 forks source link

Finalize FileSet metadata after including Hyrax metadata #2589

Closed CGillen closed 2 months ago

CGillen commented 2 months ago

Something about the #accepts_nested_metadata_for method finalizes metadata. This is called in ::Hyrax::FileSetBehavior through several includes. This prevents us from calling #accepts_nested_metadata_for before including ::Hyrax::FileSetBehavior, however we still need to include our own metadata before the include.

Splitting the calls to #accepts_nested_metadata_for into a new include allows us to define our own metadata first then finalize it all once ::Hyrax::FileSetBehavior is included.

Fixes #2586