forked from OpenDataGIS/ckanext-facet_scheming
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from mjanez/develop
Update geospatial metadata only if it is INSPIRE data/service
- Loading branch information
Showing
2 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
{% ckan_extends %} | ||
{# | ||
geospatial_metadata_values: Sublist of dcat_type_values that has geospatial metadata (INSPIRE Register). | ||
#} | ||
{%- set geospatial_metadata_values = [ | ||
'http://inspire.ec.europa.eu/metadata-codelist/ResourceType/dataset', | ||
'http://inspire.ec.europa.eu/metadata-codelist/ResourceType/series', | ||
'http://inspire.ec.europa.eu/metadata-codelist/ResourceType/service' | ||
] -%} | ||
|
||
{% block content_primary_nav %} | ||
{{ super() }} | ||
{{ h.build_nav_icon('scheming_dcat.index', _('Linked Data'), id=pkg.id if is_activity_archive else pkg.name, icon='asterisk') }} | ||
{{ h.build_nav_icon('scheming_dcat.geospatial_metadata', _('Geospatial Metadata'), id=pkg.id if is_activity_archive else pkg.name, icon='globe') }} | ||
|
||
{% if pkg.dcat_type in geospatial_metadata_values %} | ||
{{ h.build_nav_icon('scheming_dcat.geospatial_metadata', _('Geospatial Metadata'), id=pkg.id if is_activity_archive else pkg.name, icon='globe') }} | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters