{# -*- coding: utf-8 -*- Copyright (C) 2021 Graz University of Technology. Invenio-Records-Marc21 is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. For the original code see the NOTE below. #} {# NOTE: copy pasted code from invenio_app_rdm/records/detail.html it was necessary to copy paste it because it was necessary to copy paste the macros to modify those. To use then the modified macros the following line is necessary and therefore the copy paste was necessary. Further info see macros. #} {% from "invenio_records_marc21/records/macros/files.html" import file_list_box, preview_file_box %} {% block record_files %} {%- if record.files.enabled -%} {%- if permissions.can_read_files -%} {# record has files AND user can see files #} {%- set files = files|order_entries %} {%- if files|has_previewable_files -%} {%-set preview_file = files|select_preview_file(default_preview=record.files.default_preview) %} {{ preview_file_box(preview_file, pid, is_preview, record) }} {%- endif -%} {{ file_list_box(files, pid, is_preview, record) }} {% else %} {# record has files BUT user cannot see files #}
{{ _("Files") }}
{{ record.ui.access_status.title_l10n }}

{{ record.ui.access_status.description_l10n }}

{% if record.access.embargo.reason %}

{{_("Reason")}}: {{record.access.embargo.reason}}

{% endif%}
{%- endif %} {%- endif %} {% endblock record_files %}