{% from 'macros.j2' import import_information_symbol, user_reference %} {{ service_name }} {{ _('Export') }} {% for object, action, activity_log_entries, location_entries, publications, comments, files, qrcode_url in objects %}
#{{ object.object_id }} {{ _('Exported on %(export_date)s', export_date=export_date | babel_format_date) }}

{{ get_object_type_name(action) }} #{{ object.object_id }}: {{ object.name | get_translated_text(metadata_language) }}

{{ _('Information') }}

{% with data = object.data %} {% with schema = object.schema %} {% include "pdfexport/object.html" %} {% endwith %} {% endwith %} {% if object.eln_import_id is not none %}

{{ _('Import') }}

{% set eln_import_url = eln_import_urls.get(object.object_id) %} {{ _('This object was imported from .eln file #%(eln_import_id)s by %(user_ref)s.', eln_import_id=object.eln_import_id, eln_import_url=url_for('frontend.eln_import', eln_import_id=object.eln_import_id), user_ref=user_reference(object.eln_import.user)) }} {% if eln_import_url is not none and eln_import_url.startswith('http') %}{{ _('The original URL is %(eln_import_url)s.', eln_import_url=eln_import_url) }}{% endif %}

{% endif %} {% if activity_log_entries %}

{{ _('Activity Log') }}

{% endif %} {% if location_entries %}

{{ _('Locations') }}

{% endif %} {% if publications %}

{{ _('Publications') }}

{% endif %} {% if comments %}

{{ _('Comments') }}

{% endif %} {% if files %}

{{ _('Files') }}

{% for file in files %} {% if not file.is_hidden and file.storage == 'database' %} {% for file_extension in ['.png', '.jpg', '.jpeg'] %} {% if file.original_file_name.endswith(file_extension) %}

{{ _('File') }} #{{ file.id }}: {{ file.title }}

{% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %}
{% endfor %}