Sha256: 57583059e89cecb658ab8aed514d506f14631f3adaed924ba08863fcf6c24f33

Contents?: true

Size: 1.75 KB

Versions: 14

Compression:

Stored size: 1.75 KB

Contents

# frozen_string_literal: true

# Generated via
#  `rails generate hyrax:collection_resource <%= class_name %>`
class <%= class_name %> < Hyrax::PcdmCollection
  # @note Do not directly update `basic_metadata.yaml`.  It is also used by works.
  #
  # To change metadata for collections
  # * extend by adding fields to `/config/metadata/<%= file_name %>.yaml`
  # * remove all basic metadata
  #   * if you generated `with_basic_metadata` and now don't want any basic metadata,
  #       comment out or delete the schema include statement for `:basic_metadata`
  #   * update form and indexer classes to also remove the `:basic_metadata` schema include
  # * remove some basic metadata
  #   * comment out or delete the schema include statement for `:basic_metadata`
  #   * update form and indexer classes to also remove the `:basic_metadata` schema include
  #   * copy fields you want to keep from `/config/metadata/basic_metadata.yaml`
  #       to `/config/metadata/<%= file_name %>.yaml`
  # * override some basic metadata
  #   * fields are not allowed to repeat, so to override any basic metadata, you
  #       must first comment out or delete the schema include statement for `:basic_metadata`
  #   * update form and indexer classes to also remove the `:basic_metadata` schema include
  #   * copy all fields you want to keep unchanged or to override from `/config/metadata/basic_metadata.yaml`
  #       to `/config/metadata/<%= file_name %>.yaml`
  #   * update them in `config/metadata/<%= file_name %>.yaml to have the desired
  #       characteristics
  #
  # Alternative:
  # * comment out or delete schema include statements
  # * add Valkyrie attributes to this class
  # * update form and indexer to process the attributes
  #
  include Hyrax::Schema(:<%= file_name %>)
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
hyrax-5.0.1 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-5.0.0 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-5.0.0.rc3 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-5.0.0.rc2 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-5.0.0.rc1 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-3.6.0 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-4.0.0 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-4.0.0.rc3 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-4.0.0.rc2 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-4.0.0.rc1 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-3.5.0 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-4.0.0.beta2 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-3.4.2 lib/generators/hyrax/collection_resource/templates/collection.rb.erb
hyrax-4.0.0.beta1 lib/generators/hyrax/collection_resource/templates/collection.rb.erb