{% if type == "catalog" %}Catalog
{% elif type == "book" %}Book{% endif %}
{% if not book.published %}
Draft
{% endif %}
|
{% if type == "catalog" %}
Manufacturer |
{{ book.manufacturer }} |
Scales |
{{ book.get_scales }} |
{% elif type == "book" %}
Title |
{{ book.title }} |
Authors |
{% for a in book.authors.all %}- {{ a }}
{% endfor %}
|
Publisher |
{{ book.publisher }} |
{% endif %}
ISBN |
{{ book.ISBN|default:"-" }} |
Language |
{{ book.get_language_display }} |
Number of pages |
{{ book.number_of_pages|default:"-" }} |
Publication year |
{{ book.publication_year|default:"-" }} |
{% if book.description %}
Description |
{{ book.description | safe }} |
{% endif %}
{% if request.user.is_staff %}
Purchase |
Shop |
{{ book.shop|default:"-" }}
{% if book.shop.website %} {% endif %}
|
Purchase date |
{{ book.purchase_date|default:"-" }} |
Price ({{ site_conf.currency }}) |
{{ book.price|default:"-" }} |
{% endif %}
{% if properties %}
Properties |
{% for p in properties %}
{{ p.property }} |
{{ p.value }} |
{% endfor %}
{% endif %}
Documents |
{% for d in documents.all %}
{{ d.description }} |
{{ d.filename }} |
{{ d.file.size | filesizeformat }} |
{% endfor %}
{{ book.notes | safe }}
{% if request.user.is_staff %}
Edit{% endif %}