Extending ckan search to:
-
Search for dataset based on the column names in csv/xlsx data resources.
-
Search for dataset based on linked publications (look at: /~https://github.com/TIBHannover/ckanext-Dataset-Reference)
-
Autotag a dataset on creation.
Compatibility with core CKAN versions:
CKAN version | Compatible? |
---|---|
2.8 and earlier | not tested |
2.9 | Yes |
To install ckanext-sfb-search-extension:
-
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-sfb-search-extension.git cd ckanext-sfb-search-extension pip install -e . pip install -r requirements.txt
-
Add
sfb_search
andauto_tag
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini
). -
Run migration:
ckan db upgrade -p sfb_search
-
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service nginx reload
To run the tests, do:
pytest --ckan-ini=test.ini