Combine search facets using OR operator
Project description
ckanext-or_facet
Change logic of applying facets. With a bit of extra configuration, search for datasets, including any of applied facets, not necessary all of them
Installation
To install ckanext-or-facet:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Install the ckanext-or_facet Python package into your virtual environment:
pip install ckanext-or-facet
Add or_facet 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
# List of facets that are using OR when applied. # (optional, default: empty list). or_facet.facets = tags res_format
Development Installation
To install ckanext-or_facet for development, activate your CKAN virtualenv and do:
git clone https://github.com/DataShades/ckanext-or_facet.git cd ckanext-or_facet python setup.py develop
Running the Tests
To run the tests, do:
pytest --ckan-ini test.ini
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for ckanext_or_facet-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452517701212daa11c359df7bd8fdcd47a5e508bd997b0ab25c6f54fa150c5d0 |
|
MD5 | 2c2d51cc510cfe8f6918d5daf08cd524 |
|
BLAKE2b-256 | bc129742e2966830cc8b656f4940608b88076cdd2fe2328f44f4b2d635a1ef82 |