diff --git a/ckanext/odsh/helpers.py b/ckanext/odsh/helpers.py index 1dfa379163c36f82a59dedcb15ca3538d8067446..ea1365c214391d7c854a7bf5e1550a08335ca7cc 100644 --- a/ckanext/odsh/helpers.py +++ b/ckanext/odsh/helpers.py @@ -23,7 +23,6 @@ import ckan.lib.helpers as helpers from collections import OrderedDict import pkg_resources - CKAN_TYPES = {'http://dcat-ap.de/def/datasetTypes/collection': 'collection'} get_action = logic.get_action @@ -561,7 +560,7 @@ def odsh_load_mdk_sample_dataset(): with open(sample_data_file_path) as mapping_json: MDK_MAPPING = json.loads( mapping_json.read(), object_pairs_hook=OrderedDict) - default = [{'value': 'Musterdatensatz wählen..', 'key': ''}] + default = [{'value': toolkit._('Select sample dataset..'), 'key': ''}] mdk = [{'key': key, 'value': MDK_MAPPING[key]} for key in MDK_MAPPING] result = default+mdk @@ -732,6 +731,7 @@ def get_spatial_for_selection(): spatial_mapping = list(cr) unique_mapping = [] + unique_mapping.append({'value': toolkit._('Select spatial reference..'), 'key': ''}) seen_values = set() for key, value, _ in spatial_mapping: if value in seen_values: @@ -757,7 +757,6 @@ def get_spatial_for_selection(): seen_values.add(value) - unique_mapping.append({'key': '', 'value': ''}) return unique_mapping