{# @description A contributor's name linked to their page, followed by their ORCID iD or ROR icon. Nothing is written outside the root element, so it can sit mid-sentence before a comma. A long name wraps like text and the icon stays with its last word. #} {# @prop contributor:text | description:"A Person, an Organization, or a Contribution." #} {# @prop format:select['family_given','family_initial','initials_family'] | description:"A citation-style name for a person. Empty shows the preferred name." #} {# @prop link:boolean | default:true | description:"Link the name to the contributor's page." #} {# @prop identifier:boolean | default:true | description:"Follow the name with its ORCID iD or ROR icon." #} {# @prop class:text | description:"Extra CSS classes on the root element." #} {% load i18n easy_icons contributor_tags %}{% with c=contributor|as_contributor %}{% if c %}{% contributor_name c format as display_name %}{% spaceless %} {% if link %}{{ display_name }}{% else %}{{ display_name }}{% endif %}{% if identifier %}{% with ident=c.default_identifier %}{% if ident %}{% if c.is_organization %}⁠{% icon "ror" %}{% else %}{% with authenticated=c.orcid_is_authenticated %}⁠ {% if authenticated %}{% icon "orcid" %}{% else %}{% icon "orcid_unauthenticated" %}{% endif %} {% endwith %}{% endif %}{% endif %}{% endwith %}{% endif %} {% endspaceless %}{% endif %}{% endwith %}