{% block bodyid %}book-detail{% endblock %}
{% block body %}
- {% cache 86400 book_wide book.pk book|status:user %}
+ {% get_current_language as LANGUAGE_CODE %}
+ {% cache 86400 book_wide book.pk book|status:user LANGUAGE_CODE %}
{% include 'catalogue/book_wide.html' %}
{% endcache %}
</div>
<div class="box" id="book-short">
- {% cache 86400 catalogue_book_short book.pk book|status:user %}
+ {% get_current_language as LANGUAGE_CODE %}
+ {% cache 86400 book_short book.pk book|status:user LANGUAGE_CODE %}
{% include 'catalogue/book_short.html' %}
{% endcache %}
</div>
{% spaceless %}
+ {% load cache %}
+ {% load i18n %}
{% load pagination_tags %}
{% load class_name from catalogue_tags %}
+ {% load status from catalogue_tags %}
{% load ssi_include from ssify %}
{% autopaginate object_list 10 %}
<ol class='work-list'>
{% for item in object_list %}
<li class='{{ item|class_name }}-item'>
- {% ssi_include item.short_html_url_name pk=item.pk %}
+ {% 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 %}
+ {% else %}
+ {% ssi_include item.short_html_url_name pk=item.pk %}
+ {% endif %}
</li>
{% endfor %}
</ol>