{# Copyright (C) 2020-2024 CERN. Copyright (C) 2020 Northwestern University. Copyright (C) 2021 Graz University of Technology. Copyright (C) 2021-2022 New York University. Copyright (C) 2025 KTH Royal Institute of Technology. Invenio RDM Records is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {% macro creatibutor_icon(creatibutor) %} {% set identifier_found = namespace(value=False) %} {% if config.APP_RDM_IDENTIFIER_SCHEMES_UI %} {% for scheme, details in config.APP_RDM_IDENTIFIER_SCHEMES_UI.items() %} {% for identifier in creatibutor.person_or_org.identifiers|selectattr("scheme", "equalto", scheme) %} {% set identifier_found.value = True %} {{ details.label }} icon {% endfor %} {% endfor %} {% endif %} {# Fallback for missing identifiers #} {% if not identifier_found.value %} {% if creatibutor.person_or_org.type == 'organizational' %} {% else %} {% endif %} {% endif %} {% endmacro %} {% macro show_creatibutors(creatibutors, show_affiliations=False, type="creators", show_role=False) %} {% for creatibutor in creatibutors if creatibutor.person_or_org and creatibutor.person_or_org.name %}
  • {{- creatibutor.person_or_org.name -}} {% if show_role and creatibutor.role %} ({{- creatibutor.role.title -}}) {%- endif -%} {%- if creatibutor.affiliations -%} {%- for affiliation in creatibutor.affiliations -%} {{ affiliation[0] }}{{ ", " if not loop.last }} {%- endfor -%} {%- endif -%} {{- creatibutor_icon(creatibutor) -}}
  • {% endfor %} {%- endmacro %} {% macro affiliations_accordion(group, affiliations) %}
    {% endmacro %}