{# template snippet for displaying person label on a form #} {# used on person merge form to provide enough information to merge accurately #}
{{ person.title }} {{ person.name }} {% if person.birth_year or person.death_year %} {{ person.birth_year|default:'' }} – {{ person.death_year|default:'' }} {% endif %} {% if person.gender %}{{ person.display_gender_label }}{% endif %} {% if person.mep_id %}

MEP id {{ person.mep_id }}

{% endif %} {# link to public member page; display local url with slug #} {% with member_url=person.get_absolute_url %} {% if member_url %}

{{ member_url }}

{% endif %} {% endwith %} {% if person.viaf %}

{{ person.viaf_id|urlize }}

{% endif %} {% if person.notes %}

{{ person.notes }}

{% endif %} {% for account in person.account_set.all %}

{# link to account edit page #} {{ account }}

{# display events similar to subscription display on person change form #} {% if account.event_set.exists %} {% else %}
No account events
{% endif %}
{# display associated library card or indicate there is none #} {% if account.card %}
Associated lending library card: {{ account.card }}
{% else %}
No associated lending library card.
{% endif %} {% endfor %}