{% extends "webpage/base.html" %} {% load static %} {% load transkribus_extras %} {% block title %}Search{% endblock %} {% block content %} {% trp_lang as my_lang %}

{{ my_lang.search_header.header }}

{% if 'query' in request.GET %}

{% if start != '0' %} {{ my_lang.hits.prev }} {% endif %} {{ hits }} {{ my_lang.hits.hits }} {% if next %} {{ my_lang.hits.next }} {% endif %}

{% if clear_filter %}

clear filter

{% endif %} {% endif %}

{{ my_lang.hits.facet_header }}

{% for x in trp_result.facets.facet %} {% if x.facetMap.entry %} {% if x.facet_field == 'f_title' %}

{{ my_lang.hits.facet_doc_title }}

    {% for y in x.facetMap.entry %}
  • {{ y.key }}: {{ y.value }}
  • {% endfor %}
{% endif %} {% endif %} {% endfor %}

{{ my_lang.hits.kwic_header }}

{% for x in trp_result.pageHits.PageHit %}

{{ x.highlights|first|safe }}

  • {{ my_lang.hits.result_col }}: {{ x.collectionIds.collectionId|first}}
  • {{ my_lang.hits.result_doc }}: {{ x.docTitle }}
  • ID: {{ x.docId }}
  • {{ my_lang.hits.result_page }}: {{ x.pageNr }}
  • {{ my_lang.hits.result_link }}
{% endfor %}
{% endblock %}