app/views/admin/research/publications/static.html.erb
---
<%= render 'admin/application/static/core', about: @about %>
<%= render 'admin/application/static/breadcrumbs', about: @about %>
<%= render 'admin/application/static/design',
about: @about,
full_width: true,
toc_offcanvas: false,
toc_present: false %>
hal:
docid: "<%= @about.hal_docid %>"
url: "<%= @about.hal_url %>"
abstract: >-
<%= prepare_html_for_static @about.abstract %>
journal_title: >-
<%= prepare_text_for_static @about.journal_title %>
citation_full: >-
<%= prepare_html_for_static @about.citation_full %>
authors_list: >-
<%= prepare_html_for_static @about.authors_list %>
ref: >-
<%= sanitize @about.ref %>
links:
- label: "HAL"
url: "<%= @about.hal_url %>"
- label: "DOI"
url: "<%= @about.doi_url %>"
- label: "URL"
url: "<%= @about.url %>"
- label: "PDF"
url: "<%= @about.file %>"
researchers:
<% @about.researchers.in_university(@website.university).each do |researcher| %>
<%
researcher_l10n = researcher.localization_for(@website.default_language)
next if researcher_l10n.nil?
%>
- <%= researcher_l10n.slug %>
<% end %>
citations:
<%
Citations::FORMATS.each do |format|
citation = @about.public_send("citation_#{format}")
next if (@website.default_language.iso_code == "fr" && format == 'iso690')
%>
- label: "<%= t("research.citations.#{format}.label") %>"
format: "<%= format %>"
content: >-
<%= prepare_html_for_static citation %>
<% end if @about.hal? %>
---