Sha256: c1f3f8e0036c0ec23b3cc3f3821098165f62c46481ce833f39fa2b022b08aeef
Contents?: true
Size: 986 Bytes
Versions: 7
Compression:
Stored size: 986 Bytes
Contents
# An EXAMPLE 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::Datastream::RightsMetadata # basically, it is another expression of # has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata include Hydra::ModelMixins::CommonMetadata ## Convenience methods for manipulating the rights metadata datastream include Hydra::ModelMixins::RightsMetadata # declares a descMetadata datastream with type Hydra::Datastream::ModsArticle # basically, it is another expression of # has_metadata :name => "descMetadata", :type => Hydra::Datastream::ModsArticle include Hydra::ModelMixins::ModsObject # adds helpful methods for basic hydra objects include Hydra::ModelMethods # adds file_objects methods include ActiveFedora::FileManagement end
Version data entries
7 entries across 7 versions & 2 rubygems