<%= notice %>

Identifier: <%= @entry.identifier %>

Entry ID: <%= @entry.id %>

Type: <%= @entry.factory_class || 'Unknown' %>

<%= render partial: 'raw_metadata'%> <%= render partial: 'parsed_metadata'%> <%= render partial: 'bulkrax/shared/bulkrax_errors', locals: {item: @entry} %>

<% if @importer.present? %> Importer: <%= link_to @importer.name, importer_path(@importer) %> <% elsif @exporter.present? %> Exporter: <%= link_to @exporter.name, exporter_path(@exporter) %> <% end %>

<% if @importer.present? %> <% factory_record = @entry.factory.find %> <% if factory_record.present? && @entry.factory_class %> <%= @entry.factory_class.to_s %> Link: <% if @entry.factory_class.to_s == 'Collection' %> <%= link_to @entry.factory_class.to_s, hyrax.polymorphic_path(factory_record) %> <% else %> <%= link_to @entry.factory_class.to_s, main_app.polymorphic_path(factory_record) %> <% end %> <% else %> Item Link: Item has not yet been imported successfully <% end %> <% else %> <% record = @entry&.hyrax_record %> <% if record.present? && @entry.factory_class %> <%= record.class.to_s %> Link: <% if record.is_a?(Collection) %> <%= link_to record.class.to_s, hyrax.polymorphic_path(record) %> <% else %> <%= link_to record.class.to_s, main_app.polymorphic_path(record) %> <% end %> <% else %> Item Link: No item associated with this entry or class unknown <% end %> <% end %>