Sha256: a13fbc3feb37eb9e4c4fbead2efb8d55e791baafa62b90a073ce326514b66672
Contents?: true
Size: 1003 Bytes
Versions: 11
Compression:
Stored size: 1003 Bytes
Contents
require 'hydra' # 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
11 entries across 11 versions & 1 rubygems