Sha256: 672f4661ef502746c05db4a482d1c893843b3856650f2bd4383f23e1fc7b8afd

Contents?: true

Size: 564 Bytes

Versions: 29

Compression:

Stored size: 564 Bytes

Contents

# Include this into models to specify that the descMetadata datastream contains basic MODS metadata
# 
# Explicitly declares:
#   descMetadata datastream using Hydra::ModsArticle Terminology
#
module Hydra::ModelMixins::ModsObject
  
  def self.included(klazz)
    # Uses the Hydra MODS Basic profile for tracking descriptive metadata
    klazz.has_metadata :name => "descMetadata", :type => Hydra::ModsArticle
    
    # Ensure that objects assert the modsObject cModel
    # klazz.relationships << :has_model => "info:fedora/hydra-cModel:modsObject"
  end
  
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
hydra-head-4.0.0.rc2 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.3.0 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.2.2 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.2.1 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.2.0 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.2.0.pre3 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.2.0.pre2 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.2.0.pre1 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.5 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.4 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.3 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.2 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.1 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.0 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.0.rc2 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.0.rc1 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.0.pre5 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.0.pre4 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.1.0.pre3 lib/hydra/model_mixins/mods_object.rb
hydra-head-3.0.1 lib/hydra/model_mixins/mods_object.rb