{% extends 'layout.html' %} {% load bookwyrm_tags %} {% load humanize %} {% block content %}

{{ book.title }}{% if book.subtitle %}: {{ book.subtitle }}{% endif %} {% if book.series %} ({{ book.series }}{% if book.series_number %} #{{ book.series_number }}{% endif %})
{% endif %}

{% if book.authors %}

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

{% endif %}
{% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% endif %}
{% include 'snippets/book_cover.html' with book=book size=large %} {% include 'snippets/rate_action.html' with user=request.user book=book %} {% include 'snippets/shelve_button.html' %} {% if request.user.is_authenticated and not book.cover %}
{% csrf_token %}
{% endif %}
{% 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 %}

{% include 'snippets/stars.html' with rating=rating %} ({{ review_count }} review{{ reviews|length|pluralize }})

{% include 'snippets/trimmed_text.html' with full=book|book_description %} {% if request.user.is_authenticated and perms.bookwyrm.edit_book and not book|book_description %}
{% endif %} {% if book.parent_work.editions.count > 1 %}

{{ book.parent_work.editions.count }} editions

{% endif %}
{# user's relationship to the book #}
{% for shelf in user_shelves %}

This edition is on your {{ shelf.shelf.name }} shelf. {% include 'snippets/shelf_selector.html' with current=shelf.shelf %}

{% endfor %} {% for shelf in other_edition_shelves %}

A different edition of this book is on your {{ shelf.shelf.name }} shelf. {% include 'snippets/switch_edition_button.html' with edition=book %}

{% endfor %} {% for readthrough in readthroughs %} {% include 'snippets/readthrough.html' with readthrough=readthrough %} {% endfor %}
{% if request.user.is_authenticated %}
{% include 'snippets/create_status.html' with book=book hide_cover=True %}
{% csrf_token %}
{% endif %}
{% for tag in tags %} {% include 'snippets/tag.html' with book=book tag=tag user_tags=user_tags %} {% endfor %}
{% if book.subjects %}

Subjects

    {% for subject in book.subjects %}
  • {{ subject }}
  • {% endfor %}
{% endif %} {% if book.subject_places %}

Places

    {% for place in book.subject_placess %}
  • {{ place }}
  • {% endfor %}
{% endif %}
{% for review in reviews %}
{% include 'snippets/status.html' with status=review hide_book=True depth=1 %}
{% endfor %}
{% for rating in ratings %}
{% include 'snippets/avatar.html' with user=rating.user %}
{% include 'snippets/username.html' with user=rating.user %}
rated it
{% include 'snippets/stars.html' with rating=rating.rating %}
{% endfor %}
{% endblock %}