2020-01-29 09:05:27 +00:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
{% block content %}
|
2020-05-03 19:59:06 +00:00
|
|
|
<div class="content-container">
|
|
|
|
<h2>Search results</h2>
|
|
|
|
{% for result_set in results %}
|
|
|
|
<section>
|
|
|
|
{% if not result_set.connector.self %}
|
|
|
|
<h3>
|
|
|
|
Results from <a href="{{ result_set.connector.base_url }}">{{ result_set.connector.name }}</a>
|
|
|
|
</h3>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for result in result_set.results %}
|
2020-01-29 09:05:27 +00:00
|
|
|
<div>
|
2020-05-03 19:59:06 +00:00
|
|
|
<a href="/book/{{ result.key }}" target="_blank">{{ result.title }}</a> by {{ result.author }} ({{ result.year }})
|
2020-01-29 09:05:27 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-05-03 19:59:06 +00:00
|
|
|
</section>
|
|
|
|
{% endfor %}
|
2020-01-29 09:05:27 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|