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

Version Path
hydra-file-access-5.4.1 app/models/uses_default_partials.rb
hydra-file-access-5.4.0.pre1 app/models/uses_default_partials.rb
hydra-file-access-5.3.0 app/models/uses_default_partials.rb
hydra-file-access-5.1.0 app/models/uses_default_partials.rb
hydra-file-access-5.0.1 app/models/uses_default_partials.rb
hydra-file-access-5.0.0 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.rc1 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre15 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre14 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre13 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre12 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre11 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre10 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre9 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre8 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre7 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre6 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre4 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre3 app/models/uses_default_partials.rb
hydra-file-access-5.0.0.pre2 app/models/uses_default_partials.rb