|
{{ data.obj_label|capfirst }}
|
{% if data.obj_type == "catalog" %}
| Manufacturer |
{{ data.manufacturer }}{% if data.manufacturer.website %} {% endif %}
|
| Scales |
{{ data.get_scales }} |
{% elif data.obj_type == "book" %}
| Title |
{{ data.title }} |
| Authors |
{% for a in data.authors.all %}- {{ a }}
{% endfor %}
|
| Publisher |
{{ data.publisher }}
{% if data.publisher.website %} {% endif %}
|
{% elif data.obj_type == "magazineissue" %}
| Magazine |
{{ data.magazine }}
{% if data.magazine.website %} {% endif %}
|
| Publisher |
{{ data.publisher }}
{% if data.publisher.website %} {% endif %}
|
| Issue |
{{ data.issue_number }} |
| Date |
{{ data.publication_year|default:"-" }} / {{ data.get_publication_month_display|default:"-" }} |
{% endif %}
| ISBN |
{{ data.ISBN|default:"-" }} |
| Language |
{{ data.get_language_display }} |
| Number of pages |
{{ data.number_of_pages|default:"-" }} |
{% if data.obj_type == "book" or data.obj_type == "catalog" %}
| Publication year |
{{ data.publication_year|default:"-" }} |
{% endif %}
{% if data.description %}
| Description |
{{ data.description | safe }} |
{% endif %}
{% if request.user.is_staff %}
| Purchase |
| Shop |
{{ data.shop|default:"-" }}
{% if data.shop.website %} {% endif %}
|
| Purchase date |
{{ data.purchase_date|default:"-" }} |
| Price ({{ site_conf.currency }}) |
{{ data.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 %}