Skip to content

Commit

Permalink
fix DIGREPO-805
Browse files Browse the repository at this point in the history
  • Loading branch information
dunn committed Sep 1, 2017
1 parent e77c291 commit a1bdbe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/catalog/_file_sets_list.html.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<% if document.file_sets.present? %>
<% if document.file_sets.present? && document.file_sets.any? { |fs| fs["original_filename_ss"].present? } %>
<% if can?(:read, document) %>
<%= render 'files', document: document %>
<% else %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_files.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</tr>
</thead>
<tbody>
<% files = document.file_sets %>
<% files = document.file_sets.select { |fs| fs["original_filename_ss"].present? } %>

<% # FIXME: right now we're assuming the first file is the ETD. Once we upgrade to RDF there may not be guaranteed ordering. %>
<% file_set = files.shift %>
Expand Down

0 comments on commit a1bdbe3

Please sign in to comment.