openlibrary search

This commit is contained in:
Mouse Reeve
2020-01-29 01:05:27 -08:00
parent dd478a3587
commit c5d0e02166
14 changed files with 91 additions and 63 deletions

View File

@ -0,0 +1,13 @@
{% extends 'layout.html' %}
{% block content %}
<div id="content">
<div>
<h1>Search results</h1>
{% for result in results %}
<div>
<a href="/work/{{ result.olkey }}">{{ result.title }}</a> by {{ result.author }} ({{ result.year }})
</div>
{% endfor %}
</div>
</div>
{% endblock %}

View File

@ -82,6 +82,7 @@
<a href="{{ activity.book.openlibrary_key }}">{{ activity.book.data.title }}</a>
by
<a href="" class="author">{{ activity.book.authors.first.data.name }}</a>
<blockquote>{{ book.data.description }}</blockquote>
</p>
</div>
{% elif activity.fedireads_type == 'Review' %}
@ -94,6 +95,7 @@
<a href="{{ activity.book.openlibrary_key }}">{{ activity.book.data.title }}</a>
by
<a href="" class="author">{{ activity.book.authors.first.data.name }}</a>
<blockquote>{{ book.data.description }}</blockquote>
</p>
<h3>{{ activity.name }}</h3>