{# Copyright (C) 2024-2026 Front Matter. Invenio App RDM is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- set display_name = (person.given_name ~ " " ~ person.family_name) if (person.given_name and person.family_name) else person.name %} {%- set title = display_name %} {%- extends config.BASE_TEMPLATE %} {%- block css %} {{ super() }} {{ webpack['invenio-pidbox-profiles.css'] }} {%- endblock %} {%- block javascript %} {{ super() }} {{ webpack['invenio-app-rdm-search.js'] }} {%- endblock %} {%- block page_body %}
{# Profile header — full row #}

{{ display_name }} ORCID

{# Names (left) + biography and affiliations (right) #}
{# Left column: given/family/other names #}
{% if person.given_name or person.family_name or person.additional_names or person.country %}
{% if person.given_name %}
{{ _("Given names") }}
{{ person.given_name }}
{% endif %} {% if person.family_name %}
{{ _("Family names") }}
{{ person.family_name }}
{% endif %} {% if person.additional_names %}
{{ _("Also known as") }}
{{ person.additional_names | join(", ") }}
{% endif %} {% if person.country %}
{{ _("Country") }}
{{ person.country | country_name }}
{% endif %}
{% endif %}
{# Right column: biography, then affiliations #}
{% if person.description %}

{{ _("Biography") }}

{{ _("Biography") }}

{{ person.description }}

{% endif %} {% if employment %} {# Sits flush at the top when there is no biography above it, mirroring how the Biography heading handles being first in the column. #}

{{ _("Affiliations") }}

{{ _("Affiliations") }}

{# Line breaks and spacing between organisation / role / dates come from .person-affiliations in assets/less/site/elements/list.overrides (which also covers .organization-relations), not from markup. #}
{% for emp in employment %}
{% if emp.id %} {{ emp.name or emp.id }} ROR {% else %} {{ emp.name }} {% endif %} {% if emp.role %}
{{ emp.role }}
{% endif %} {% if emp.start_date_display or emp.end_date_display %}
{%- if emp.start_date_display and emp.end_date_display %}{{ emp.start_date_display }} – {{ emp.end_date_display }} {%- elif emp.start_date_display %}{{ _("Started") }} {{ emp.start_date_display }} {%- else %}{{ _("Ended") }} {{ emp.end_date_display }}{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{# Metrics — full width below biography #}
{%- include "invenio_app_rdm/people/profile_metrics.html" %}
{# Search results — full search app pre-filtered to this person's ORCID #}
{%- endblock page_body %}