{# Copyright (C) 2020 CERN. Copyright (C) 2020 Northwestern University. Copyright (C) 2021 TU Wien. Invenio RDM Records is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {%- from "invenio_app_rdm/landing_page/macros/version.html" import show_version %} {#
{{ _('Metrics')}}

{%- include "invenio_app_rdm/landing_page/details/stats.html" %}
#} {#
{{ _('Versions')}}

{{ show_version(metadata.version, record.ui.publication_date_l10n_medium, None) }}

Cite all versions? You can cite all versions by using the DOI {{ metadata.identifiers|doi_identifier }}. This DOI represents all versions, and will always resolve to the latest one. Read more.

#} {%- if config.get("APP_RDM_RECORD_EXPORTERS") -%} {# if no export formats are specified, don't bother showing the box #}
{{ _('Export')}}

{# dynamically create the list of export formats #} {%- for fmt, val in config.get("APP_RDM_RECORD_EXPORTERS", {}).items() -%} {%- set name = val.get("name", fmt) -%} {%- if pid_value is not defined -%} {# in older render_template calls, it may be that no 'pid_value' was specified #} {# and the 'record' was specified as RDMRecord instead of as RecordItem #} {# TODO clean up those calls and this #} {%- set pid_value = record.pid.pid_value -%} {%- endif -%} {%- set export_url = url_for('invenio_app_rdm.export_record', pid_value=pid_value, export_format=fmt) -%} {{ name }} {%- endfor -%}
{%- endif -%}