Sha256: 47bcbb2fee76d59288a2a64369c95389c2c8dfd9559a92cf2cfc4d8de3b767ce

Contents?: true

Size: 736 Bytes

Versions: 18

Compression:

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

18 entries across 18 versions & 1 rubygems

Version Path
hydra-head-3.1.5 app/models/mods_asset.rb
hydra-head-3.1.4 app/models/mods_asset.rb
hydra-head-3.1.3 app/models/mods_asset.rb
hydra-head-3.1.2 app/models/mods_asset.rb
hydra-head-3.1.1 app/models/mods_asset.rb
hydra-head-3.1.0 app/models/mods_asset.rb
hydra-head-3.1.0.rc2 app/models/mods_asset.rb
hydra-head-3.1.0.rc1 app/models/mods_asset.rb
hydra-head-3.1.0.pre5 app/models/mods_asset.rb
hydra-head-3.1.0.pre4 app/models/mods_asset.rb
hydra-head-3.1.0.pre3 app/models/mods_asset.rb
hydra-head-3.0.1 app/models/mods_asset.rb
hydra-head-3.1.0.pre2 app/models/mods_asset.rb
hydra-head-3.0.0 app/models/mods_asset.rb
hydra-head-3.1.0.pre1 app/models/mods_asset.rb
hydra-head-3.0.0.rc2 app/models/mods_asset.rb
hydra-head-3.0.0.rc1 app/models/mods_asset.rb
hydra-head-3.0.0pre4 app/models/mods_asset.rb