{% extends "page_view.html" %} {% load i18n %} {% comment %} Add a person to a record. Three ways in, as tabs that switch in the browser with no reload: someone already in the portal, someone looked up by ORCID, or someone entered by hand. A search or a choice redraws only its own tab. Every way ends by saying which organization the person is credited from on this record, and goes on to their edit page. {% endcomment %} {% block page.content %}

{% blocktranslate %}A person is added with the organization they were at for this {{ kind }}. That organization is listed under Organizations here too.{% endblocktranslate %}

{% if adding.picked %}
{% csrf_token %}
{% translate "Choose someone else" %}
{% else %} {% if adding.term %} {% if adding.results %} {% for result in adding.results %} {% if result.listed %} {% translate "Already a contributor" %} {% else %} {% translate "Choose" %} {{ result.contributor }} {% endif %} {% endfor %} {% if adding.results_more %}

{% translate "There are more matches than are shown, so add more of the name to narrow the search." %}

{% endif %} {% else %}

{% blocktranslate with term=adding.term %}Nobody in this portal matches “{{ term }}”.{% endblocktranslate %}

{% translate "Check the spelling, or use one of the other two tabs to look them up by ORCID or enter them as a new person." %}

{% endif %} {% endif %} {% endif %}
{% if adding.chosen %}
{{ adding.chosen.record.name }} {{ adding.chosen.record.detail }} ORCID {{ adding.chosen.record.shown_id }}

{% translate "A profile is made for them from their ORCID record. They can claim it later by signing in with ORCID." %}

{% csrf_token %}
{% translate "Choose someone else" %}
{% else %} {% if adding.registry_unavailable %}

{% translate "Searching ORCID is unavailable right now, but the other two tabs still work." %}

{% elif adding.registry_term %} {% if adding.registry_results %} {% for result in adding.registry_results %}
{{ result.name }} {{ result.detail }} {{ result.shown_id }}
{% translate "Choose" %} {{ result.name }}
{% endfor %}
{% if adding.registry_more %}

{% translate "There are more matches than are shown, so add more of the name to narrow the search." %}

{% endif %} {% else %}

{% blocktranslate with term=adding.registry_term %}ORCID has nobody matching “{{ term }}”.{% endblocktranslate %}

{% translate "Not everyone has an ORCID iD. Check the spelling, or enter them on the New person tab." %}

{% endif %} {% endif %} {% endif %}

{% translate "Searching ORCID…" %}

{% if adding.same_name %}

{% translate "Someone with this name is already in the portal." %}

{% translate "If they are who you mean, find them on the first tab so their work stays on one profile. Otherwise make the new profile." %}

{% for match in adding.same_name %} {% translate "Choose" %} {{ match }} {% endfor %} {% endif %}
{% csrf_token %} {% if adding.same_name %}{% endif %} {% if adding.on_new and adding.errors %}

{% translate "Nothing was added." %}

    {% for field, error in adding.errors.items %}
  • {{ error }}
  • {% endfor %}
{% endif %}

{% translate "For someone who is not in the portal and has no ORCID iD. They get a profile with no account, and can be invited to claim it later." %}

{% if adding.errors.given %}

{{ adding.errors.given }}

{% endif %}
{% if adding.errors.family %}

{{ adding.errors.family }}

{% endif %}

{% blocktranslate %}A person you add can open this {{ kind }} straight away, and nothing more until you say so. They join the end of the people.{% endblocktranslate %}

{% endblock page.content %}