Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 15 additions & 23 deletions src/themes/clean/templates/elements/journal/citation_modals.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ <h2 class="modal-title" id="HarvardModalLabel">{% trans 'Harvard-style Citation'
</div>
<div class="modal-body">
<p>
<span id="harvard-cite">
<ul class="list-inline comma-ampersand-sep">
{% for author in article.frozenauthor_set.all %}
<li>{{ author.last_name }}, {{ author.first_name|slice:"1" }}</li>
{% endfor %}
</ul>
({{ article.date_published.year }}) '{{ article.title|safe }}',
<em>{% if journal.name %}{{ journal.name }}{% else %}{{ request.press.name }} Preprints{% endif %}</em>. {% if article.issue %}{{ article.issue.volume }}({{ article.issue.issue }}){% endif %}{% if article.page_range %}:{{ article.page_range }}.{% endif %}
<span id="harvard-cite">{% for author in article.frozenauthor_set.all %}
{% if not forloop.first and not forloop.last %},
{% elif forloop.last and not forloop.first %}& {% endif %}{{ author.last_name }},
{{ author.first_name|slice:"1" }}{% if forloop.last %}.{% endif %} {% endfor %}
({{ article.date_published.year }}) '{{ article.title|safe }}',
<em>{% if journal.name %}{{ journal.name }}{% else %}{{ request.press.name }} Preprints{% endif %}</em>. {% if article.issue %}{{ article.issue.volume }}({{ article.issue.issue }}){% endif %}{% if article.page_range %}:{{ article.page_range }}.{% endif %}
{% if article.identifier.id_type == 'doi' %}
{% include "elements/doi_display.html" with doi=article.identifier.identifier title=article.title %}
{% endif %}
Expand All @@ -43,15 +41,12 @@ <h2 class="modal-title" id="VancouverModalLabel">{% trans 'Vancouver-style Citat
</div>
<div class="modal-body">
<p>
<span id="vancouver-cite">
<ul class="list-inline comma-ampersand-sep">
{% for author in article.frozenauthor_set.all %}
<li>{{ author.last_name }}, {{ author.first_name|slice:"1" }}</li>
{% endfor %}
</ul>
{{ article.title|safe }}. {% if journal.name %}{{ journal.name }}{% else %}{{ request.press.name }} Preprints{% endif %}. {{ article.date_published.year }} {{ article.date_published.month }};{% if article.issue %} {{ article.issue.volume }}({{ article.issue.issue }}){% endif %}{% if article.page_range %}:{{ article.page_range }}.{% endif %}
{% if article.identifier.id_type == 'doi' %}
{% include "elements/doi_display.html" with doi=article.identifier.identifier title=article.title %}
<span id="vancouver-cite">{% for author in article.frozenauthor_set.all %}{% if not forloop.first and not forloop.last %},
{% elif forloop.last and not forloop.first %}& {% endif %}{{ author.last_name }},
{{ author.first_name|slice:"1" }}{% if forloop.last %}.{% endif %} {% endfor %}
{{ article.title|safe }}. {% if journal.name %}{{ journal.name }}{% else %}{{ request.press.name }} Preprints{% endif %}. {{ article.date_published.year }} {{ article.date_published.month }};{% if article.issue %} {{ article.issue.volume }}({{ article.issue.issue }}){% endif %}{% if article.page_range %}:{{ article.page_range }}.{% endif %}
{% if article.identifier.id_type == 'doi' %}
{% include "elements/doi_display.html" with doi=article.identifier.identifier title=article.title %}
{% endif %}
</span>
{% include "admin/elements/button_copy_element.html" with element_id="vancouver-cite" %}
Expand All @@ -75,12 +70,9 @@ <h2 class="modal-title" id="APAModalLabel">{% trans 'APA-style Citation' %}</h2>
</div>
<div class="modal-body">
<p>
<span id="apa-cite">
<ul class="list-inline comma-ampersand-sep">
{% for author in article.frozenauthor_set.all %}
<li>{{ author.last_name }}, {{ author.first_name|slice:"1" }}</li>
{% endfor %}
</ul>
<span id="apa-cite">{% for author in article.frozenauthor_set.all %}{% if forloop.last %}{% if not forloop.first %}
&amp; {% endif %}{% endif %}{{ author.last_name }},
{{ author.first_name|slice:"1" }}{% if forloop.last %}.{% endif %} {% endfor %}
({{ article.date_published.year }}, {{ article.date_published.month }} {{ article.date_published.day }}). {{ article.title|safe }}.
<em>{% if journal.name %}{{ journal.name }}{% else %}{{ request.press.name }} {% trans 'Preprints' %}{% endif %}</em> {% if article.issue %}{{ article.issue.volume }}({{ article.issue.issue }}){% endif %}{% if article.page_range %}:{{ article.page_range }}.{% endif %}
{% if article.identifier.id_type == 'doi' %}
Expand Down