{% load i18n %} {% load geonode_auth %}

{% trans "Category:" %} {% if category %} {{category}} {% else %} {% trans "No category is provided for this layer." %} {% endif %}

{% trans "Abstract:" %} {% if rec.identification.abstract %} {{rec.identification.abstract}} {% else %} {% trans "No abstract is provided for this layer." %} {% endif %}

{% trans "Provided by:" %} {% if rec.contact.name %} {# and rec.attribution.href %} #} {% if rec.contact.onlineresource %} {{ rec.contact.name }} {% else %} {{ rec.contact.name }} {% endif %} {% else %} {% trans "No attribution information is provided for this layer." %} {% endif %}

{% trans "Metadata Links:" %} {% for link in rec.metadata_links %} {{link.1}} {% empty %} {% trans "No metadata URLs are defined for this layer." %} {% endfor %}

{% trans "Keywords:" %} {% comment %} old owslib iso {% endcomment %} {% for kw in rec.identification.keywords.list %} {{kw}}{% if not forloop.last %}, {% endif %} {% empty %} {% comment %} new owslib iso {% endcomment %} {% for kws in rec.identification.keywords %} {% for kw in kws.keywords %} {{kw}}{% if not forloop.last %}, {% endif %} {% if forloop.last and kws.thesaurus.title %} ({{ kws.thesaurus.title }} {% if kws.thesaurus.date %} - {{ kws.thesaurus.date }} {% endif %} {% if kws.thesaurus.datetype %} - {{ kws.thesaurus.datetype }} {% endif %} ) {% endif %} {% empty %} {% trans "No keywords are listed for this layer." %} {% endfor %} {% if not forloop.last %}; {% endif %} {% empty %} {% trans "No keywords are listed for this layer." %} {% endfor %} {% endfor %}

{% if layer_is_remote %}

{% trans "Download:" %} {% for link in extra_links.download %} {{link.1}} {% empty %} {% trans "No download URLs are defined for this layer." %} {% endfor %}

{% if rec.distribution.onlineresource.url %}

{% trans "Visit originating site for more information about this layer." %}

{% endif %} {% else %} {% has_obj_perm user layer "maps.view_layer" as can_view %} {% if can_view %}

{% trans "Download:" %} {% for link in extra_links.download %} {{link.1}} {% empty %} {% trans "No download URLs are defined for this layer." %} {% endfor %}

{% if rec.distribution.onlineresource.url %}

{% trans "Click here for more information about this layer." %}

{% endif %} {% else %}

{% trans "You do not have permission to view or download this layer" %}

{% endif %} {% endif %}