With this ckan extension you can choose to add a dataset with or without a resoruce, it provides us with 3 settings that can be set by a sysadmin with pressing the added button on the admin header.
The settings are:
- create dataset normaly(with resource),
- create dataset without resource.
- let the user choose at dataset creation.
If we set it to the first option and save nothing happens we can use ckan as defaulty intended.
If we set it to the second option and save, when we go to the dateset creation form the Add Dataset button should/will change to Add Dataset metadata button which will allow us to create a dataset without a resource:
Lastly if we set it to the third option and save, when we go to the dataset creation form, press Add Dataset button a prompt should show asking us to choose if we want to create a normal dataset or one without a resource:
Compatibility with core CKAN versions:
| CKAN version | Compatible? |
|---|---|
| 2.6 and earlier | not tested |
| 2.7 | not tested |
| 2.8 | not tested |
| 2.9 | yes |
To install ckanext-noresource:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
Clone the source and install it on the virtualenv
git clone git@github.com:keitaroinc/ckanext-noresource.git cd ckanext-noresource pip install -e . pip install -r requirements.txt -
Add
noresourceto 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
To install ckanext-noresource for development, activate your CKAN virtualenv and do:
git clone git@github.com:keitaroinc/ckanext-noresource.git
cd ckanext-noresource
python setup.py develop
pip install -r dev-requirements.txt



