{# -*- coding: utf-8 -*- Copyright (C) 2021-2022 Graz University of Technology. invenio-records-lom is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- extends "invenio_app_rdm/records/detail.html" %} {%- from "invenio_records_lom/records/macros/tree.html" import make_dep_tree %} {% block javascript %} {#{{ super() }}#} {{ webpack['invenio-records-lom-landing-page.js'] }} {% endblock javascript %} {% block head_title %} {{ record.ui.title }} {% endblock head_title %} {# Labels for version, resource-type, access-status #} {% block record_header %} {% block record_header_button %} {% if is_preview and not is_preview_submission_request and can_manage_record and is_draft %} {% endif %} {% endblock record_header_button %} {# parent-template has record_management here, this isn't enabled for lom for now... #}
{# parent-template has this here, but which date to show? {{ _('Published') }} {{ record.ui.publication_date_l10n_long }} #} {# version would only be an out-of-context number, could show this after implementing version side-card {{ _('Version {version_number}').format(version_number=record.ui.version) }} #}
{% if record.ui.resource_type %} {{ record.ui.resource_type | capitalize }} {% endif %} {% if record.ui.access_status.icon %} {% endif %} {{ record.ui.access_status.title_l10n }}
{% endblock record_header %} {# Title #} {% block record_title %}

{{ record.ui.title }}

{# TODO: make authors clickable, group by role?, revisit graphical layout #} {% for cont in record.ui.contributors %} {{cont.fullname}} ({{cont.role}}) {{"; " if not loop.last}} {% endfor %}
{% endblock record_title %} {# Description #} {% block record_content %} {% if record.ui.generalDescriptions or record.ui.educationalDescriptions %}

{{_('Description')}}

{% for desc in record.ui.generalDescriptions %}

{{ desc | safe }}

{% endfor %} {% for desc in record.ui.educationalDescriptions %}

{{ desc | safe }}

{% endfor %}
{% endif %} {# Relation #} {% if record.metadata.relation %}
{% endif %} {% endblock record_content %} {# Files #} {% block record_files %} {% include "invenio_records_lom/records/files.html" %} {% endblock record_files %} {# Additional Details #} {% block record_details %} {# disable parent-template's additional details block #} {% endblock record_details %} {% block record_sidebar %} {# TODO: invenio's sidebar also has versions, keywords (OEFOS), details, and fancier export card #} {% if show_record_management_menu %} {% endif %} {% if record.stats %} {% include "invenio_records_lom/records/helpers/statistics.html" %} {% endif %} {% include "invenio_app_rdm/records/details/side_bar/licenses.html" %} {% if record.ui.location %} {% endif %} {% if record.ui.courses %} {% endif %} {% if record.ui.classifications %} {% endif %} {% if record.ui.doi %} {% endif %} {% if config.get("LOM_RECORD_EXPORTERS") %} {# if no export formats are specified, don't bother showing the box #} {% endif %} {% include "invenio_app_rdm/records/details/side_bar/technical_metadata.html" %} {% endblock record_sidebar %}