{% extends 'page_base.html' %} {% load static %} {% block page-subtitle %} : Members : {{ person.name }}{% endblock %} {% block head-extras %} {% endblock %} {% block page-content %}

{% if person.lastname and person.firstname %} {{ person.firstname }} {{ person.lastname }} {% else %} {{ person.name }} {% endif %}

{% if person.picture %} {% with pic=person.picture %}
{# admin edit link, if user has permission to edit profile pictures #} {% if perms.people.change_profilepicture %} {% endif %}

{{ pic.title }}

{{ pic.image.alt_text }}
    {% if pic.date %}
  • {{ pic.date }}
  • {% endif %} {% if pic.creator %}
  • {% if pic.creator_url %} {{ pic.creator }} {% else %}{{ pic.creator }}{% endif %}
  • {% endif %} {% if pic.publisher %}
  • {% if pic.publisher_url %} {{ pic.publisher }} {% else %}{{ pic.publisher }}{% endif %}
  • {% endif %}
{% if pic.collection %}

{{ pic.collection }}

{% endif %} {% if pic.permissions %}

{{ pic.permissions }}

{# NOTE: if url, could use schema:license #} {% endif %}
{% endwith %} {% endif %}
{% comment %} {# Using local profile images instead of dbpedia thumbnails #} {% if person.dbpedia.thumbnail %}

image via Wikipedia

{% endif %} {% endcomment %} {# suppressing rdf occupation, locations, birth date & place - redundant with description #} {% comment %} {% if person.occupation %}

Occupation: {{ person.occupation|join:', ' }}

{% endif %} {% if person.locations %}

Locations: {# for now, link to outside URI location; eventually may want in-site links #} {% for loc in person.locations %} {{ loc }}{% if not forloop.last %}; {% else %}.{% endif %} {% endfor %}

{% endif %} {% if person.birthdate %}

Born {{ person.birthdate }} {% if person.birthplace %} in {{ person.birthplace }}{% endif %}.

{% endif %} {% endcomment %} {# keeping redundant rdf info invisible, but make some of it available via rdfa #} {% for occ in person.occupation %} {% endfor %} {% if person.birthdate %}{% endif %} {% if person.dbpedia_uri %}{% endif %} {% if person.viaf_uri %}{% endif %} {% if person.description %}

{{ person.description }} {% if person.description_context and person.desc_context_name %} {# link to the source of the description *if* it has a label (i.e., findingaid where the description comes from) #} ({{ person.desc_context_name }}) {% endif %}

{% elif person.dbpedia.description %}

{{ person.dbpedia.description }} ({% if person.dbpedia.wikipedia_url %}Wikipedia{% else %}Wikipedia{% endif %})

{% endif %}
{% if groupsheets %}
    {% for doc in groupsheets %}
  • {% include 'groupsheets/snippets/list_groupsheet.html' with profile=True %}
  • {% endfor %}
{% endif %} {% if person.connected_people|length or person.connected_organizations|length %}
{% include "people/ego_graph.html" %}
{% if person.connected_people %}

People

    {% for conn, rel_info in person.connected_people %}
  • {% if conn.has_profile %} {# if connected person has a profile, link to it #} {{ conn.fullname }} {% else %} {{ conn.fullname }} {% endif %} {# link to viaf, wikipedia with icons #} {% if conn.viaf_uri %} VIAF {% endif %} {% if conn.dbpedia_uri %} {# link to wikipedia page if we can; if not, link to dbpedia #} Wikipedia {% endif %} {% if rel_info.0 %} - {{ rel_info.0|join:', '}}{% endif %} {% if debug %}(weight: {{ rel_info.1 }}){% endif %}
  • {% endfor %}
{% endif %} {% if person.connected_organizations %}

Organizations

    {% for conn, rel_info in person.connected_organizations %}
  • {{ conn.name }} {# link to viaf, wikipedia with icons #} {% if conn.viaf_uri %} VIAF {% endif %} {% if conn.dbpedia_uri %} {# link to wikipedia page if we can; if not, link to dbpedia #} Wikipedia {% endif %} {% if rel_info %} - {{ rel_info.0|join:', '}}{% endif %} {% if debug %}(weight: {{ rel_info.1 }}){% endif %}
  • {% endfor %}
{% endif %}
{% endif %}
{# person #}
{# about #}
{% endblock %}