Skip to content

Commit

Permalink
Puts contributors in separate tbody.
Browse files Browse the repository at this point in the history
closes #857
  • Loading branch information
justinlittman committed Dec 6, 2023
1 parent ca8b546 commit ccfaba2
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions app/views/purl/_mods_contributors.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,23 @@
<%= render SectionComponent.new(label: 'Creators/Contributors', label_id: label_id) do %>
<%= render TableComponent.new(label_id: label_id) do %>
<% fields.each do |field| %>
<%= mods_record_row_field(field, delimiter: nil) do |name| %>
<% capture do %>
<%= name.name %>
</td><td>
<% if name.orcid.present? %>
<span class="orcid">
<% orcid_url = "https://orcid.org/#{name.orcid}" %>
<a href="<%= orcid_url %>" aria-label="view ORCID page for <%= name.name %>">
<img alt="ORCiD icon" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="16" height="16" />
<%= orcid_url %>
</a> (unverified)
</span>
<tbody>
<%= mods_record_row_field(field, delimiter: nil) do |name| %>
<% capture do %>
<%= name.name %>
</td><td>
<% if name.orcid.present? %>
<span class="orcid">
<% orcid_url = "https://orcid.org/#{name.orcid}" %>
<a href="<%= orcid_url %>" aria-label="view ORCID page for <%= name.name %>">
<img alt="ORCiD icon" src="https://info.orcid.org/wp-content/uploads/2019/11/orcid_16x16.png" width="16" height="16" />
<%= orcid_url %>
</a> (unverified)
</span>
<% end %>
<% end %>
<% end %>
<% end %>
</tbody>
<% end %>
<% end %>
<% end %>
Expand Down

0 comments on commit ccfaba2

Please sign in to comment.