Class: Hyrax::Forms::CollectionForm
- Inherits:
-
Object
- Object
- Hyrax::Forms::CollectionForm
- Includes:
- HydraEditor::Form
- Defined in:
- app/forms/hyrax/forms/collection_form.rb
Direct Known Subclasses
Instance Method Summary collapse
- #primary_terms ⇒ Object
- #secondary_terms ⇒ Object
-
#select_files ⇒ Hash
All FileSets in the collection, file.to_s is the key, file.id is the value.
Instance Method Details
#primary_terms ⇒ Object
28 29 30 |
# File 'app/forms/hyrax/forms/collection_form.rb', line 28 def primary_terms [:title] end |
#secondary_terms ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'app/forms/hyrax/forms/collection_form.rb', line 32 def secondary_terms [:creator, :contributor, :description, :keyword, :rights, :publisher, :date_created, :subject, :language, :identifier, :based_near, :related_url, :resource_type] end |
#select_files ⇒ Hash
Returns All FileSets in the collection, file.to_s is the key, file.id is the value.
24 25 26 |
# File 'app/forms/hyrax/forms/collection_form.rb', line 24 def select_files Hash[all_files] end |