{# 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 entity_icon(entity) %} {%- if "orcid" in entity.identifiers %} {%- elif "ror" in entity.identifiers %} {# if no identifiers: distinguish btw people and organizations #} {%- elif entity.type == "organizational" %} {%- endif %} {% endmacro %} {% macro list_entities(entities, show_affiliations=False) %} {% for entity in entities %} {{ entity_icon(entity) }} {{ entity.name }} {% for footnote in entity.affiliations.footnotes %}{{ footnote }}{{ ", " if not loop.last }}{% endfor %} {{ "; " if not loop.last }} {% endfor %} {%- endmacro %} {% macro list_affiliations(affiliations) %} {% for name, footnote in affiliations.items() %}

{{ footnote }} {{'. ' + name }}

{% endfor %} {%- endmacro %}