|
{{ label|capfirst }}
|
{% 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 }}
{% if book.publisher.website %} {% endif %}
|
{% elif type == "magazineissue" %}
| Magazine |
{{ book.magazine }} |
| Publisher |
{{ book.publisher }}
{% if book.publisher.website %} {% endif %}
|
| Issue |
{{ book.issue_number }} |
| Date |
{{ book.publication_year|default:"-" }} / {{ book.publication_month|default:"-" }} |
{% endif %}
| ISBN |
{{ book.ISBN|default:"-" }} |
| Language |
{{ book.get_language_display }} |
| Number of pages |
{{ book.number_of_pages|default:"-" }} |
{% if type == "boook" or type == "catalog" %}
| Publication year |
{{ book.publication_year|default:"-" }} |
{% endif %}
{% 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 %}
{% if request.user.is_staff %}
Edit{% endif %}