{% block bodyid %}book-detail{% endblock %}
{% block body %}
- {% get_current_language as LANGUAGE_CODE %}
- {% cache 86400 book_wide book.pk book|status:user LANGUAGE_CODE %}
- {% include 'catalogue/book_wide.html' %}
- {% endcache %}
+ {% include 'catalogue/book_wide.html' %}
{% work_list book_children %}
{% spaceless %}
{% load i18n %}
+ {% load cache %}
{% load catalogue_tags %}
{% load book_shelf_tags from social_tags %}
{% load static %}
{% block cover-area-extra %}{% endblock %}
</div>
+ {% get_current_language as LANGUAGE_CODE %}
+ {% cache 86400 book_box_head_tags book.pk LANGUAGE_CODE %}
<div class="book-box-head">
<div class="author">
{% for tag in tags.author %}
{% endif %}
{% endwith %}
</div>
+ {% endcache %}
</div>
{% book_shelf_tags book.pk %}
+ {% cache 86400 book_box_tools book.pk book|status:request.user LANGUAGE_CODE %}
{% if book|status:request.user != 'closed' %}
<ul class="book-box-tools">
<li class="book-box-read">
{% else %}
<p class="book-box-tools">{% trans "For now this work is only available for our subscribers." %}</p>
{% endif %}
+ {% endcache %}
{% block book-box-extra-info %}{% endblock %}
{% block box-append %}{% endblock %}
</div>
</div>
<div class="box" id="book-short">
- {% get_current_language as LANGUAGE_CODE %}
- {% cache 86400 book_short book.pk book|status:user LANGUAGE_CODE %}
- {% include 'catalogue/book_short.html' %}
- {% endcache %}
+ {% include 'catalogue/book_short.html' %}
</div>
{% endblock footer %}
{% spaceless %}
{% load cache %}
- {% load i18n %}
{% load pagination_tags %}
{% load class_name from catalogue_tags %}
{% load status from catalogue_tags %}
{% for item in object_list %}
<li class='{{ item|class_name }}-item'>
{% if item|class_name == 'Book' %}
- {% get_current_language as LANGUAGE_CODE %}
- {% cache 86400 book_short item.pk item|status:request.user LANGUAGE_CODE %}
- {% include "catalogue/book_short.html" with book=item %}
- {% endcache %}
+ {% include "catalogue/book_short.html" with book=item %}
{% else %}
{% ssi_include item.short_html_url_name pk=item.pk %}
{% endif %}