From 3b9e94b121886fd62a55478489ee05e508c6c381 Mon Sep 17 00:00:00 2001 From: mjanez <96422458+mjanez@users.noreply.github.com> Date: Tue, 5 Mar 2024 07:40:46 +0100 Subject: [PATCH] Update ckanext-harvest patch --- .../ckanext-harvest/00_translates.patch | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/ckan/patches/ckanext-harvest/00_translates.patch b/ckan/patches/ckanext-harvest/00_translates.patch index cec207a..976ed46 100644 --- a/ckan/patches/ckanext-harvest/00_translates.patch +++ b/ckan/patches/ckanext-harvest/00_translates.patch @@ -26,9 +26,18 @@ index b7feb3d..b773a44 100644 {% endblock %} diff --git a/ckanext/harvest/templates/source/new_source_form.html b/ckanext/harvest/templates/source/new_source_form.html -index 324d012..8a500b9 100644 +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) }} @@ -38,8 +47,21 @@ index 324d012..8a500b9 100644
{% 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/search.html b/ckanext/harvest/templates/source/search.html -index a929943..06cb373 100644 +index d9ceeea..44d118b 100644 --- a/ckanext/harvest/templates/source/search.html +++ b/ckanext/harvest/templates/source/search.html @@ -44,7 +44,26 @@