Sha256: 802fede258f79a6be692984cbe8747767c0992fc756ed2d02d0296c7e756dcef
Contents?: true
Size: 856 Bytes
Versions: 5
Compression:
Stored size: 856 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::Datastream::RightsMetadata # basically, it is another expression of # has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata include Hydra::ModelMixins::CommonMetadata # 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
5 entries across 5 versions & 1 rubygems