UNC-Libraries/hy-c

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

Summary

Maintainability
Test Coverage
<%= presenter.attribute_to_html(:alternative_title, html_dl: true, label: 'Alternate title') %>
<%= 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(:translator_display, label: 'Translator', render_as: :person, html_dl: true) %>
<%= presenter.attribute_to_html(:abstract, html_dl: true) %>
<%= presenter.attribute_to_html(:description, html_dl: true) %>
<%= presenter.attribute_to_html(:table_of_contents, 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(:identifier, html_dl: true) %>
<%= 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(:note, html_dl: true) %>
<%= presenter.attribute_to_html(:conference_name, html_dl: true) %>
<%= presenter.attribute_to_html(:advisor_display, label: 'Advisor', render_as: :person, html_dl: true) %>
<%= presenter.attribute_to_html(:reviewer_display, label: 'Reviewer', render_as: :person, html_dl: true) %>
<%= presenter.attribute_to_html(:degree, html_dl: true) %>
<%= presenter.attribute_to_html(:academic_concentration, html_dl: true) %>
<%= presenter.attribute_to_html(:award, html_dl: true, label: 'Honors level') %>
<%= presenter.attribute_to_html(:degree_granting_institution, html_dl: true) %>
<%= presenter.attribute_to_html(:graduation_year, html_dl: true) %>
<%= presenter.attribute_to_html(:journal_title, html_dl: true) %>
<%= presenter.attribute_to_html(:journal_volume, html_dl: true) %>
<%= presenter.attribute_to_html(:journal_issue, html_dl: true) %>
<%= presenter.attribute_to_html(:page_start, html_dl: true) %>
<%= presenter.attribute_to_html(:page_end, html_dl: true) %>
<%= presenter.attribute_to_html(:edition, html_dl: true, label: "Version") %>
<%= presenter.attribute_to_html(:peer_review_status, html_dl: true, label: "Is the article or chapter peer-reviewed?") %>
<%= presenter.attribute_to_html(:series, html_dl: true) %>
<%= presenter.attribute_to_html(:publisher, html_dl: true) %>
<%= presenter.attribute_to_html(:place_of_publication, html_dl: true) %>
<%= presenter.attribute_to_html(:isbn, html_dl: true, label: "ISBN") %>
<%= presenter.attribute_to_html(:issn, html_dl: true, label: "ISSN") %>
<%= 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(:arranger_display, label: 'Arranger', render_as: :person, html_dl: true) %>
<%= presenter.attribute_to_html(:composer_display, label: 'Composer', render_as: :person, 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(:bibliographic_citation, html_dl: true) %>
<%= presenter.attribute_to_html(:medium, html_dl: true) %>
<%= presenter.attribute_to_html(:extent, html_dl: true) %>
<%= presenter.attribute_to_html(:copyright_date, html_dl: true) %>
<%= presenter.attribute_to_html(:date_captured, render_as: :date, html_dl: true, label: "Date captured") %>
<%= presenter.attribute_to_html(:date_other, render_as: :date, html_dl: true) %>
<%= presenter.attribute_to_html(:digital_collection, 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 %>