Skip to content

Commit

Permalink
do not display depositing org for dataset, fixes gh-64
Browse files Browse the repository at this point in the history
  • Loading branch information
stkenny committed Dec 2, 2024
1 parent 321f5a8 commit 62a2803
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
10 changes: 6 additions & 4 deletions app/views/shared/_browse_view_grid_collection.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@
<h3><%= document[:title_tesim][0] %></h3>
<% if document.root_collection? %>
<p class="dri_publishing_institute">
<% if document.key?('depositing_institute_ssi') %>
<%= document['depositing_institute_ssi'] %>
<% else %>
<%= t('dri.views.collection.depositing_organisation_not_set') %>
<% unless document.dataset? %>
<% if document.key?('depositing_institute_ssi') %>
<%= document['depositing_institute_ssi'] %>
<% else %>
<%= t('dri.views.collection.depositing_organisation_not_set') %>
<% end %>
<% end %>
</p>
<% else %>
Expand Down
10 changes: 6 additions & 4 deletions app/views/shared/_browse_view_list_collection.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
</p>
<% end %>
<p class="dri_publishing_institute">
<% if document.key?('depositing_institute_ssi') %>
<%= document['depositing_institute_ssi'] %>
<% else %>
Depositing Organisation not Set
<% unless document.dataset? %>
<% if document.key?('depositing_institute_ssi') %>
<%= document['depositing_institute_ssi'] %>
<% else %>
Depositing Organisation not Set
<% end %>
<% end %>
</p>
<%# If ROOT COLLECTION %>
Expand Down

0 comments on commit 62a2803

Please sign in to comment.