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 %}
|
2020-05-09 19:16:59 +00:00
|
|
|
{% if result_set.results %}
|
2020-05-03 19:59:06 +00:00
|
|
|
<section>
|
2020-05-03 20:12:42 +00:00
|
|
|
{% if not result_set.connector.local %}
|
2020-05-03 19:59:06 +00:00
|
|
|
<h3>
|
2020-05-09 19:16:59 +00:00
|
|
|
Results from <a href="{{ result_set.connector.base_url }}" target="_blank">{% if result_set.connector.name %}{{ result_set.connector.name }}{% else %}{{ result_set.connector.identifier }}{% endif %}</a>
|
2020-05-03 19:59:06 +00:00
|
|
|
</h3>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% for result in result_set.results %}
|
2020-01-29 09:05:27 +00:00
|
|
|
<div>
|
2020-05-10 19:56:59 +00:00
|
|
|
<form action="/resolve_book" method="POST">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="remote_id" value="{{ result.key }}">
|
|
|
|
<button type="submit">{{ result.title }} by {{ result.author }} ({{ result.year }})</button>
|
|
|
|
</form>
|
2020-01-29 09:05:27 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2020-05-03 19:59:06 +00:00
|
|
|
</section>
|
2020-05-09 19:16:59 +00:00
|
|
|
{% endif %}
|
2020-05-03 19:59:06 +00:00
|
|
|
{% endfor %}
|
2020-01-29 09:05:27 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|