Sha256: 6758b68d448e86279f47e6a4667b468f24d944eaf650c6a4d62c77a8741f082a

Contents?: true

Size: 808 Bytes

Versions: 1

Compression:

Stored size: 808 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

  # adds file_objects methods
  include ActiveFedora::FileManagement

  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hydra-head-4.0.0.rc2 app/models/mods_asset.rb