diff --git a/src/themes/clean/templates/elements/journal/citation_modals.html b/src/themes/clean/templates/elements/journal/citation_modals.html index 349ddf25d4..2f925e8c6b 100644 --- a/src/themes/clean/templates/elements/journal/citation_modals.html +++ b/src/themes/clean/templates/elements/journal/citation_modals.html @@ -10,14 +10,12 @@
-
-
- {% for author in article.frozenauthor_set.all %}
-
- ({{ article.date_published.year }}) '{{ article.title|safe }}',
- {% if journal.name %}{{ journal.name }}{% else %}{{ request.press.name }} Preprints{% endif %}. {% if article.issue %}{{ article.issue.volume }}({{ article.issue.issue }}){% endif %}{% if article.page_range %}:{{ article.page_range }}.{% endif %}
+ {% 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 }}',
+ {% if journal.name %}{{ journal.name }}{% else %}{{ request.press.name }} Preprints{% endif %}. {% 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 %}
@@ -43,15 +41,12 @@ {% trans 'Vancouver-style Citat
-
-
- {% for author in article.frozenauthor_set.all %}
-
- {{ 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 %}
+ {% 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 %}
{% include "admin/elements/button_copy_element.html" with element_id="vancouver-cite" %}
@@ -75,12 +70,9 @@ {% trans 'APA-style Citation' %}
-
-
- {% for author in article.frozenauthor_set.all %}
-
+ {% for author in article.frozenauthor_set.all %}{% if forloop.last %}{% if not forloop.first %}
+ & {% 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 }}.
{% if journal.name %}{{ journal.name }}{% else %}{{ request.press.name }} {% trans 'Preprints' %}{% endif %} {% if article.issue %}{{ article.issue.volume }}({{ article.issue.issue }}){% endif %}{% if article.page_range %}:{{ article.page_range }}.{% endif %}
{% if article.identifier.id_type == 'doi' %}