app/views/bulkrax/exporters/show.html.erb in bulkrax-3.3.2 vs app/views/bulkrax/exporters/show.html.erb in bulkrax-3.4.0
- old
+ new
@@ -38,9 +38,14 @@
<strong><%= t('bulkrax.exporter.labels.export_source') %>:</strong>
<% case @exporter.export_from %>
<% when 'collection' %>
<% collection = Collection.find(@exporter.export_source) %>
<%= link_to collection&.title&.first, hyrax.dashboard_collection_path(collection.id) %>
+ <% when 'collections metadata' %>
+ <% collections = Collection.all %>
+ <% collections.each_with_index do |c, i| %>
+ <%= link_to c&.title&.first, hyrax.dashboard_collection_path(c.id) %><%= ',' if i != collections.count - 1 %>
+ <% end %>
<% when 'importer' %>
<% importer = Bulkrax::Importer.find(@exporter.export_source) %>
<%= link_to importer.name, bulkrax.importer_path(importer.id) %>
<% when 'worktype' %>
<%= @exporter.export_source %>