Sha256: 35021977872912f5af423f9efb6e92f4894e960d7f4db40c6440066a0d608a0e

Contents?: true

Size: 1.12 KB

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
hydra-head-4.1.3 app/models/uses_default_partials.rb
hydra-head-4.1.2 app/models/uses_default_partials.rb
hydra-head-4.1.1 app/models/uses_default_partials.rb
hydra-head-4.1.0 app/models/uses_default_partials.rb
hydra-head-4.0.3 app/models/uses_default_partials.rb
hydra-head-4.0.2 app/models/uses_default_partials.rb