An extension which provides a feature to approve or reject a dataset before making it public.
To install ckanext-datasetapproval:
Note: if you're using ckanext_scheming extension, add new field to the schema configuration YAML file.
- field_name: publishing_status<br>
label: Publishing Status<br>
form_snippet: null<br>
display_snippet: null<br>
validators: ignore_missing publishing_status_validator
<br>- field_name : chosen_visibility<br>
label : Visibility<br>
form_snippet : visibility.html<br>
display_snippet : null<br>
validators : ignore_empty unicode_safe<br>
default : true<br>
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
Clone the source and install it on the virtualenv
git clone https://github.com//ckanext-datasetapproval.git cd ckanext-datasetapproval pip install -e . pip install -r requirements.txt
-
Add
dataset_approvalto theckan.pluginssetting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini). -
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
- All publisher users can save datasets as drafts for later editing, while creating/updating datasets without publishing it to the public.
- Users with editor role in organization can create a dataset and submit it for approval Editors user get this message
Submit for approval by clicking finish button.

- Organization admin receives the email notification when dataset is submitted for approval. Example:





