Sha256: 9bfe88da16ba234047609b76a3a56898cc239b959fb4094b591bdf8eb930d056
Contents?: true
Size: 1.22 KB
Versions: 57
Compression:
Stored size: 1.22 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) # # will move to lib/hydra/model/common_metadata_behavior in release 5.x 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
57 entries across 57 versions & 2 rubygems