Class: Hyrax::Forms::CollectionForm

Inherits:
Object
  • Object
show all
Includes:
HydraEditor::Form
Defined in:
app/forms/hyrax/forms/collection_form.rb

Direct Known Subclasses

AdminSetForm

Instance Method Summary collapse

Instance Method Details

#primary_termsObject



28
29
30
# File 'app/forms/hyrax/forms/collection_form.rb', line 28

def primary_terms
  [:title]
end

#secondary_termsObject



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_filesHash

Returns All FileSets in the collection, file.to_s is the key, file.id is the value.

Returns:

  • (Hash)

    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