{% extends "admin/core/flat_base.html" %} {% load i18n %} {% load static %} {% load foundation %} {% load roles %} {% load next_url %} {% load securitytags %} {% block contextual_title %} Edit "{{ author }}" {% endblock contextual_title %} {% block breadcrumbs %} {{ block.super }} {% include "elements/breadcrumbs/edit_author_base.html" %} {% endblock breadcrumbs %} {% block title-section %} Edit "{{ author }}" {% endblock title-section %} {% block body %} {% is_editor as editor %}
{% if article.is_unsubmitted %} {% url 'submit_authors' article.pk as back_url %} {% else %} {% url 'submission_edit_author_metadata' article.pk as back_url %} {% endif %} {% trans "Back to all authors" as back_label %} {% include "elements/a_back.html" with label=back_label href=back_url %}
{% if not form %} {% include "admin/elements/forms/messages_in_callout.html" %} {% endif %}

{% trans "Name, bio, and identifiers" %}

{% if not form %}
{% endif %}
{% if form %} {% include "admin/elements/forms/messages_in_callout.html" %}
{% csrf_token %}
{% include "admin/elements/forms/field.html" with field=form.first_name %} {% include "admin/elements/forms/field.html" with field=form.middle_name %} {% include "admin/elements/forms/field.html" with field=form.last_name %}
{% include "admin/elements/forms/field.html" with field=form.name_prefix %} {% include "admin/elements/forms/field.html" with field=form.name_suffix %} {% include "admin/elements/forms/field.html" with field=form.is_corporate %}
{% include "admin/elements/forms/field.html" with field=form.frozen_biography %}
{% if author.author and author.author == request.user %}
Email
{{ author.email|default:"No email" }}

If the email is incorrect, edit the email on your user profile.

{% else %} {% include "admin/elements/forms/field.html" with field=form.frozen_email %} {% endif %} {% include "admin/elements/forms/field.html" with field=form.display_email %}
ORCID
{{ author.orcid|default:"No ORCID" }}

{% if author.author and author.author == request.user %} Log out and then log in again via ORCID to update this information. {% else %} If the ORCID is incorrect, add a new author by searching for the correct ORCID. {% endif %}

{% url_with_next 'submission_edit_author' article.pk author.pk as cancel_url %} {% include "elements/a_cancel.html" with href=cancel_url %}
{% else %}
{% trans "Name" as name %} {% include "elements/layout/key_value_above.html" with key=name value=author.full_name %} {% trans "Is corporate" as is_corporate %} {% include "elements/layout/key_value_above.html" with key=is_corporate value=author.is_corporate|yesno:"Yes,No" %}
{% trans "Biography" as bio_key %} {% include "admin/elements/layout/key_value_above.html" with key=bio_key value=author.biography|default:"No biography"|safe %}
{% trans "Email" as email_key %} {% include "admin/elements/layout/key_value_above.html" with key=email_key value=author.real_email|default:"No email address" %} {% trans "Display email" as display_email %} {% include "elements/layout/key_value_above.html" with key=display_email value=author.display_email|yesno:"Yes,No" %} {% trans "ORCID" as orcid_key %} {% include "admin/elements/layout/key_value_above.html" with key=orcid_key value=author.orcid|default:"No ORCID" %}
{% endif %}

{% trans "Affiliations" %}

{% include "admin/core/affiliation_list_display_with_actions.html" with interface=author article=article %}
{% if journal_settings.general.use_credit %}

{% trans "Roles" %}

{% if article.is_unsubmitted %} {% url 'submit_authors' article.pk as author_list_url %} {% else %} {% url 'submission_edit_author_metadata' article.pk as author_list_url %} {% endif %} {% blocktrans with author_list_url=author_list_url %} CRediT roles can be edited on on the page listing all authors. {% endblocktrans %}
{% endif %}

{% trans "User profile" %}

{% if author.author %}

{% blocktrans with article_title=article.safe_title journal_title=journal.name %} The details on this page are the author information that will be tied to "{{ article_title }}" for publication. They are separate from the author's user profile with {{ journal_title }}, which can be edited at any time. {% endblocktrans %}

{% if editor %}
{% url_with_return 'core_user_edit' author.author.pk as edit_href %} {% include "elements/a_edit.html" with href=edit_href label="Edit user profile" %}
{% endif %} {% else %}

{% blocktrans with journal_title=journal.name %} This author has not registerd for a user account with {{ journal_title }}. {% endblocktrans %}

{% endif %}
{% endblock body %}