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

Version Path
hydra-core-5.0.0.pre12 app/models/mods_asset.rb
hydra-core-5.0.0.pre11 app/models/mods_asset.rb
hydra-core-5.0.0.pre10 app/models/mods_asset.rb
hydra-core-5.0.0.pre9 app/models/mods_asset.rb
hydra-core-5.0.0.pre8 app/models/mods_asset.rb
hydra-core-5.0.0.pre7 app/models/mods_asset.rb
hydra-core-5.0.0.pre6 app/models/mods_asset.rb
hydra-core-5.0.0.pre4 app/models/mods_asset.rb
hydra-core-5.0.0.pre3 app/models/mods_asset.rb
hydra-core-5.0.0.pre2 app/models/mods_asset.rb
hydra-core-5.0.0.pre1 app/models/mods_asset.rb