{% extends 'layout.html' %} {% block content %} {% with book_results|first as local_results %}

Search Results for "{{ query }}"

Matching Books

{% if not local_results.results %}

No books found for "{{ query }}"

{% else %} {% endif %}
{% if book_results|slice:":1" and local_results.results and request.user.is_authenticated %}

Didn't find what you were looking for?

{% include 'snippets/toggle/open_button.html' with text="Show results from other catalogues" small=True controls_text="more-results" %}
{% endif %}
{% for result_set in book_results|slice:"1:" %} {% if result_set.results %}
{% if not result_set.connector.local %}

Results from {% if result_set.connector.name %}{{ result_set.connector.name }}{% else %}{{ result_set.connector.identifier }}{% endif %}

{% endif %}
    {% for result in result_set.results %}
  • {% csrf_token %}
    {% include 'snippets/search_result_text.html' with result=result link=False %}
  • {% endfor %}
{% endif %} {% endfor %} {% if local_results.results %} {% include 'snippets/toggle/close_button.html' with text="Hide results from other catalogues" small=True controls_text="more-results" %} {% endif %}

Matching Users

{% if not user_results %}

No users found for "{{ query }}"

{% endif %}
    {% for result in user_results %}
  • {% include 'snippets/avatar.html' with user=result %} {% include 'snippets/username.html' with user=result show_full=True %} {% include 'snippets/follow_button.html' with user=result %}
  • {% endfor %}

Lists

{% if not list_results %}

No lists found for "{{ query }}"

{% endif %} {% for result in list_results %} {% endfor %}
{% endwith %} {% endblock %}