{% extends "layout.html" %}
{% block headers %}
<script src="/static/js/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" type="text/css" href="/static/css/pub.css" />
{% endblock %}

{% block body %}
{% set doi = item.doi %}
{% set pid = item.collection_id %}
{% set uuid = item.container_uuid %}
{% set item_type = "collection" %}

{% include 'public_metadata.html' %}

<div id="data">
    <h3>DATASETS</h3>
    <ul>
{% for dataset in datasets %}
        <li>
            [{{dataset.type}}] <a href="/datasets/{{dataset.container_uuid}}" title="first online {{dataset.date[:10]}}">{{dataset.title}}</a>
        </li>
{% endfor %}
    </ul>
</div>
{%- if not in_production: %}
{% set debug_vars = {"item":item, "version":version, "versions":versions, "citation":citation, "authors":authors, "contributors":contributors,
                     "tags":tags, "categories":categories, "fundings":fundings, "references": references,
                     "dates":dates, "coordinates":coordinates, "statistics":statistics, "datasets":datasets} %}
{% set djehuty_API   = "/v2/collections/"~pid %}
{% set figshare_html = "https://data.4tu.nl/collections/_/"~pid %}
{% set figshare_API = "https://api.figshare.com/v2/collections/"~pid %}
{% if version %}
    {% set djehuty_API   = djehuty_API~"/versions/"~version %}
    {% set figshare_html = figshare_html~"/"~version %}
    {% set figshare_API  = figshare_API~"/versions/"~version %}
{% endif %}
{% include 'debug.html' %}
{%- endif %}
{% endblock %}
