{% extends "base.html" %} {% block title %}{{ _('User Alias Settings') }} — {{ service_name }}{% endblock %} {% block content %}

{{ _('User Alias Settings') }}

{% if config['ENABLE_DEFAULT_USER_ALIASES'] %} {{ _('When an object is shared by %(service_name)s with other databases, %(service_name)s is configured to share the information from your user profile by default. You can define a user alias for each database and control what information should be shared instead.', service_name=service_name) }} {% else %} {{ _('When an object is shared by %(service_name)s with other databases, by default no information about you except for your user ID will be shared. You can define a user alias for each database and control what information may be shared.', service_name=service_name) }} {% endif %}

{% if aliases %}
{% for alias in aliases %} {% endfor %}
{{ _('Database') }}
{{ component_names[alias['component_id']] }} {% if edit_alias_form %}
{% endif %} {% if delete_alias_form %}
{{ delete_alias_form.hidden_tag() }}
{% endif %}
{{ _('Name') }} {% if alias.name is none %} — {% else %} {{ alias.name }} {% endif %} {% if alias['use_real_name'] %} {{ _('(Taken from profile)') }} {% endif %}
{{ _('E-Mail') }} {% if alias.email is none %} — {% else %} {{ alias.email }} {% endif %} {% if alias['use_real_email'] %} {{ _('(Taken from profile)') }} {% endif %}
ORCID iD {% if alias.orcid is none %} — {% if alias['use_real_orcid'] %} {{ _('(Taken from profile)') }} {% endif %} {% else %}
ORCID iD iconhttps://orcid.org/{{ alias.orcid }} {% if alias['use_real_orcid'] %} {{ _('(Taken from profile)') }} {% endif %}
{% endif %}
{{ _('Affiliation') }} {% if alias.affiliation is none %} — {% else %} {{ alias.affiliation }} {% endif %} {% if alias['use_real_affiliation'] %} {{ _('(Taken from profile)') }} {% endif %}
{{ _('Role') }} {% if alias.role is none %} — {% else %} {{ alias.role }} {% endif %} {% if alias['use_real_role'] %} {{ _('(Taken from profile)') }} {% endif %}
{% endif %} {% if add_alias_form %}

{{ _('Add User Alias') }}

{{ add_alias_form.csrf_token() }}
{% if add_alias_form.component.errors %} {{ add_alias_form.component.errors[0] }} {% endif %}
{% if add_alias_form.name.errors %} {{ add_alias_form.name.errors[0] }} {% elif config['ENFORCE_SPLIT_NAMES'] and current_user.type.name.lower() == "person" and (add_alias_form.name.data is none or ', ' not in add_alias_form.name.data[1:-1]) %} {{ _("Please enter your name as: surname, given names.") }} {% endif %}
{% if add_alias_form.affiliation.errors %} {{ _('Please enter your affiliation or leave this field blank.') }} {% endif %}
{% if add_alias_form.role.errors %} {{ _('Please enter your role or leave this field blank.') }} {% endif %}

{% endif %} {% if edit_alias_form %} {% endif %} {% endblock %} {% block template_values %} {% do set_template_value("aliases_by_component", aliases_by_component) %} {% do set_template_value("component_names", component_names) %} {% do set_template_value("user_data", user_data) %} {% do set_template_value("show_edit_form", show_edit_form) %} {% do set_template_value("translations.edit_alias", _('Edit Alias:')) %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% endblock %} {% block stylesheets %} {{ super() }} {% endblock %}