Sha256: 43af5744d86073d587338ee35781dcf58e0d68d16254523d292729039c85759e
Contents?: true
Size: 1.12 KB
Versions: 21
Compression:
Stored size: 1.12 KB
Contents
# TODO: Move TO test_support # this model exists largely to exercise the default partials for models that don't have their own # that is, if an (active)fedora object uses the ModsAsset model, then hydra-head will use partials in views/mods_assets to display those objects # however, if an (active)fedora object uses a model without its own partials in the views folder, then hydra-head will use views/catalog/xxx to display those objects. # a Fedora object for the Hypatia SET hydra content type class UsesDefaultPartials < ActiveFedora::Base def initialize ActiveSupport::Deprecation.warn("UsesDefaultPartials is for testing only. It will be moved into test_support") super end #has_metadata :name => "descMetadata", :type => Hydra::Datastream::ModsGenericContent # 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
21 entries across 21 versions & 1 rubygems