<% if exporter.errors.any? %>
<%= pluralize(exporter.errors.count, "error") %> prohibited this exporter from being saved:
<% exporter.errors.full_messages.each do |message| %>
- <%= message %>
<% end %>
<% end %>
<%= form.input :name, label: t('bulkrax.exporter.labels.name'), input_html: { class: 'form-control' } %>
<%= form.hidden_field :user_id, value: current_user.id %>
<%= form.input :export_type,
collection: form.object.export_type_list,
label: t('bulkrax.exporter.labels.export_type'),
required: true,
prompt: 'Please select an export type',
input_html: { class: 'form-control' } %>
<%= form.input :export_from,
collection: form.object.export_from_list,
label: t('bulkrax.exporter.labels.export_from'),
required: true,
prompt: 'Please select an export source',
input_html: { class: 'form-control' } %>
<%= form.input :export_source_importer,
label: t('bulkrax.exporter.labels.importer'),
required: true,
prompt: 'Select from the list',
label_html: { class: 'importer export-source-option d-none' },
input_html: { class: 'importer export-source-option d-none form-control' },
collection: form.object.importers_list.sort %>
<%= form.input :export_source_collection,
prompt: 'Start typing ...',
label: t('bulkrax.exporter.labels.collection'),
required: true,
placeholder: @collection&.title&.first,
label_html: { class: 'collection export-source-option d-none' },
input_html: {
class: 'collection export-source-option d-none form-control',
data: {
'autocomplete-url' => '/authorities/search/collections',
'autocomplete' => 'collection'
}
}
%>
<%= form.input :export_source_worktype,
label: t('bulkrax.exporter.labels.worktype'),
required: true,
prompt: 'Select from the list',
label_html: { class: 'worktype export-source-option d-none' },
input_html: { class: 'worktype export-source-option d-none form-control' },
collection: Bulkrax.curation_concerns.map { |cc| [cc.to_s, cc.to_s] } %>
<%= form.input :limit,
as: :integer,
hint: 'leave blank or 0 for all records',
label: t('bulkrax.exporter.labels.limit'),
input_html: { class: 'form-control' } %>
<%= form.input :generated_metadata?,
as: :boolean,
label: t('bulkrax.exporter.labels.generated_metadata'),
hint: t('bulkrax.exporter.hints.generated_metadata') %>
<%= form.input :include_thumbnails?,
as: :boolean,
label: t('bulkrax.exporter.labels.include_thumbnails'),
hint: t('bulkrax.exporter.hints.include_thumbnails') %>
<%= form.input :date_filter,
as: :boolean,
label: t('bulkrax.exporter.labels.filter_by_date') %>
<%= form.input :start_date,
as: :date,
label: t('bulkrax.exporter.labels.start_date'),
input_html: { class: 'form-control' } %>
<%= form.input :finish_date,
as: :date,
label: t('bulkrax.exporter.labels.finish_date'),
input_html: { class: 'form-control' } %>
<% if defined?(::Hyrax) %>
<%= form.input :work_visibility,
collection: form.object.work_visibility_list,
label: t('bulkrax.exporter.labels.visibility'),
input_html: { class: 'form-control' } %>
<% end %>
<% if defined?(::Hyrax) %>
<%= form.input :workflow_status,
collection: form.object.workflow_status_list,
label: t('bulkrax.exporter.labels.status'),
input_html: { class: 'form-control' } %>
<% end %>
<%= form.input :parser_klass,
collection: Bulkrax.parsers.map {|p| [p[:name], p[:class_name], {'data-partial' => p[:partial]}] if p[:class_name].constantize.export_supported? }.compact,
label: t('bulkrax.exporter.labels.export_format'),
input_html: { class: 'form-control' } %>
<%# Find definitions for the functions called in this script in
app/assets/javascripts/bulkrax/exporters.js %>