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
42 changes: 27 additions & 15 deletions src/themes/OLH/templates/journal/article.html
Original file line number Diff line number Diff line change
Expand Up @@ -478,22 +478,34 @@ <h2>{% trans "File Checksums" %} (MD5)</h2>
{% endif %}
</div>

{% if journal_settings.general.use_credit and author.credits.exists %}
<div class="section hide-for-small-only">
<h2>{% trans "CRediT Roles" %} <a href="https://www.niso.org/publications/z39104-2022-credit" target="_blank"> <i class="fa fa-info"></i></a></h2>
<ul>
{% for author, credit_records in article.authors_and_credits.items %}
<li>
{{ author.full_name }}:
<span class="credit">
{% for record in credit_records %}
{{ record }}{% if not forloop.last %}, {% endif %}
{% if journal_settings.general.use_credit %}
{% for author_check in article.frozen_authors.all %}
{% if author_check.credits.exists %}
<div class="section hide-for-small-only">
<h2>{% trans "CRediT Roles" %}
<a href="https://www.niso.org/publications/z39104-2022-credit" target="_blank">
<span class="sr-only">{% trans "Read more about Credit." %} </span>
<i aria-hidden="true" class="fa fa-info"></i>
{% include "elements/icons/link_external.html" %}
</a>
</h2>
<ul>
{% for author, credit_records in article.authors_and_credits.items %}
{% if credit_records.exists %}
<li>
{{ author.full_name }}:
<span class="credit">
{% for record in credit_records %}
{{ record }}{% if not forloop.last %}, {% endif %}
{% endfor %}
</span>
</li>
{% endif %}
{% endfor %}
</span>
</li>
{% endfor %}
</ul>
</div>
</ul>
</div>
{% endif %}
{% endfor %}
{% endif %}

<div class="section hide-for-small-only">
Expand Down