{# 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 %} {#- Laid out like a record's page: the person and their other names in a main column, their ORCID iD, given and family names and country in a Details box in the sidebar, in InvenioRDM's own sidebar markup; then the metrics and their works. The given and family names are listed although the title says them: they tell which part of a name is which, as with several given or family names. #}

{{ display_name }}

{#- Other names in grey under the name, as on an organization's page: the names a person had, as before a marriage. #} {% if person.additional_names %}

{{ person.additional_names | join(", ") }}

{% endif %} {% if person.description %}

{{ _("Biography") }}

{{ person.description }}

{% endif %} {% if employment %}

{{ _("Affiliations") }}

{# Line breaks and spacing between organisation / role / dates come from .person-affiliations in the package's stylesheet. #}
{% 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 — in line with the search results below: the search app puts its facets in a four wide column and the results in a twelve wide one, so the open license ring takes the facets' width and the cards the results'. #}
{#- The share of the works with an open license, beside the cards. #}
{%- with donut_id="profile-license", donut_api="/api/records", donut_query="orcid:" ~ orcid, donut_search="/search" %} {%- include "invenio_pidbox/license_donut.html" %} {%- endwith %}
{%- include "invenio_app_rdm/people/profile_metrics.html" %}
{# Search results — full search app pre-filtered to this person's ORCID #}

{{ _("Works") }}

{%- endblock page_body %}