noesya/osuny

View on GitHub
app/views/admin/research/journals/papers/static.html.erb

Summary

Maintainability
Test Coverage
<%
paper = @l10n.about
language = @l10n.language
%>---
<%= render 'admin/application/static/core', about: @l10n %>
<%= render 'admin/application/static/breadcrumbs', about: @l10n %>
<%= render 'admin/application/static/design',
            about: paper,
            l10n: @l10n,
            full_width: false,
            toc_offcanvas: false %>
<% if paper.kind %>
paper_kind: "<%= prepare_text_for_static paper.kind %>"
<% end %>
<% if @l10n.volume_l10n %>
volumes:
  - "<%= @l10n.volume_l10n.relative_path %>"
<% end %>
weight: <%= paper.position %>
date: "<%= @l10n.published_at&.to_date&.iso8601 %>"
dates:
  published: "<%= @l10n.published_at&.to_date&.iso8601 %>"
  accepted: "<%= paper.accepted_at&.to_date&.iso8601 %>"
  received: "<%= paper.received_at&.to_date&.iso8601 %>"
<% if @l10n.pdf.attached? %>
pdf: "<%= @l10n.pdf.blob_id %>"
<% end %>
keywords: >-
  <%= prepare_text_for_static @l10n.keywords %>
researchers:
<% @l10n.people_l10n.each do |person_l10n| %>
  - "<%= person_l10n.slug %>"
<% end %>
authors_list: "<%= prepare_text_for_static @l10n.authors_list %>"
<%= render 'admin/application/meta_description/static', about: @l10n %>
<%= render 'admin/application/summary/static', about: @l10n %>
abstract: >-
  <%= prepare_text_for_static @l10n.abstract %>
citations:
  - label: "APA"
    content: >-
      <%= prepare_html_for_static @l10n.citation_apa(website: @website) %>
  - label: "MLA"
    content: >-
      <%= prepare_html_for_static @l10n.citation_mla(website: @website) %>
  - label: "Chicago"
    content: >-
      <%= prepare_html_for_static @l10n.citation_chicago(website: @website) %>
  - label: "Harvard"
    content: >-
      <%= prepare_html_for_static @l10n.citation_harvard(website: @website) %>
<% if language.iso_code == "fr" %>
  - label: "ISO 690"
    content: >-
      <%= prepare_html_for_static @l10n.citation_iso690(website: @website) %>
<% end %>
<%= render 'admin/communication/contents/static', about: @l10n %>
---