{# @description A person's card for the people listing: photo, name with ORCID iD, affiliation and place, the roles on a credit when given one, and the portal roles they hold. #}
{# @prop contributor:text | description:"A Person, or a Contribution crediting one." #}
{# @prop class:text | description:"Extra CSS classes on the card." #}
{% load contributor_tags %}
{% with c=contributor|as_contributor fallback=contributor.get_real_instance.primary_organization %}
{% if c %}
{% with roles=contributor.roles.all affiliation=contributor.affiliation|default:fallback portal_roles=c.portal_roles location=c.get_location_display %}