Sha256: 29a5f044aa4a8a6b65d1e73bb8c05568861cf55519a77d6870f3e47b10926104

Contents?: true

Size: 1.91 KB

Versions: 7

Compression:

Stored size: 1.91 KB

Contents

<div class='csv_fields'>

  <%= fi.input :visibility,
    collection: [
      ['Public', 'open'],
      ['Private', 'restricted'],
      ['Institution', 'authenticated']
    ],
    selected: importer.parser_fields['visibility'] || 'open',
    input_html: { class: 'form-control' }
  %>

  <% if defined?(::Hyrax) %>
    <% rights_statements = Hyrax.config.rights_statement_service_class.new %>
    <%= fi.input :rights_statement,
          collection: rights_statements.select_active_options,
          selected: importer.parser_fields['rights_statement'],
          include_blank: true,
          item_helper: rights_statements.method(:include_current_value),
          input_html: { class: 'form-control' },
          required: false
          %>
    <%= fi.input :override_rights_statement, as: :boolean, hint: 'If checked, always use the selected rights statment. If unchecked, use rights or rights_statement from the record and only use the provided value if dc:rights is blank.', input_html: { checked: (importer.parser_fields['override_rights_statement'] == "1") } %>
  <% end %>
  <h4>Add CSV File to Import:</h4>
  <%# accept a single file upload; data files and bags will need to be added another way %>

  <%= fi.input :file_style, collection: ['Upload a File', 'Specify a Path on the Server'], as: :radio_buttons, label: false %>
  <div id='file_upload'>
    <%= fi.input 'file', as: :file, input_html: { accept: 'text/csv,application/zip' } %><br />
  </div>
  <div id='file_path'>
    <%= fi.input :import_file_path, as: :string, input_html: { value: importer.parser_fields['import_file_path'] } %>
  </div>
  <% if defined?(::Hyrax) && Hyrax.config.browse_everything? %>
	  <h4>Add Files to Import:</h4>
	  <p>Choose files to upload. The filenames must be unique, and the filenames must be referenced in a column called 'file' in the accompanying CSV file.</p>
    <%= render 'browse_everything', form: form %>
  <% end %>
  <br />
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bulkrax-5.5.1 app/views/bulkrax/importers/_csv_fields.html.erb
bulkrax-5.4.2 app/views/bulkrax/importers/_csv_fields.html.erb
bulkrax-6.0.1 app/views/bulkrax/importers/_csv_fields.html.erb
bulkrax-6.0.0 app/views/bulkrax/importers/_csv_fields.html.erb
bulkrax-5.5.0 app/views/bulkrax/importers/_csv_fields.html.erb
bulkrax-5.4.1 app/views/bulkrax/importers/_csv_fields.html.erb
bulkrax-5.4.0 app/views/bulkrax/importers/_csv_fields.html.erb