{% extends "page_view.html" %} {% load i18n %} {% comment %} Add an organization to a record in its own right. Three ways in, as tabs that switch in the browser with no reload: one already in the portal, one looked up in ROR, or one entered by hand. A search or a choice redraws only its own tab. Adding goes on to the organization's edit page. {% endcomment %} {% block page.content %}

{% blocktranslate %}Use this for an organization credited on this {{ kind }} in its own right, such as a funder or a host institution. A person's affiliation is listed for you when the person is added.{% endblocktranslate %}

{% if adding.term %} {% if adding.results %} {% for result in adding.results %} {% if result.listed %} {% translate "Already listed" %} {% else %}
{% csrf_token %}
{% 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 %}No organization in this portal matches “{{ term }}”.{% endblocktranslate %}

{% translate "Check the spelling, or use one of the other two tabs to look it up in ROR or enter it as a new organization." %}

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

{% blocktranslate %}A profile is made for it from its ROR record and it is added to this {{ kind }}.{% endblocktranslate %}

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

{% translate "Searching ROR 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 %}ROR has nothing matching “{{ term }}”.{% endblocktranslate %}

{% translate "Not every organization is in ROR. Check the spelling, or enter it on the New organization tab." %}

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

{% translate "Searching ROR…" %}

{% if adding.same_name %}

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

{% translate "Add that one if it is the one you mean." %}

{% for match in adding.same_name %}
{% csrf_token %}
{% endfor %}
{% else %}
{% csrf_token %} {% if adding.errors %}

{% translate "Nothing was added." %}

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

{% translate "For an organization that is not in the portal and not in ROR." %}

{% if adding.errors.name %}

{{ adding.errors.name }}

{% endif %}
{% endif %}

{% translate "An organization is credited and holds no access. It joins the end of the organizations." %}

{% endblock page.content %}