{% extends 'search/layout.html' %} {% load i18n %} {% block panel %} {% if results %} {% with results|first as local_results %} {% endwith %}
{% for result_set in results|slice:"1:" %} {% if result_set.results %}
{% if not result_set.connector.local %}

{% trans 'Results from' %} {{ result_set.connector.name|default:result_set.connector.identifier }}

{% endif %}
    {% for result in result_set.results %}
  • {% include 'snippets/book_cover.html' with book=result cover_class='is-w-xs is-h-xs' external_path=True %}

    {{ result.title }}

    {{ result.author }} {% if result.year %}({{ result.year }}){% endif %}

    {% csrf_token %}
  • {% endfor %}
{% if not result_set.connector.local %}
{% endif %}
{% endif %} {% endfor %}
{% endif %}

{% if request.user.is_authenticated %} {% if not remote %} {% trans "Load results from other catalogues" %} {% else %} {% trans "Manually add book" %} {% endif %} {% else %} {% trans "Log in to import or add books." %} {% endif %}

{% endblock %}