Sha256: cdde6495acedd1f478c8692dcee77d219decb5a4575aac35395657214486aaec
Contents?: true
Size: 965 Bytes
Versions: 4
Compression:
Stored size: 965 Bytes
Contents
# @deprecated This is intended as a model used for testing (to cover all views). This will be removed no later than 6.x # EXAMPLE of a basic model that conforms to Hydra commonMetadata cModel and has basic MODS metadata (currently "Article" is the MODS exemplar) class CommonMetadataAsset < ActiveFedora::Base def initialize ActiveSupport::Deprecation.warn("CommonMetadataAsset is deprecated and will be removed from HydraHead in release 5 or 6; this exemplar code has been moved into wiki documentation here: https://github.com/projecthydra/hydra-head/wiki/Models---Some-Examples") super end # 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 # adds helpful methods for basic hydra objects include Hydra::ModelMethods end
Version data entries
4 entries across 4 versions & 1 rubygems