-
Notifications
You must be signed in to change notification settings - Fork 6
1.10 Metadata
Properties and their predicates come from Hyrax::BasicMetadata
Following the pattern for the Hyrax::BasicMetadata mixin, a local module could define full or partial ontologies. The cost of superfluous properties seems low and is outweighed by the benefit of being able to easily accommodate fields in views without having to alter models. So a module like Catorax::Image::Metadata could be mixed in the way Hyrax basic is within the model at https://github.com/IUBLibTech/catorax/blob/master/app/models/image.rb#L13
Note that BasicMetadata has to be the last included.
https://github.com/IUBLibTech/catorax/blob/work_type_customizations/app/models/image.rb#L12 https://github.com/IUBLibTech/catorax/blob/work_type_customizations/app/models/concerns/catorax/extended_metadata.rb
It's "complicated", but essentially most predicates are defined in PlumSchema.
But note that more properties get set at various times that can be traced back to other schema and vocab classes.