{#
Copyright (C) 2020 CERN.
Copyright (C) 2020 Northwestern University.
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) %}
{%- if "orcid" in creatibutor.identifiers %}
{%- elif "ror" in creatibutor.identifiers %}
{# if no identifiers: distinguish btw people and organizations #}
{%- elif creatibutor.type == "organizational" %}
{%- endif %}
{% endmacro %}
{% macro show_creatibutors(creatibutors, show_affiliations=False) %}
{% for creatibutor in creatibutors %}
{{ creatibutor_icon(creatibutor) }}
{{ creatibutor.name }}
{% for affiliation in creatibutor.affiliations %}
{{ affiliation[0] }}{{ ", " if not loop.last }}
{% endfor %}
{{ "; " if not loop.last }}
{% endfor %}
{%- endmacro %}
{% macro show_affiliations(affiliations) %}
{% for affiliation in affiliations %}
{{ affiliation[0] }} {{'. ' + affiliation[1] }}
{% endfor %} {%- endmacro %}