{# Displays a sidebard module with information for given package pkg - The package dict that owns the resources. Example: {% snippet "package/snippets/info.html", pkg=pkg %} #} {% block package_info %} {% if pkg %}
{% block package_info_inner %} {% block heading %} {% endblock %} {% block groups %}
{{ _('Kategorie') }}:
{{ pkg.groups|map(attribute='display_name')|join('; ') }} {% if h.check_access('package_update', {'id':pkg.id }) %}
{% link_for _('Edit Categories'), controller='package', action='groups', id=pkg.name, class_='btn btn-edit-categories', icon='wrench' %}
{% endif %}
{% endblock %} {% block nums %} {% endblock %} {% block tags %}
{{ _('Tags') }}:

{{ pkg.tags|map(attribute='display_name')|join('; ') or '-'}}

{% endblock %} {% block license %}
{{ _('License') }}:
{%set lic=pkg.license_title if pkg.license_title else '-'%} {%set licenseAttributionByText = h.odsh_extract_value_from_extras(pkg.extras,'licenseAttributionByText') %} {%set name=' (' + licenseAttributionByText +')' if licenseAttributionByText else ''%}

{{ lic }}{{ name }}

{% endblock %} {% block timerange %}
{{ _('timerange') }}:
{% set temporal_start = h.odsh_extract_value_from_extras(pkg.extras,'temporal_start') %} {% set temporal_end = h.odsh_extract_value_from_extras(pkg.extras,'temporal_end') %} {%set start=h.odsh_render_datetime(temporal_start) if temporal_start else ''%} {%set end=h.odsh_render_datetime(temporal_end) if temporal_end else ''%}

{{ start }} - {{ end }}

{% endblock %} {% block last_change %}
{% set value = h.odsh_extract_value_from_extras(pkg.extras,'issued')%} {% set issued = h.odsh_render_datetime(value) if value else h.odsh_render_datetime(pkg.metadata_created)%}
{{ _('issued') }}:
{{issued}}
{% endblock %} {% endblock %}
{% set map_text = h.odsh_get_spatial_text(pkg) %}
{{ _('Spatial uri') }}:
{%set ext=map_text if map_text else '-'%}

{{ ext }}

{% set dataset_extent = h.get_pkg_dict_extra(c.pkg_dict, 'spatial', '') %} {% if dataset_extent %}
{% snippet "spatial/snippets/dataset_map_base.html", extent=dataset_extent %}
{% endif %} {% block spatial_info %}
{% set bbox = h.odsh_get_bounding_box(pkg) %} {% if bbox%}
{{ _('borders of map') }}:

{{ '{0:0.3f}'.format(bbox[0]).zfill(2).replace('.',',') }}° {{_('in east')}}

{{ '{0:0.3f}'.format(bbox[1]).replace('.',',') }}° {{_('in west')}}

{{ '{0:0.3f}'.format(bbox[2]).replace('.',',') }}° {{_('in north')}}

{{ '{0:0.3f}'.format(bbox[3]).replace('.',',') }}° {{_('in south')}}

{% endif %}
{% endblock %} {% block social_nav %}
{% set current_url = h.odsh_encodeurl(h.full_current_url()) %}

{{ _('share this dataset')}}:

{% endblock %}
{% endif %} {% endblock %}