{# File: authors_macro.html Description: This template renders a block for displaying author names, affiliations, and ORCID links in a formatted list. Usage: {% from 'authors_macro.html' import authors_block %} Variables: - authors (list): List of authors - unique_affiliations (list): List of unique affiliations for displaying author affiliations. #} {% macro authors_block(authors, unique_affiliations) %}

{%- for author in authors %} {{ author['given-names'] }} {{ author['family-names'] }} {%- if author.affiliation is defined -%} {{ unique_affiliations.index(author.affiliation) + 1 }} {%- endif %} {%- if author.orcid is defined -%} {%- endif %} {%- if not loop.last %},{% endif %} {%- endfor %}

{% endmacro %}