Skip to content
Randall Floyd edited this page Jun 29, 2018 · 6 revisions

Default metadata properties in Hyrax

Properties and their predicates come from Hyrax::BasicMetadata

Adding metadata properties to Hyrax

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.

See module for adding extended metadata properties to Catorax:

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

Properties available in Pumpkin

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.