diff --git a/ckanext/harvest/controllers/organization.py b/ckanext/harvest/controllers/organization.py index 4bb01fa..ab70b89 100644 --- a/ckanext/harvest/controllers/organization.py +++ b/ckanext/harvest/controllers/organization.py @@ -55,7 +55,10 @@ class OrganizationController(GroupController): q = c.q = request.params.get('q', '') # Search within group - q += ' groups: "%s"' % c.group_dict.get('name') + if c.group_dict.get('is_organization'): + q += ' owner_org: "%s"' % c.group_dict.get('id') + else: + q += ' groups: "%s"' % c.group_dict.get('name') try: description_formatted = ckan.misc.MarkdownFormat().to_html( @@ -155,7 +158,6 @@ class OrganizationController(GroupController): facets[facet] = default_facet_titles[facet] else: facets[facet] = facet - if dataset_type: fq = fq + 'dataset_type:"{dataset_type}"'.format(dataset_type=dataset_type) diff --git a/ckanext/harvest/fanstatic_library/styles/harvest.css b/ckanext/harvest/fanstatic_library/styles/harvest.css index 9c32e43..5232af3 100644 --- a/ckanext/harvest/fanstatic_library/styles/harvest.css +++ b/ckanext/harvest/fanstatic_library/styles/harvest.css @@ -31,8 +31,14 @@ header.with-filter h1 { } .harvest-types label.radio { font-weight: normal; - margin-bottom: 0; + margin-bottom: 10px; } -.harvest-types label.radio i { - color: #999; +.harvest-types label.radio input { + top: 3px; +} +#source-new .controls { + margin-left: 135px; +} +#source-new .control-label { + width: 125px; } diff --git a/ckanext/harvest/fanstatic_library/styles/harvest.less b/ckanext/harvest/fanstatic_library/styles/harvest.less index 71173d9..333803c 100644 --- a/ckanext/harvest/fanstatic_library/styles/harvest.less +++ b/ckanext/harvest/fanstatic_library/styles/harvest.less @@ -42,8 +42,17 @@ header.with-filter { .harvest-types label.radio { font-weight: normal; - margin-bottom: 0; - i { - color: #999; + margin-bottom: 10px; + input { + top: 3px; + } +} + +#source-new { + .controls { + margin-left: 135px; + } + .control-label { + width: 125px; } } diff --git a/ckanext/harvest/templates_new/source/new.html b/ckanext/harvest/templates_new/source/new.html index 183b985..b58cdf4 100644 --- a/ckanext/harvest/templates_new/source/new.html +++ b/ckanext/harvest/templates_new/source/new.html @@ -26,7 +26,7 @@ {% trans %} Harvest sources allow importing metadata from other catalogues as CKAN datasets. These can be other CKAN instances or other - protocols and formats. (TODO: Review) + protocols and formats. {% endtrans %}
diff --git a/ckanext/harvest/templates_new/source/new_source_form.html b/ckanext/harvest/templates_new/source/new_source_form.html index f9e8e5f..145c2d6 100644 --- a/ckanext/harvest/templates_new/source/new_source_form.html +++ b/ckanext/harvest/templates_new/source/new_source_form.html @@ -34,13 +34,13 @@ {% endfor %} - {{ form.select('frequency', id='field-frequency', label=_('Frequency of update'), options=h.harvest_frequencies(), selected=data.frequency, error=errors.frequency) }} + {{ form.select('frequency', id='field-frequency', label=_('Update frequency'), options=h.harvest_frequencies(), selected=data.frequency, error=errors.frequency) }} {% block extra_config %} {{ form.textarea('config', id='field-config', label=_('Configuration'), value=data.config, error=errors.config) }}