Skip to content

Commit f0847a2

Browse files
committed
revert: #4890 non-visible list syntax as breaks copy button
1 parent 891066d commit f0847a2

File tree

1 file changed

+15
-23
lines changed

1 file changed

+15
-23
lines changed

src/themes/clean/templates/elements/journal/citation_modals.html

Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ <h2 class="modal-title" id="HarvardModalLabel">{% trans 'Harvard-style Citation'
1010
</div>
1111
<div class="modal-body">
1212
<p>
13-
<span id="harvard-cite">
14-
<ul class="list-inline comma-ampersand-sep">
15-
{% for author in article.frozenauthor_set.all %}
16-
<li>{{ author.last_name }}, {{ author.first_name|slice:"1" }}</li>
17-
{% endfor %}
18-
</ul>
19-
({{ article.date_published.year }}) '{{ article.title|safe }}',
20-
<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 %}
13+
<span id="harvard-cite">{% for author in article.frozenauthor_set.all %}
14+
{% if not forloop.first and not forloop.last %},
15+
{% elif forloop.last and not forloop.first %}& {% endif %}{{ author.last_name }},
16+
{{ author.first_name|slice:"1" }}{% if forloop.last %}.{% endif %} {% endfor %}
17+
({{ article.date_published.year }}) '{{ article.title|safe }}',
18+
<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 %}
2119
{% if article.identifier.id_type == 'doi' %}
2220
{% include "elements/doi_display.html" with doi=article.identifier.identifier title=article.title %}
2321
{% endif %}
@@ -43,15 +41,12 @@ <h2 class="modal-title" id="VancouverModalLabel">{% trans 'Vancouver-style Citat
4341
</div>
4442
<div class="modal-body">
4543
<p>
46-
<span id="vancouver-cite">
47-
<ul class="list-inline comma-ampersand-sep">
48-
{% for author in article.frozenauthor_set.all %}
49-
<li>{{ author.last_name }}, {{ author.first_name|slice:"1" }}</li>
50-
{% endfor %}
51-
</ul>
52-
{{ 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 %}
53-
{% if article.identifier.id_type == 'doi' %}
54-
{% include "elements/doi_display.html" with doi=article.identifier.identifier title=article.title %}
44+
<span id="vancouver-cite">{% for author in article.frozenauthor_set.all %}{% if not forloop.first and not forloop.last %},
45+
{% elif forloop.last and not forloop.first %}& {% endif %}{{ author.last_name }},
46+
{{ author.first_name|slice:"1" }}{% if forloop.last %}.{% endif %} {% endfor %}
47+
{{ 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 %}
48+
{% if article.identifier.id_type == 'doi' %}
49+
{% include "elements/doi_display.html" with doi=article.identifier.identifier title=article.title %}
5550
{% endif %}
5651
</span>
5752
{% include "admin/elements/button_copy_element.html" with element_id="vancouver-cite" %}
@@ -75,12 +70,9 @@ <h2 class="modal-title" id="APAModalLabel">{% trans 'APA-style Citation' %}</h2>
7570
</div>
7671
<div class="modal-body">
7772
<p>
78-
<span id="apa-cite">
79-
<ul class="list-inline comma-ampersand-sep">
80-
{% for author in article.frozenauthor_set.all %}
81-
<li>{{ author.last_name }}, {{ author.first_name|slice:"1" }}</li>
82-
{% endfor %}
83-
</ul>
73+
<span id="apa-cite">{% for author in article.frozenauthor_set.all %}{% if forloop.last %}{% if not forloop.first %}
74+
&amp; {% endif %}{% endif %}{{ author.last_name }},
75+
{{ author.first_name|slice:"1" }}{% if forloop.last %}.{% endif %} {% endfor %}
8476
({{ article.date_published.year }}, {{ article.date_published.month }} {{ article.date_published.day }}). {{ article.title|safe }}.
8577
<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 %}
8678
{% if article.identifier.id_type == 'doi' %}

0 commit comments

Comments
 (0)