diff --git a/.env.example b/.env.example index f9ef19e..cdbcd21 100644 --- a/.env.example +++ b/.env.example @@ -119,7 +119,7 @@ CKAN__RESOURCE_PROXY__MAX_FILE_SIZE=50048576 CKAN__RESOURCE_PROXY__CHUNK_SIZE=4096 ## Default timeout for fetching proxied items CKAN__RESOURCE_PROXY__TIMEOUT=10 -CKAN__VIEWS__DEFAULT_VIEWS="image_view webpage_view text_view recline_view wmts_view geojson_view geo_view shp_view pdf_view" +CKAN__VIEWS__DEFAULT_VIEWS="image_view webpage_view text_view datatables_view wmts_view geojson_view geo_view shp_view pdf_view" # Localization CKAN__LOCALE_DEFAULT="en" @@ -127,7 +127,7 @@ CKAN__LOCALE_ORDER="en es pt_BR ja it cs_CZ ca fr el sv sr sr@latin no sk fi ru CKAN__LOCALES_OFFERED="en es pt_BR ja it cs_CZ ca fr el sv sr sr@latin no sk fi ru de pl nl bg ko_KR hu sa sl lv" # Extensions -CKAN__PLUGINS="envvars stats image_view text_view datatables_view webpage_view resourcedictionary datastore xloader harvest spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat schemingdcat_ckan_harvester schemingdcat_xls_harvester pdf_view pages fluent" +CKAN__PLUGINS="envvars stats image_view text_view datatables_view webpage_view resourcedictionary datastore xloader spatial_metadata spatial_query spatial_harvest_metadata_api csw_harvester waf_harvester doc_harvester resource_proxy geo_view geojson_view wmts_view shp_view dcat dcat_rdf_harvester dcat_json_harvester dcat_json_interface schemingdcat_datasets schemingdcat_groups schemingdcat_organizations schemingdcat schemingdcat_ckan_harvester schemingdcat_xls_harvester harvest pdf_view pages fluent" # ckanext-harvest CKAN__HARVEST__MQ__TYPE=redis diff --git a/ckan/patches/ckanext-harvest/00_improve_harvest_panel.patch b/ckan/patches/ckanext-harvest/00_improve_harvest_panel.patch deleted file mode 100644 index da31dde..0000000 --- a/ckan/patches/ckanext-harvest/00_improve_harvest_panel.patch +++ /dev/null @@ -1,144 +0,0 @@ -diff --git a/ckanext/harvest/logic/action/update.py b/ckanext/harvest/logic/action/update.py -index 7dce1f5..ac4db4f 100644 ---- a/ckanext/harvest/logic/action/update.py -+++ b/ckanext/harvest/logic/action/update.py -@@ -706,7 +706,7 @@ def harvest_jobs_run(context, data_dict): - notify_all = toolkit.asbool(config.get('ckan.harvest.status_mail.all')) - notify_errors = toolkit.asbool(config.get('ckan.harvest.status_mail.errored')) - last_job_errors = status['last_job']['stats'].get('errored', 0) -- log.debug('Notifications: All:{} On error:{} Errors:{}'.format(notify_all, notify_errors, last_job_errors)) -+ log.debug('Notifications: All:{} On error:{} Errors:{} Errordict:{}'.format(notify_all, notify_errors, last_job_errors, status['last_job']['stats'])) - - if last_job_errors > 0 and (notify_all or notify_errors): - send_error_email(context, job_obj.source.id, status) -diff --git a/ckanext/harvest/templates/snippets/source_item.html b/ckanext/harvest/templates/snippets/source_item.html -index a8ba26f..3f50bdb 100644 ---- a/ckanext/harvest/templates/snippets/source_item.html -+++ b/ckanext/harvest/templates/snippets/source_item.html -@@ -48,6 +48,7 @@ Example: - {% endif %} - {% if not within_organization and source.organization %} - — {{ _('Organization') }}: {{ h.link_to(source.organization.title or source.organization.name, h.url_for('organization.read', id=source.organization.name)) }} -+ — {{ _('Datasets') }}: {{ h.link_to(h.schemingdcat_package_count_for_source(source.id), url) }} - {% endif %} -

- -diff --git a/ckanext/harvest/templates/source/new.html b/ckanext/harvest/templates/source/new.html -index b7feb3d..b1fe472 100644 ---- a/ckanext/harvest/templates/source/new.html -+++ b/ckanext/harvest/templates/source/new.html -@@ -24,12 +24,18 @@ -
-

- {% trans %} -- Harvest sources allow importing remote metadata into this catalog. -- Remote sources can be other catalogs such as other CKAN instances, CSW -- servers or Web Accessible Folders (WAF) (depending on the actual -- harvesters enabled for this instance). -+ Harvest sources allow importing remote metadata into this catalog. Remote sources can be other catalogs such as other CKAN instances, CSW servers, XML metadata files, XLSX with metadata records or Web Accessible Folder (WAF). - {% endtrans %} -

-+ -+

-+ {{ _('Depending on the actual harvesters enabled for this instance. eg: ') }} -+

-+

-
- - {% endblock %} -diff --git a/ckanext/harvest/templates/source/new_source_form.html b/ckanext/harvest/templates/source/new_source_form.html -index 324d012..37358fc 100644 ---- a/ckanext/harvest/templates/source/new_source_form.html -+++ b/ckanext/harvest/templates/source/new_source_form.html -@@ -8,7 +8,7 @@ - - {% call form.input('url', id='field-url', label=_('URL'), value=data.url, error=errors.url, classes=['control-full', 'control-large']) %} - -- {{ _('This should include the http:// part of the URL') }} -+ {{ _('This should include the http:// part of the URL') }} - - {% endcall %} - -@@ -26,7 +26,7 @@ - {{ form.markdown('notes', id='field-notes', label=_('Description'), value=data.notes, error=errors.notes) }} - -
-- -+ -
- {% for harvester in h.harvesters_info() %} - {% set checked = False %} -@@ -46,7 +46,11 @@ - {{ 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) }} -+ {% call form.textarea('config', id='field-config', label=_('Configuration'), value=data.config, error=errors.config) %} -+ -+ {{ _('You can validate the JSON at: ') }} {{ _('JSONLint') }} -+ -+ {% endcall %} - {% endblock extra_config %} - - {# if we have a default group then this wants remembering #} -diff --git a/ckanext/harvest/templates/source/read.html b/ckanext/harvest/templates/source/read.html -index e016e55..e60a18c 100644 ---- a/ckanext/harvest/templates/source/read.html -+++ b/ckanext/harvest/templates/source/read.html -@@ -3,6 +3,6 @@ - {% block primary_content_inner %} -
-

{{ _('Datasets') }}

-- {{ h.package_list_for_source(harvest_source.id) }} -+ {{ h.schemingdcat_package_list_for_source(harvest_source.id) }} -
- {% endblock %} -diff --git a/ckanext/harvest/templates/source/read_base.html b/ckanext/harvest/templates/source/read_base.html -index 5126e25..3191c38 100644 ---- a/ckanext/harvest/templates/source/read_base.html -+++ b/ckanext/harvest/templates/source/read_base.html -@@ -15,7 +15,7 @@ -
-
-
{{ _('Datasets') }}
--
{{ h.package_count_for_source(harvest_source.id) }}
-+
{{ h.schemingdcat_package_count_for_source(harvest_source.id) }}
-
-
- -diff --git a/ckanext/harvest/templates/source/search.html b/ckanext/harvest/templates/source/search.html -index d9ceeea..f44a0cb 100644 ---- a/ckanext/harvest/templates/source/search.html -+++ b/ckanext/harvest/templates/source/search.html -@@ -44,7 +44,26 @@ - - - --{% block secondary_content %} -+ {% block secondary_content %} -+
-+

{{ _('Harvest sources') }}

-+
-+

-+ {% trans %} -+ Harvest sources allow importing remote metadata into this catalog. Remote sources can be other catalogs such as other CKAN instances, CSW servers, XML metadata files, XLSX with metadata records or Web Accessible Folder (WAF). -+ {% endtrans %} -+

-+ -+

-+ {{ _('Depending on the actual harvesters enabled for this instance. eg: ') }} -+

-+

-+
-+
- {% for facet in c.facet_titles %} - {{ h.snippet('snippets/facet_list.html', title=c.facet_titles[facet], name=facet, alternative_url=h.url_for('{0}.search'.format(c.dataset_type))) }} - {% endfor %}