app/views/bulkrax/importers/show.html.erb in bulkrax-3.0.0.beta3 vs app/views/bulkrax/importers/show.html.erb in bulkrax-3.0.0.beta4
- old
+ new
@@ -95,16 +95,11 @@
</thead>
<tbody>
<% @work_entries.each do |e| %>
<tr>
<td><%= link_to e.identifier, bulkrax.importer_entry_path(@importer.id, e.id) %></td>
- <% if e.parsed_metadata.present? && e.parsed_metadata.dig("collections").present? %>
- <td><%= e.parsed_metadata.dig("collections").map {|c| c['id'] }.join('; ') %></td>
- <% elsif e.raw_metadata.present? %>
- <td><%= Array.wrap(e.raw_metadata.dig("collection")).join(';') %></td>
- <% else %>
- <td></td>
- <% end %>
+ <% collection_titles = e.collection_ids.map {|id| c = Collection.find id; c.title.first } %>
+ <td><%= collection_titles.join('; ') %></td>
<td><%= e.id %></td>
<% if e.status == "Complete" %>
<td><span class="glyphicon glyphicon-ok" style="color: green;"></span> <%= e.status %></td>
<% elsif e.status == "Pending" %>
<td><span class="glyphicon glyphicon-option-horizontal" style="color: blue;"></span> <%= e.status %></td>