{# -*- coding: utf-8 -*- Copyright (C) 2020-2021 CERN. Copyright (C) 2020-2021 Northwestern University. Copyright (C) 2020-2022 TU Wien. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {#- Versions #}
{{ _('Versions')}}

{#- DOI #}
Digital Object Identifier

{%- set doi = None %} {%- if record and record.pids and record.pids.doi -%} {%- set doi = record.pids.doi.identifier -%} {%- endif %} {%- if not doi %} {%- set doi = metadata.identifiers|tuw_doi_identifier -%} {%- endif %} {%- if doi -%} DOI: {{ doi }} {%- else %} No DOI available {%- endif %}

{# Cite As #}
{{ _('Cite As')}}

{#- Export As #} {#- if no export formats are specified, don't bother showing the box #} {%- if config.get("APP_RDM_RECORD_EXPORTERS") -%}
{{ _('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 is_preview %} {%- set export_url = url_for('invenio_app_rdm_records.record_export', pid_value=record.id, export_format=fmt, preview=1) %} {%- else %} {%- set export_url = url_for('invenio_app_rdm_records.record_export', pid_value=record.id, export_format=fmt) %} {%- endif %} {%- endfor %}
{%- endif %}