Sha256: 501ad5e705b4d89b37b7d285c03196892230ad61aba151fc55f4aa432c7044a2
Contents?: true
Size: 737 Bytes
Versions: 7
Compression:
Stored size: 737 Bytes
Contents
# A Basic Model for Assets that conform to Hydra commonMetadata cModel and have basic MODS metadata (currently "Article" is the MODS exemplar) class ModsAsset < ActiveFedora::Base # declares a rightsMetadata datastream with type Hydra::RightsMetadata # basically, it is another expression of # has_metadata :name => "rightsMetadata", :type => Hydra::RightsMetadata include Hydra::ModelMixins::CommonMetadata # declares a descMetadata datastream with type Hydra::ModsArticle # basically, it is another expression of # has_metadata :name => "descMetadata", :type => Hydra::ModsArticle include Hydra::ModelMixins::ModsObject # adds helpful methods for basic hydra objects include Hydra::ModelMethods end
Version data entries
7 entries across 7 versions & 1 rubygems