diff --git a/templates/semantic-ui/invenio_app_rdm/records/details/details.html b/templates/semantic-ui/invenio_app_rdm/records/details/details.html new file mode 100644 index 0000000..d3818cb --- /dev/null +++ b/templates/semantic-ui/invenio_app_rdm/records/details/details.html @@ -0,0 +1,338 @@ +{# + Copyright (C) 2020-2021 CERN. + Copyright (C) 2020-2021 Northwestern University. + Copyright (C) 2021 New York University. + + 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_section_custom_fields, show_references, show_add_titles, +show_alternate_identifiers, show_related_identifiers, show_funding, show_dates %} + +{% set hasContent = namespace(value=false) %} +{% set hasContent.value = record.ui.additional_titles or + metadata.identifiers or + record.ui.related_identifiers or + metadata.funding or + record.ui.dates or + metadata.references +%} + +{# Check if custom field has values if no other content #} +{% if record.ui.custom_fields and not hasContent.value %} + {% for section_cfg in custom_fields_ui %} + {% for field_cfg in section_cfg.fields %} + {% if record.custom_fields.get(field_cfg.field) %} + {% set hasContent.value = true %} + {% endif %} + {% endfor %} + {% endfor %} +{% endif %} + +{% set rights = record.ui.get('rights') %} +{% set funding = record.ui.get('funding') %} + +{% if hasContent.value %} +