{# -*- coding: utf-8 -*- Copyright (C) 2020-2021 CERN. Copyright (C) 2020-2021 Northwestern University. Copyright (C) 2021 New York University. Copyright (C) 2020-2022 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/records/macros/detail.html" import show_references, show_add_titles, show_alternate_identifiers, show_related_identifiers, show_funding, show_dates %} {%- from "invenio_theme_tuw/macros/detail.html" import show_licenses %} {%- set hasContent = record.ui.additional_titles or metadata.identifiers or record.ui.related_identifiers or metadata.funding or record.ui.dates or metadata.references %} {%- set rights = record.ui.get("right") %} {%- set active = true %} {%- if hasContent %}

{{ _('Additional details') }}

{#- Tabs #} {#- Content #} {%- set active = true %} {%- if record.ui.additional_titles %} {%- set active = false %} {%- endif %} {%- if metadata.identifiers %} {%- set active = false %} {%- endif %} {%- if record.ui.related_identifiers %} {%- set active = false %} {%- endif %} {%- if metadata.funding %} {%- set active = false %} {%- endif %} {%- if record.ui.dates %} {%- set active = false %} {%- endif %} {%- if metadata.references %} {%- endif %} {%- endif %} {# Probably to be removed {%- from "invenio_app_rdm/records/macros/detail.html" import list_formats, list_languages, list_sizes, show_add_descriptions, show_add_titles, show_dates, show_detail, show_funding, show_references, show_related_identifiers, show_alternate_identifiers %}
{{ _('Details')}}

{{ show_detail(_('Licenses'), show_licenses(record.ui.get('rights'))) if metadata.rights }} {{ show_detail(_('Resource type'), record.ui.resource_type.title_l10n) if record.ui.resource_type }} {{ show_detail(_('Publication date'), record.ui.publication_date_l10n) if record.ui.publication_date_l10n }} {{ show_detail(_('Publisher'), metadata.publisher) if metadata.publisher }} {{ show_detail(_('Additional titles'), show_add_titles(record.ui.additional_titles)) if metadata.additional_titles }} {{ show_detail(_('Additional descriptions'), show_add_descriptions(record.ui.additional_descriptions)) if record.ui.additional_descriptions }} {{ show_detail(_('Dates'), show_dates(record.ui.dates)) if record.ui.dates }} {{ show_detail(_('Languages'), list_languages(record.ui.languages)) if record.ui.languages }} {{ show_detail(_('Formats'), list_formats(metadata.formats)) if metadata.formats }} {{ show_detail(_('Sizes'), list_sizes(metadata.sizes)) if metadata.sizes }} {{ show_detail(_('Funding'), show_funding(metadata.funding)) if metadata.funding }} {{ show_detail(_('Alternate identifiers'), show_alternate_identifiers(metadata.identifiers)) if metadata.identifiers }} {{ show_detail(_('Related works'), show_related_identifiers(record.ui.related_identifiers)) if record.ui.related_identifiers }} {{ show_detail(_('References'), show_references(metadata.references)) if metadata.references }}

#}