{% extends "item_base.html" %} {% load static %} {% load i18n %} {% load l10n %} {% load humanize %} {% load admin_url %} {% load mastodon %} {% load oauth_token %} {% load truncate %} {% load strip_scheme %} {% load thumb %} {% block head %} {% if item.author %} {% endif %} {% if item.isbn %} {% endif %} {% endblock %} {% block details %}
{% if item.rating %} {{ item.rating | floatformat:1 }} ({{ item.rating_count }}人评分) {% else %} {% trans '评分:评分人数不足' %} {% endif %}
{% if item.isbn %}{% trans 'ISBN:' %}{{ item.isbn }}{% endif %}
{% if item.author %}{% trans '作者:' %} {% for author in item.author %} {{ author }}{% if not forloop.last %} / {% endif %} {% endfor %} {% endif %}
{% if item.pub_house %}{% trans '出版社:' %}{{ item.pub_house }}{% endif %}
{% if item.subtitle %}{% trans '副标题:' %}{{ item.subtitle }}{% endif %}
{% if item.translator %}{% trans '译者:' %} {% for translator in item.translator %} {{ translator }}{% if not forloop.last %} / {% endif %} {% endfor %} {% endif %}
{% if item.orig_title %}{% trans '原作名:' %}{{ item.orig_title }}{% endif %}
{% if item.language %}{% trans '语言:' %}{{ item.language }}{% endif %}
{%if item.pub_year %}{% trans '出版时间:' %}{{ item.pub_year }}{% trans '年' %}{% if item.pub_month %}{{ item.pub_month }}{% trans '月' %}{% endif %}{% endif %}
{% if item.binding %}{% trans '装帧:' %}{{ item.binding }}{% endif %}
{% if item.price %}{% trans '定价:' %}{{ item.price }}{% endif %}
{% if item.pages %}{% trans '页数:' %}{{ item.pages }}{% endif %}
{% if item.imprint %}{% trans '出品方:' %}{{ item.imprint }}{% endif %}
{% if item.other_info %} {% for k, v in item.other_info.items %}
{{ k }}:{{ v | urlize }}
{% endfor %} {% endif %} {% if item.last_editor and item.last_editor.preference.show_last_edit %}
{% trans '最近编辑者:' %}{{ item.last_editor | default:"" }}
{% endif %}
{% if user.is_authenticated %} {% trans '编辑' %}{{ item.demonstrative }} {% endif %}
{% endblock %} {% block sidebar %} {% with related_books=item.get_related_books %} {% if related_books.count > 0 %}
{% trans '其它版本' %}
{% for b in related_books %}

{{ b.title }} ({{ b.pub_house | default:'' }} {{ b.pub_year | default:'' }}) {% for res in b.external_resources.all %} {{ res.site_name.label }} {% endfor %}

{% endfor %}
{% endif %} {% endwith %} {% if item.isbn %}
{% trans '借阅或购买' %}
{% endif %} {% endblock %}