{% extends 'base.html' %} {% load static i18n humanize corpus_extras widget_tweaks %} {% block meta_title %}{{ page_title }}{% endblock meta_title %} {% block meta_description %}{{ page_description }}{% endblock meta_description %} {% block main %}

{{ page_title }}

{% render_field form.q data-search-target="query" data-action="input->search#autoUpdateRadioSort change->search#update" %} {# Translators: Search submit button #} {% translate 'Submit search' as search_label %}
{% translate "Filters" %} {% if applied_filters %} {{ applied_filters|length }} {% endif %} {% if applied_filters %} {# convenient unapply filter buttons; aria role set to presentation as functionality duplicated below #} {% endif %}

{# Translators: search results section header #} {% translate "Results" %}

{# Translators: number of results #} {% blocktranslate with count_humanized=paginator.count|intcomma count counter=paginator.count trimmed %} 1 result {% plural %} {{ count_humanized }} results {% endblocktranslate %}
{{ form.get_sort_label|default:"Name" }}
{% render_field form.sort data-action="search#update" %} {% render_field form.sort_dir data-action="search#update" %}
{# list view table #} {# Translators: Person "name" column header on the browse page #} {# Translators: Person "other names" column header on the browse page #} {% if highlighting %}{% endif %} {# Translators: Person "gender" column header on the browse page #} {# Translators: Person "dates of activity" column header on the browse page #} {# Translators: Person "social role" column header on the browse page #} {# Translators: Person "description / bio" column header on the browse page #} {# Translators: Person "tags" column header on the browse page #} {% for person in people %} {% with person_highlights=highlighting|dict_item:person.id %} {% if highlighting %} {% spaceless %} {% endspaceless %} {% endif %} {% endwith %} {# tags #} {% endfor %}
{% translate "Name" %}{% translate "Other names" %}{% translate "Gender" %}{% translate "Dates" %}{% translate "Social role" %}{% translate "Description / Bio" %}{% translate "Tags" %} {# Translators: Person "document count" column header on the browse page #} {% translate "Number of related documents" %} {# Translators: Person "related people count" column header on the browse page #} {% translate "Number of related people" %} {# Translators: Person "related place count" column header on the browse page #} {% translate "Number of related places" %}
{% if "SHOW_RELEVANCE_SCORES" in FEATURE_FLAGS %} {# show relevance score if enabled #} Relevance: {{ person.score|default:0 }} {% endif %} {% if person.url %} {{ person.name }} {% else %} {{ person.name }} {% endif %} {% if person_highlights.other_names %} {% translate "Also known as: " %} {% for match in person_highlights.other_names %} {{ match|safe }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {{ person.gender }} {{ person.date_str }} {% if person.roles %}{{ person.roles.0 }}{% endif %} {% if person.roles|length > 1 %} +{{ person.roles|length|add:-1 }} {% endif %} {{ person.description.0|truncatewords:15 }}{% if person.tags %}
    {% spaceless %} {% for tag in person.tags|alphabetize|slice:":5" %}
  • {{ tag }}
  • {% endfor %} {% if person.tags|length > 5 %}
  • (+ {{ person.tags|length|add:"-5" }} {% translate 'more' %})
  • {% endif %} {% endspaceless %}
{% endif %}
{# Translators: range of search results on the current page, out of total #} {% blocktranslate with start=page_obj.start_index end=page_obj.end_index count_humanized=paginator.count|intcomma %}
{{ start }} – {{ end }} of {{ count_humanized }}
{% endblocktranslate %} {% include "corpus/snippets/pagination.html" %}
{% endblock %}