<%= notice %>

Exporter: <%= @exporter.name %>

<% if File.exist?(@exporter.exporter_export_zip_path) %> <%= simple_form_for @exporter, method: :get, url: exporter_download_path(@exporter), html: { class: 'form-inline bulkrax-p-align' } do |form| %> Download: <%= render 'downloads', exporter: @exporter, form: form %> <%= form.button :submit, value: 'Download', data: { disable_with: false } %> <% end %> <% end %>

<%= t('bulkrax.exporter.labels.name') %>: <%= @exporter.name %>

<%= t('bulkrax.exporter.labels.user') %>: <%= @exporter.user %>

<%= t('bulkrax.exporter.labels.export_type') %>: <%= @exporter.export_type %>

<%= t('bulkrax.exporter.labels.export_from') %>: <%= @exporter.export_from %>

<%= t('bulkrax.exporter.labels.export_source') %>: <% case @exporter.export_from %> <% when 'collection' %> <% collection = Bulkrax.object_factory.find_or_nil(@exporter.export_source) %> <% id = collection&.id || @exporter.export_source %> <% title = collection&.title&.first || @exporter.export_source %> <%= link_to title, hyrax.dashboard_collection_path(id) %> <% when 'importer' %> <% importer = Bulkrax::Importer.find(@exporter.export_source) %> <%= link_to importer.name, bulkrax.importer_path(importer.id) %> <% when 'worktype' %> <%= @exporter.export_source %> <% end %>

<%= t('bulkrax.exporter.labels.parser_klass') %>: <%= @exporter.parser_klass %>

<%= t('bulkrax.exporter.labels.limit') %>: <%= @exporter.limit %>

<%= t('bulkrax.exporter.labels.generated_metadata') %>: <%= @exporter.generated_metadata %>

<%= t('bulkrax.exporter.labels.include_thumbnails') %>: <%= @exporter.include_thumbnails %>

<%= render partial: 'bulkrax/shared/bulkrax_errors', locals: {item: @exporter} %> <%= render partial: 'bulkrax/shared/bulkrax_field_mapping', locals: {item: @exporter} %> <%# Currently, no parser-specific fields exist on Exporter, thus there's no real reason to always show this field %> <% if @exporter.parser_fields.present? %>

<%= t('bulkrax.exporter.labels.parser_fields') %>:
<% @exporter.parser_fields.each do |k, v| %> <%= k %>: <%= v %>
<% end %>

<% end %>

<%= t('bulkrax.exporter.labels.field_mapping') %>:

Total Entries: <%= @exporter.last_run&.total_work_entries %>


<%= render partial: 'bulkrax/shared/entries_tab', locals: { item: @exporter } %>

<%= link_to 'Edit', edit_exporter_path(@exporter) %> | <%= link_to 'Back', exporters_path %>