{% comment %} The books-details template is used to display a single instance. This template is only used on the details view for a book instance. {% endcomment %} {% load static %}
{% include "components/book-header.html" with book=instance %}
{% if not hide_nav %} {% include "components/navigation-tabs.html" with book=instance is_biblio=True %} {% endif %} {% if book.pub_place.count %}

Place{{ book.pub_place.count|pluralize }} of Publication

{% for place in book.pub_place.all %} {{ place }}{% if not forloop.last %}; {% endif %} {% endfor %}

{% endif %} {% if book.publisher %}

Publisher

{{ book.publisher.name }}

{% endif %}

Publication Year

{{ book.copyright_year|default:'' }}

{% if book.languages.count %}

Language{{ book.languages.count|pluralize }}

{% for language in book.languages.all %} {% if not forloop.last %} {{ language }};  {% else %} {{ language }} {% endif %} {% endfor %}

{% endif %} {% if book.location %}

Location

{{ book.location }}

{% endif %} {% if book.uri %}

Where to find it

{{ book.uri }}

{% endif %} {% if book.collected_set.all %}
{# TODO: fix style so color is black and not blue #}

Book Sections

{% for section in book.collected_set.all %}

{{ section.display_title }}

{% for author in section.work.authors.all %} {{ author.firstname_last }}{% if not forloop.last %}; {% endif %} {% endfor %}

{% endfor %}
{% endif %} {% if book.work.instance_set.all|length > 1 %}

Other Copies and Editions

{% for instance in book.work.instance_set.all %} {% if instance.id != book.id %} {% url 'books:detail' instance.slug as instance_url %} {% include 'components/books-list-item.html' with book=instance href=instance_url thumbnail_size='smthumb' %} {% endif %} {% endfor %}
{% endif %} {% if book.related_instances %}

Related Books

{% for instance in book.related_instances %} {% url 'books:detail' instance.slug as instance_url %} {% include 'components/books-list-item.html' with book=instance href=instance_url thumbnail_size='smthumb' %} {% endfor %}
{% endif %}