Sha256: c917dbf9fee7b67dd559fe850b252d3e38f0df95048748b2c7da2bf85466e4b2
Contents?: true
Size: 1.15 KB
Versions: 5
Compression:
Stored size: 1.15 KB
Contents
# Include this into models that you want to conform to the Hydra commonMetadata cModel # See https://wiki.duraspace.org/display/hydra/Hydra+objects%2C+content+models+%28cModels%29+and+disseminators#Hydraobjects%2Ccontentmodels%28cModels%29anddisseminators-models # # Explicitly declares: # rightsMetadata datastream using Hydra::RightsMetadata Terminology # # Does not explicitly declare: # descMetadata datastream -- should be declared by a more specific mixin like Hydra::ModelMixins::ModsObject # DC datastream -- Handled by ActiveFedora::Base # RELS-EXT datastream -- Handled by ActiveFedora::Base & ActiveFedora::RelsExtDatastream # optional datastreams (contentMetadata, technicalMetadata, provenanceMetadata, sourceMetadata) # module Hydra::ModelMixins module CommonMetadata def self.included(klazz) # Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright klazz.has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata # Ensure that objects assert the commonMetadata cModel # klazz.relationships << :has_model => "info:fedora/hydra-cModel:commonMetadata" end end end
Version data entries
5 entries across 5 versions & 1 rubygems