Sha256: 8214c4465e67fb38565303f090a6107b6b08340736104e72ac4d673acadf2294
Contents?: true
Size: 1019 Bytes
Versions: 4
Compression:
Stored size: 1019 Bytes
Contents
# GenericContent: EXAMPLE Model that conforms to the Hydra genericContent and genericMetadata cModels require 'deprecation' class GenericContent < ActiveFedora::Base extend Deprecation # Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright # FIXME: should this have "include Hydra::ModelMixins::CommonMetadata" instead? has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata #has_metadata :name => "descMetadata", :type => Hydra::Datastream::ModsGenericContent # A place to put extra metadata values, e.g. the user id of the object depositor (for permissions) has_metadata :name => "properties", :type => Hydra::Datastream::Properties # adds helpful methods for basic hydra objects. # FIXME: redundate with GenericContent include above?? include Hydra::ModelMethods def initialize( attrs={} ) Deprecation.warn(GenericContent, "GenericContent is deprecated and will be removed in hydra-head 5.x") super end end
Version data entries
4 entries across 4 versions & 1 rubygems