{% extends "base.html" %}
{% block title %}{{ super() }} Collections {% endblock %}
{% block crumbs %}{{ super() }}
/ <a href="./collections">Collections</a>
{% endblock %}
{% block body %}
    <section id="collections" itemscope itemtype="https://schema.org/DataCatalog">
    <meta itemprop="url" content="{{ config['server']['url'] }}" />
    <meta itemprop="name" content="{{ config['metadata']['identification']['title'] | striptags }}" />
    <meta itemprop="description" content="{{ config['metadata']['identification']['description'] | striptags }}" />
      <h2>Collections in this service</h2>
            <table class="striped">
              <thead>
              <tr>
                <th>Name</th>
                <th>Description</th>
              </tr>
              </thead>
              <tbody>
                {% for k, v in config['datasets'].items() %}
                <tr itemprop="dataset" itemscope itemtype="https://schema.org/Dataset">
                  <td data-label="name">
                    <meta itemprop="url" content="{{ config['server']['url'] }}/collections/{{ k }}" />
                    <a  title="{{ v['title'] | striptags | truncate }}"
                      href="{{ config['server']['url'] }}/collections/{{ k }}">
                      <span itemprop="name">{{ v['title'] | striptags | truncate }}</span></a>
                  </td>
                  <td itemprop="description" data-label="description">
                    {{ v['description'] | striptags | truncate }}
                  </td>
                </tr>
                {% endfor %}
              </tbody>
            </table>
    </section>
{% endblock %}
