diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index 935e39ca8..e67aa1ed9 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -9,15 +9,13 @@

{{ book.title }}{% if book.subtitle %}: {{ book.subtitle }}{% endif %} -

- {% if book.series or book.author %} -

{% if book.series %} ({{ book.series }}{% if book.series_number %} #{{ book.series_number }}{% endif %})
{% endif %} - {% if book.authors %} +

+ {% if book.authors %} +

by {% include 'snippets/authors.html' with book=book %} - {% endif %}

{% endif %} @@ -54,14 +52,39 @@ {% endif %} -
- {% for field in info_fields %} - {% if field.value %} -
{{ field.name }}:
-
{{ field.value }}
+
+
+ {% if book.isbn_13 %} +
+
ISBN:
+
{{ book.isbn_13 }}
+
+ {% endif %} + + {% if book.oclc_number %} +
+
OCLC Number:
+
{{ book.oclc_number }}
+
+ {% endif %} + + {% if book.asin %} +
+
ASIN:
+
{{ book.asin }}
+
+ {% endif %} +
+ +

+ {% if book.physical_format %}{{ book.physical_format | title }}{% if book.pages %},
{% endif %}{% endif %} + {% if book.pages %}{{ book.pages }} pages{% endif %} +

+ + {% if book.openlibrary_key %} +

View on OpenLibrary

{% endif %} - {% endfor %} -
+
@@ -150,6 +173,29 @@
+
+ {% if book.subjects %} +
+

Subjects

+ +
+ {% endif %} + + {% if book.subject_places %} +
+

Places

+ +
+ {% endif %} +
diff --git a/bookwyrm/views.py b/bookwyrm/views.py index d493d9ae1..d7424d515 100644 --- a/bookwyrm/views.py +++ b/bookwyrm/views.py @@ -676,14 +676,6 @@ def book_page(request, book_id): 'other_edition_shelves': other_edition_shelves, 'readthroughs': readthroughs, 'path': '/book/%s' % book_id, - 'info_fields': [ - {'name': 'ISBN', 'value': book.isbn_13}, - {'name': 'OCLC number', 'value': book.oclc_number}, - {'name': 'OpenLibrary ID', 'value': book.openlibrary_key}, - {'name': 'Goodreads ID', 'value': book.goodreads_key}, - {'name': 'Format', 'value': book.physical_format}, - {'name': 'Pages', 'value': book.pages}, - ], 'next': next_page, 'prev': prev_page, }