{% extends theme('layouts/1-column.html') %} {% from theme('macros/follow.html') import follow_btn with context %} {% from theme('macros/integrate.html') import integrate_btn with context %} {% from theme('macros/issues.html') import issues_btn with context %} {% from theme('macros/breadcrumb.html') import breadcrumb with context %} {% set meta = { 'title': dataset.full_title, 'description': dataset.description|mdstrip(60)|forceescape, 'image': dataset.organization and dataset.organization.logo(external=True) or '', 'keywords': [_('dataset')] + dataset.tags, 'robots': 'noindex, nofollow' if dataset.is_hidden else '', } %} {% set bundle = 'dataset' %} {% set body_class = 'dataset-display' %} {% set community_subtitle = _('Explore with %(certifier)s', certifier=config.SITE_TITLE ) %} {% set read_only_mode = config.READ_ONLY_MODE %} {% block extra_head %} {% cache cache_duration, 'dataset-extra-head', dataset.id|string, g.lang_code %} {% endcache %} {% endblock %} {% block breadcrumb %} {% cache cache_duration, 'dataset-breadcrumb', dataset.id|string, g.lang_code %}
  • {{ _('Datasets') }}
  • {{ dataset.acronym or dataset.title|truncate(128) }}
  • {% endcache %} {% endblock %} {% block content %} {% cache cache_duration, 'dataset-content', dataset.id|string, g.lang_code, current_user.slug or 'anonymous' %} {{ breadcrumb(self, breadcrum_class=breadcrum_class, toolbar_class=toolbar_class ) }}
    {% if dataset.private %} {{ _('Private') }} {% endif %} {% if dataset.deleted %} {{ _('Deleted') }} {% endif %} {% if dataset.archived %} {% set title = _('This dataset has been archived automatically because it has been deleted from the remote platform.') if dataset.extras.get('harvest:archived') == 'not-on-remote' else _('This dataset has been archived.') %} {{ _('Archived') }} {% endif %}

    {{ dataset.title }} {% if dataset.acronym %}{{ dataset.acronym }}{% endif %}

    {{ follow_btn(dataset) }}
    {% if dataset.organization %} {% if dataset.organization.public_service %}
    {% include theme("svg/certified.svg") %} {{ _('This dataset comes from a certified public service') }}
    {% endif %} {% elif dataset.owner %}
    {% trans date=dataset.created_at|dateformat(format='long'), update=dataset.last_update|dateformat(format='long'), author=dataset.owner.fullname, url=url_for('users.show', user=dataset.owner) %}This dataset has been published on the initiative and under the responsibility of {{author}}
    Published on {{date}} and updated on {{update}}{% endtrans %}
    {% endif %}
    {% if dataset.organization %} {{ _('Producer') }} {% elif dataset.owner %} {{ _('Author') }} {% endif %} {{ _('Informations') }} {{ _('Extras') }}
    {% if dataset.organization %} {% with organization=dataset.organization, producer_type='organization' %} {% include theme('organization/producer-panel.html') %} {% endwith %} {% elif dataset.owner %} {% with organization=dataset.owner, producer_type='owner' %} {% include theme('organization/producer-panel.html') %} {% endwith %} {% endif %}

    {{ _('Informations') }}

    {% if dataset.license %}
    {{ _('License') }}
    {% if dataset.license.url %}{% endif %} {{ dataset.license.title }} {% if dataset.license.url %}{% endif %}
    {% endif %} {# Harvesting source #} {% set source = dataset.extras['remote_url'] %} {% if source %}
    {{ _('Remote source') }}
    {{ _('Remote source') }}
    {% endif%} {# Temporal coverage #} {% if dataset.temporal_coverage %}
    {{ _('Temporal coverage') }}
    {{ dataset.temporal_coverage|daterange(details=True) }}
    {% endif %} {% if dataset.frequency %}
    {{ _('Frequency') }}
    {{ dataset.frequency_label }}
    {% endif %}
    {{ _('Creation date') }}
    {{ dataset.created_at|dateformat(format='long') }}
    {{ _('Modification date') }}
    {{ dataset.last_modified|dateformat(format='long') }}
    {{ _('Latest resource update') }}
    {{ dataset.last_update|dateformat(format='long') }}
    {# Spatial coverage #} {% if dataset.spatial %} {% if dataset.spatial.granularity %}
    {{ _('Territorial coverage granularity') }}
    {{ dataset.spatial.granularity_label }}
    {% endif %} {% if dataset.spatial.zones %}
    {{ _('Territorial coverage') }}
    {% for zone in dataset.spatial.zones %} {{zone.name}}{% if not loop.last %},{% endif %} {% endfor %}
    {% endif %} {% endif %}

    {{ _('Extras') }}

    {{ _('ID') }}
    {{dataset.id}}
    {{ _('Creation date') }}
    {{ dataset.created_at|dateformat(format='long') }}
    {{ _('Modification date') }}
    {{ dataset.last_modified|dateformat(format='long') }}
    {% if dataset.tags %}
    {{_('Tags')}}
    {% endif %}
    {{ dataset.description|markdown }}

    {{ _('Resources') }} {{dataset.resources | length}}

    {% if dataset.community_resources|length or 1 %} {{ _('See also: community resources') }} {% endif %}
    {% set grouped_resources = dataset.resources|group_resources_by_type %} {% set nb_groups = grouped_resources.keys()|length %} {% set max_resources = config.DATASET_MAX_RESOURCES_UNCOLLAPSED %} {% for (type, type_label), resources in grouped_resources.items() %} {% if nb_groups > 1 %}

    {{ type_label }} {{resources|length }}

    {% endif %} {% for resource in resources[:max_resources] %} {% with expanded = "true" if type == "main" else "false" %} {% include theme('dataset/resource/card.html') %} {% endwith %} {% endfor %} {% if resources|length > max_resources %}
    {% for resource in resources[max_resources:] %} {% include theme('dataset/resource/card.html') %} {% endfor %}
    {% endif %} {% else %}

    {{ _('No resources') }}

    {% endfor %}

    {{ _('Actions') }}

    Embed

    Embed is cool, embed is life. Lorem ipsum dolor, sit amet consectetur adipisicing elit. Dolore, consectetur adipisicing elit.

    {{integrate_btn(dataset)}}
    {# Maybe put this after the real description instead of after the resource cards ? Not sure #} {{ hook('dataset.display.after-description') }}
    {% include theme('participez/participez.html') %} {% block community %}

    {{ _('Community resources') }} {{ dataset.community_resources|length }}

    {{ _('You have built a more comprehensive database than those presented here? This is the time to share it!') }}

    {% for resource in dataset.community_resources %} {% with dark = True %} {% include theme('dataset/resource/card.html') %} {% endwith %} {% endfor %}
    {% for resource in dataset.community_resources %} {% with dark = True %} {% include theme('dataset/resource/card.html') %} {% endwith %} {% endfor %} {% if not read_only_mode %} {% include theme("svg/actions/add.svg") %}{{ _('Add a community resource') }} {% endif %}
    {% block reuses_section %}

    {{ _('Reuses') }} {{ reuses|length }}

    {% trans %}You reused these data and published an article, a computer graphics, or an application? It's time to let you know! Reference your work in just a few clicks and increase your visibility.{% endtrans %}
    {% for reuse in reuses %} {% set features = ['preview'] %}
    {% include theme('reuse/card.html') %}
    {% endfor %}
    {% endblock %}

    {{ _('Discussions') }} 0

    {{ _('Discussion between the organization and the community about this dataset.') }}

    {% endblock %} {% include theme('participez/participez.html') %} {% endcache %} {% endblock %}