Adds an export button to search results, allowing logged-in users to download the results without futzing with the API.
Uses CKAN's built-in IUploader and background workers to handle even extremely large portals with millions of datasets.
Install the extension using pip:
pip install -e "git+https://github.com/TkTech/ckanext-search-export.git#egg=ckanext-search-export"Then add search-export to the ckan.plugins setting in your ckan.ini file:
ckan.plugins = ... search-exportEnsure that file storage is already enabled in your ckan.ini:
ckan.storage_path = /path/to/your/storageAdd the following to your ckan.ini:
ckan.upload.search_export.types = text
ckan.upload.search_export.mimetypes = text/csvExports are limited to 2MB in size by default, which comes from CKAN's default.
Increase it by adding the following to your ckan.ini:
# The maximum size of the export in MB
search_export.maximum_size = 4

