diff --git a/ckanext/odsh/i18n/de/LC_MESSAGES/ckanext-odsh.mo b/ckanext/odsh/i18n/de/LC_MESSAGES/ckanext-odsh.mo index b509ba3d4b09c1a93683eca8a69821800b0bf9ca..1573fc928e1c204bc7dda84da9635a1678f4a43e 100644 Binary files a/ckanext/odsh/i18n/de/LC_MESSAGES/ckanext-odsh.mo and b/ckanext/odsh/i18n/de/LC_MESSAGES/ckanext-odsh.mo differ diff --git a/ckanext/odsh/i18n/de/LC_MESSAGES/ckanext-odsh.po b/ckanext/odsh/i18n/de/LC_MESSAGES/ckanext-odsh.po index 6f85414f829a618d4b66ce007fdbb5909ba219d9..4d015035bdfb00c228f93984e0175208d80f2830 100644 --- a/ckanext/odsh/i18n/de/LC_MESSAGES/ckanext-odsh.po +++ b/ckanext/odsh/i18n/de/LC_MESSAGES/ckanext-odsh.po @@ -79,7 +79,7 @@ msgstr "Beschreibung eingeben" msgid "Enter tags" msgstr "Stichwörter eingeben" -msgid "Enter spatial extension" +msgid "Enter spatial uri" msgstr "Orte eingeben" msgid "Enter data" @@ -151,7 +151,7 @@ msgstr "Letzte Änderung" msgid "Files" msgstr "Dateien" -msgid "Spatial extension" +msgid "Spatial uri" msgstr "Raumbezug" msgid "Beginn des Zeitraumes: Fehlender Wert" @@ -181,7 +181,7 @@ msgstr "Bitte geben Sie einen Titel ein" msgid "odsh_publish_date_error_label" msgstr "Bitte wählen Sie ein Veröffentlichungsdatum" -msgid "odsh_spatial_extension_error_label" +msgid "odsh_spatial_uri_error_label" msgstr "Bitte geben sie einen räumlichen Bezug an" msgid "Tag string: Fehlender Wert" diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py index 1a525e5779f5e6fb4ce862e6153c282eb2104243..efb455d9edccf0ea2c1b118c067fedf2fdef755b 100644 --- a/ckanext/odsh/plugin.py +++ b/ckanext/odsh/plugin.py @@ -165,8 +165,8 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm return ['title','notes'] def _extraFields(self): - ##return ['publish_date','access_constraints','temporal_start','temporal_end','spatial_extension'] - return ['publish_date','temporal_start','temporal_end','spatial_extension'] + ##return ['publish_date','access_constraints','temporal_start','temporal_end','spatial_uri'] + return ['publish_date','temporal_start','temporal_end','spatial_uri'] def _update_schema(self,schema): for field in self._extraFields(): diff --git a/ckanext/odsh/templates/package/snippets/info.html b/ckanext/odsh/templates/package/snippets/info.html index ea9bc185f690dbf3081183bea500fdbe84db7b5b..46fadc1c2a901152c452eee6c9b350fd7af145da 100644 --- a/ckanext/odsh/templates/package/snippets/info.html +++ b/ckanext/odsh/templates/package/snippets/info.html @@ -35,8 +35,8 @@ Example: {% block spatial %} <div class="spatial-detail info-detail"> - <div>{{ _('Spatial extension') }}:</div> - {%set ext=pkg.spatial_extension if pkg.spatial_extension else '-'%} + <div>{{ _('Spatial uri') }}:</div> + {%set ext=pkg.spatial_uri if pkg.spatial_uri else '-'%} <p>{{ ext }}</p> </div> {% endblock %} diff --git a/ckanext/odsh/templates/package/snippets/package_basic_fields.html b/ckanext/odsh/templates/package/snippets/package_basic_fields.html index e38d04ea7929b2d9a79eadab22ccbb14c3c1da05..c22327c65c39dc8d6fff27a6ad97a64be0c21a5e 100644 --- a/ckanext/odsh/templates/package/snippets/package_basic_fields.html +++ b/ckanext/odsh/templates/package/snippets/package_basic_fields.html @@ -155,12 +155,12 @@ is_required=true,placeholder=_('Enter title')) }} </div> {% endblock %} - <!-- field spatial_extension --> - {% set error_string = _('odsh_spatial_extension_error_label') if errors.spatial_extension %} - {{ form.input('spatial_extension', id='field-spatial-extension', label=_('Spatial extension'), - value=data.spatial_extension, + <!-- field spatial_uri --> + {% set error_string = _('odsh_spatial_uri_error_label') if errors.spatial_uri %} + {{ form.input('spatial_uri', id='field-spatial-uri', label=_('Spatial uri'), + value=data.spatial_uri, error=error_string, classes=['control-full'],type='text',is_required=true, - placeholder=_('Enter spatial extension')) }} + placeholder=_('Enter spatial uri')) }} <!-- field private --> <div class="control-group">