Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#3502 DOI edit and add buttons will no longer be shown to authors on the article metadata page. Text on the identifiers section has also been updated #3513

Merged
merged 1 commit into from
May 18, 2023
Merged
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
11 changes: 7 additions & 4 deletions src/templates/admin/elements/metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ <h2>Projected Issue</h2>

<div class="title-area">
<h2>Identifiers</h2>
<a class="button" href="{% url 'edit_identifiers' article.pk %}" target="_blank"><i class="fa fa-edit">&nbsp;</i>Edit</a>
{% if user_is_editor %}<a class="button" href="{% url 'edit_identifiers' article.pk %}" target="_blank"><i class="fa fa-cogs">&nbsp;</i>Manage Identifiers</a>{% endif %}
</div>
{% setting_var request.journal 'use_crossref' as use_crossref %}
<div class="content">
Expand All @@ -264,21 +264,24 @@ <h2>Identifiers</h2>
{% for identifier in article.identifiers %}
{% if identifier.identifier == doi %}
{% if identifier.deposit %}
<a href="{% url 'poll_doi_output' article.pk identifier.pk %}">
{% if user_is_editor %}<a href="{% url 'poll_doi_output' article.pk identifier.pk %}">{% endif %}
{% if identifier.deposit.success %}
<i class="fa fa-check">&nbsp;</i>
{% else %}
<i class="fa fa-exclamation-circle">&nbsp;</i>
{% endif %}
</a>
{% if user_is_editor %}</a>{% endif %}
{% else %}
<i class="fa fa-exclamation-circle">&nbsp;</i> This DOI has not been deposited.
{% endif %}
{% endif %}
{% endfor %}
</td>
{% else %}

<td>DOI</td>
<td><span class="fa fa-exclamation-triangle"> Article has no DOI</span></td>
<td><a href="{% url 'add_new_identifier' article.pk %}" class="button">Add DOI</a></td>
<td>{% if user_is_editor %}<a href="{% url 'add_new_identifier' article.pk %}" class="button">Add DOI</a>{% else %}---{% endif %}</td>
{% endif %}
{% endwith %}
</tr>
Expand Down