ckanext-resource-custom-metadata
The ckan extension for adding a set of new metadata for a data resource in ckan.
Requirements
Compatibility with core CKAN versions:
| CKAN version |
Compatible? |
| 2.9 |
Yes |
| earlier |
No | |
Installation
To install ckanext-resource-custom-metadata:
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://git.tib.eu lab-linked-scientific-knowledge/sfb-inf/ckanext-resource-custom-metadata.git
> cd ckanext-resource-custom-metadata
> pip install -e .
> pip install -r requirements.txt
> python setup.py develop
Add resource_custom_metadata to the ckan.plugins setting 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 supervisor reload
sudo service nginx reload
Tests
To run the tests, do:
pytest --ckan-ini=test.ini
License
AGPL