Sha256: cd5ec42bc839013ba5206b3e9b3085318c31968c70249852accfbe23a7bb1aaf

Contents?: true

Size: 647 Bytes

Versions: 3

Compression:

Stored size: 647 Bytes

Contents

# Generated via
#  `rails generate hyrax:work NewspaperPage`
module Hyrax
  # Newspaper Page Form Class
  class NewspaperPageForm < Hyrax::Forms::WorkForm
    self.model_class = ::NewspaperPage
    self.terms += [:height, :width, :resource_type, :text_direction,
                   :page_number, :section]
    self.terms -= [:creator, :keyword, :rights_statement, :contributor,
                   :description, :license, :subject, :date_created, :subject,
                   :language, :based_near, :related_url, :source,
                   :resource_type, :publisher]
    self.required_fields -= [:creator, :keyword, :rights_statement]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
newspaper_works-1.0.1 app/forms/hyrax/newspaper_page_form.rb
newspaper_works-1.0.0 app/forms/hyrax/newspaper_page_form.rb
newspaper_works-0.1.0 app/forms/hyrax/newspaper_page_form.rb