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

Version Path
hydra-core-6.0.0.pre8 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.4.0 lib/hydra/model_mixins/common_metadata.rb
hydra-core-6.0.0.pre7 lib/hydra/model_mixins/common_metadata.rb
hydra-core-6.0.0.pre6 lib/hydra/model_mixins/common_metadata.rb
hydra-core-6.0.0.pre5 lib/hydra/model_mixins/common_metadata.rb
hydra-core-6.0.0.pre4 lib/hydra/model_mixins/common_metadata.rb
hydra-core-6.0.0.pre3 lib/hydra/model_mixins/common_metadata.rb
hydra-core-6.0.0.pre2 lib/hydra/model_mixins/common_metadata.rb
hydra-core-6.0.0.pre1 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.4.0.pre1 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.3.0 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.2.0 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.1.0 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.0.1 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.0.0 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.0.0.rc1 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.0.0.pre15 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.0.0.pre14 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.0.0.pre13 lib/hydra/model_mixins/common_metadata.rb
hydra-core-5.0.0.pre12 lib/hydra/model_mixins/common_metadata.rb