- <ol>
- {% for book in object_list %}
- <li>
- {% if user_is_owner %}
- <a href="{% url remove_from_shelf last_tag.slug book.slug %}" class="remove-from-shelf">Usuń</a>
+
+ {% if object_list %}
+ <ol>
+ {% for book in object_list %}
+ <li>
+ {% if user_is_owner %}
+ <a href="{% url remove_from_shelf last_tag.slug book.slug %}" class="remove-from-shelf">{% trans "Delete" %}</a>
+ {% endif %}
+ {{ book.short_html }}</li>
+ {% endfor %}
+ </ol>
+ {% else %}
+ {% if only_author %}
+ {% if last_tag.alive %}
+ {% trans "This author's works are copyrighted." %}
+ {% else %}{% comment %} Is dead {% endcomment %}
+ {% if last_tag.in_pd %}
+ <p>{% trans "This author's works are in public domain and will be published on Internet school library of Wolne Lektury soon." %}</p>
+ {% else %}
+ {% comment %} Is dead, but not yet in public domain {% endcomment %}
+ <div>
+ <p>{% trans "This author's works will become part of public domain and will be allowed to be published without restrictions in:" %}</p>
+ {% include "catalogue/pd_counter.html" %}
+ <p>Dowiedz się, dlaczego biblioteki internetowe
+ nie mogą udostępniać dzieł tego autora.</p>
+ </div>
+ {% endif %}