diff --git a/ckanext/odsh/controller.py b/ckanext/odsh/controller.py index 84802d29f3d69a3678b41d593933278f8ab2c776..ba821838b3597c2d6031ec7da50f321fb49212b9 100644 --- a/ckanext/odsh/controller.py +++ b/ckanext/odsh/controller.py @@ -32,8 +32,6 @@ class OdshUserController(UserController): return super(OdshUserController,self).dashboard_datasets(id) def read(self, id=None): - if not authz.is_sysadmin(c.user): - abort(404) return super(OdshUserController,self).read(id) def follow(self, id): diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py index 93eed79ccab37b34a4dcaf725cc8f961b55555ff..8b06ddf4d8813b7567a4aa8f7d2c9e7f5f9d3914 100644 --- a/ckanext/odsh/plugin.py +++ b/ckanext/odsh/plugin.py @@ -328,9 +328,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm # There are no extras in the search params, so do nothing. return search_params - - print(search_params) - start_date = self.extend_search_convert_local_to_utc_timestamp(extras.get('ext_startdate')) end_date = self.extend_search_convert_local_to_utc_timestamp(extras.get('ext_enddate')) @@ -346,8 +343,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm fq = '{fq} (+extras_temporal_start:[{start_date} TO {end_date}] OR +extras_temporal_end:[{start_date} TO {end_date}])'.format(fq=fq, start_date=start_date, end_date=end_date) - print(fq) - #return modified facet queries search_params['fq'] = fq diff --git a/ckanext/odsh/templates/user/read_base.html b/ckanext/odsh/templates/user/read_base.html new file mode 100644 index 0000000000000000000000000000000000000000..de01a4840c549b4dae3b591029bbffb7d43eab78 --- /dev/null +++ b/ckanext/odsh/templates/user/read_base.html @@ -0,0 +1,4 @@ +{% ckan_extends %} + +{% block content_action %} +{% endblock %}