UNC-Libraries/hy-c

View on GitHub
app/views/hyrax/data_sets/_attribute_rows.html.erb

Summary

Maintainability
Test Coverage
<%= presenter.attribute_to_html(:last_modified_date, render_as: :date, html_dl: true) %>
<%= presenter.attribute_to_html(:creator_display, label: 'Creator', render_as: :person, html_dl: true) %>
<%= presenter.attribute_to_html(:contributor_display, label: 'Contributor', render_as: :person, html_dl: true) %>
<%= presenter.attribute_to_html(:abstract, html_dl: true) %>
<%= presenter.attribute_to_html(:methodology, html_dl: true) %>
<%= presenter.attribute_to_html(:date_issued, html_dl: true, label: "Date of publication") %>
<%= presenter.attribute_to_html(:keyword, render_as: :faceted, html_dl: true) %>
<%= presenter.attribute_to_html(:subject, render_as: :faceted, html_dl: true) %>
<%= presenter.attribute_to_html(:doi, html_dl: true, label: "DOI") %>
<%= presenter.attribute_to_html(:kind_of_data, html_dl: true) %>
<%= presenter.attribute_to_html(:related_url, html_dl: true, label: "Related resource URL") %>
<%= presenter.attribute_to_html(:resource_type, html_dl: true) %>
<%= presenter.attribute_to_html(:rights_statement_label, label: 'Rights statement', html_dl: true) %>
<%= presenter.attribute_to_html(:rights_holder, html_dl: true) %>
<%= presenter.attribute_to_html(:license_label, label: 'License', html_dl: true) %>
<%= presenter.attribute_to_html(:funder, html_dl: true) %>
<%= presenter.attribute_to_html(:project_director_display, label: 'Project director', render_as: :person, html_dl: true) %>
<%= presenter.attribute_to_html(:researcher_display, label: 'Researcher', render_as: :person, html_dl: true) %>
<%= presenter.attribute_to_html(:sponsor, html_dl: true) %>
<%= presenter.attribute_to_html(:copyright_date, html_dl: true) %>
<%= presenter.attribute_to_html(:language_label, label: 'Language', html_dl: true) %>
<%= presenter.attribute_to_html(:based_near_label, html_dl: true, label: "Location") %>
<%= presenter.attribute_to_html(:extent, html_dl: true) %>
<%= presenter.attribute_to_html(:note, html_dl: true) %>
<%= presenter.attribute_to_html(:access_right, html_dl: true) %>
<%= presenter.attribute_to_html(:rights_notes, html_dl: true) %>
<% if presenter.date_created %>
  <%= presenter.attribute_to_html(:date_created, html_dl: true, label: "Date uploaded") %>
<% else %>
  <%= presenter.attribute_to_html(:date_uploaded, html_dl: true, label: "Date uploaded") %>
<% end %>
<% if current_user&.admin? %>
  <%= presenter.attribute_to_html(:admin_note, html_dl: true) %>
<% end %>