Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR...
Hyrax::PcdmCollection
Collection Resource Generator
Generates:
The generated collection resource classes include
basic_metadata
.Move basic metadata
The generated collection resource class includes
basic_metadata
. For that reason, the inclusion ofbasic_metadata
was removed fromHyrax::PcdmCollection
and its indexer._NOTE: This follows the pattern used for works where
Hyrax::Work
includescore_metadata
, but notbasic_metadata
, as it is included in generated work classes.Add CollectionResource in test app
The test generator was updated to create a collection resource class named "CollectionResource". The config that is generated to set this as 'the' collection class is commented out in
/config/initializers/hyrax.rb
by the test generator.For now, this allows the ActiveFedora
::Collection
class to continue to be 'the' collection class.NOTE: At this time, Hyrax supports a single class that is 'the' collection class. It is configured in
config/initializers/hyrax.rb
by settingconfig.collection_model =
.Potential Future Work
This pattern allows for future work that would update Hyrax to allow multiple collection resource classes each with their own metadata.
Related Work
This PR replaces the proposed work in PR #5157 that added a separate
collection_basic_metadata
file.@samvera/hyrax-code-reviewers