{% load i18n l10n ishtar_helpers link_to_window %} {% with can_edit_current_item=item|can_edit_item:request %}

{% trans "Associated documents" %}

{% if item.documents.count %} {% for doc in item.documents.all %}{% if not forloop.counter0 %} {% if not IS_HISTORY and permission_change_document %}{% endif %} {% if not IS_HISTORY and permission_change_item %}{% endif %} {% endif %} {% if not IS_HISTORY and permission_change_document %}{% endif %} {% if not IS_HISTORY and permission_change_item %}{% endif %} {% endfor %}
  {% trans "Title" %} {% trans "Type" %} {% trans "Authors" %} {% trans "Numerical ressource" %}  
{{doc.title|default:'-'}} {{doc.source_type|default:'-'}} {{doc.authors_list|default:'-'}} {% if doc.associated_url %} {% trans "Link" %} {% else%}-{% endif %} {% autoescape off %}{% if doc|can_edit_item:request %} {% else %}–{% endif %}{% endautoescape %} {% autoescape off %} {% endautoescape %}
{% elif item.documents_list %} {% include "ishtar/blocks/api_document_list.html" %} {% endif %} {% endwith %}