ckanext-ands
Allows submission of ANDS DOI requests for datasets.
Users can submit a DOI request which only sends an email to defined admins.
Sysadmins can directly add a DOI to a dataset from the Dataset’s page via ANDS API.
Requirements
Tested with CKAN 2.5.1
Installation
To install ckanext-ands:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-ands Python package into your virtual environment:
pip install ckanext-ands
Add ands to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Config Settings
The following are required:
ckanext.ands.DOI_API_KEY = xxyyzz
ckanext.ands.shared_secret = asdfasdf
ckanext.ands.support_emails = example@test.com,example2@test.com
ckanext.ands.publisher = 'A publisher'
ckanext.ands.client_id = 123123
The following are optional (defaults are shown):
ckanext.ands.doi_prefix = 10.5072/
ckanext.ands.debug = False
ckanext.ands.debug_url = http://example.com