RO-Crate Summary
ROCrate ID
{% if published %}
{{ id_value }}
{% else %} {{ id_value }} {% endif %}
{% if doi %}
{% endif %} {% if release_date %}
Release Date
{{ release_date }}
{% endif %} {% if created_date %}
Date Created
{{ created_date }}
{% endif %} {% if updated_date %}
Date Modified
{{ updated_date }}
{% endif %} {% if description %}
Description
{{ description }}
{% endif %} {% if authors %}
{% endif %} {% if publisher %}
Publisher
{{ publisher }}
{% endif %} {% if principal_investigator %}
Principal Investigator
{{ principal_investigator }}
{% endif %} {% if contact_email %}
Contact Email
{{ contact_email }}
{% endif %} {% if license_value %}
{% endif %} {% if confidentiality_level %}
Confidentiality Level
{{ confidentiality_level }}
{% endif %} {% if keywords %}
Keywords
{% if keywords is string %}{{ keywords }}{% else %}{{
keywords|join(', ') }}{% endif %}
{% endif %} {% if statistical_summary_info %}
{% endif %} {% if citation %}
{% endif %} {% if related_publications %}
{% endif %}
{% if datasets %}
Datasets {{ datasets|length }}
{% endif %} {% if software %}
Software {{ software|length }}
{% endif %} {% if computations %}
Computations {{ computations|length }}
{% endif %} {% if samples %}
Samples {{ samples|length }}
{% endif %} {% if experiments %}
Experiments {{ experiments|length }}
{% endif %} {% if instruments %}
Instruments {{ instruments|length }}
{% endif %} {% if schemas %}
Schemas {{ schemas|length }}
{% endif %} {% if other_items %}
Other {{ other_items|length }}
{% endif %}
{% macro render_table(items, tab_id, is_active, headers,
date_field='date') %}
{% if items %}
{% for header in headers %}
| {{ header }} |
{% endfor %}
{% for item in items %}
| {{ item.name }} |
{{ item.description_display }}
|
{{ item.content_status | safe }} |
{{ item[date_field] }} |
{% endfor %}
{% else %}
No {{ tab_id }} found in this RO-Crate.
{% endif %}
{% endmacro %} {% macro render_schema_table(items, tab_id, is_active) %}
{% if items %}
| Name |
Description |
Access |
Properties |
{% for item in items %}
| {{ item.name }} |
{{ item.description_display }}
|
{{ item.content_status | safe }} |
{% if item.schema_properties %}
Show Properties
{% else %} No properties found {% endif %}
|
{% if item.schema_properties %}
| Property |
Type |
Description |
{% for prop_name, prop_details in
item.schema_properties.items() %}
| {{ prop_name }} |
{{ prop_details.type }} |
{{ prop_details.description or "No description" }}
|
{% endfor %}
|
{% endif %} {% endfor %}
{% else %}
No {{ tab_id }} found in this RO-Crate.
{% endif %}
{% endmacro %} {% macro render_other_table(items, tab_id, is_active) %}
{% if items %}
| Name |
Description |
Access |
@id |
{% for item in items %}
| {{ item.name }} |
{{ item.description_display }}
|
{{ item.content_status | safe }} |
{{ item.id }} |
{% endfor %}
{% else %}
No {{ tab_id }} found in this RO-Crate.
{% endif %}
{% endmacro %} {{ render_table(datasets, 'datasets', datasets, ['Name',
'Description', 'Access', 'Release Date'], 'date') }} {{
render_table(software, 'software', not datasets and software, ['Name',
'Description', 'Access', 'Release Date'], 'date') }} {{
render_table(computations, 'computations', not datasets and not software
and computations, ['Name', 'Description', 'Access', 'Date Created'],
'date') }} {{ render_table(samples, 'samples', not datasets and not
software and not computations and samples, ['Name', 'Description',
'Identifier', 'Date Created'], 'date') }} {{ render_table(experiments,
'experiments', not datasets and not software and not computations and not
samples and experiments, ['Name', 'Description', 'Type', 'Date Created'],
'date') }} {{ render_table(instruments, 'instruments', not datasets and
not software and not computations and not samples and not experiments and
instruments, ['Name', 'Description', 'Manufacturer', 'Date Created'],
'date') }} {{ render_schema_table(schemas, 'schemas', not datasets and not
software and not computations and not samples and not experiments and not
instruments and schemas) }} {{ render_other_table(other_items, 'other',
not datasets and not software and not computations and not samples and not
experiments and not instruments and not schemas and other_items) }}