This harvester has the purpose to transfer term translations from one CKAN instante to another.
Use pip
to install this plugin. This example installs it in /home/www-data
source /home/www-data/pyenv/bin/activate
pip install -e git+https://github.com/ogdch/ckanext-transharvest.git#egg=ckanext-transharvest --src /home/www-data
cd /home/www-data/ckanext-transharvest
python setup.py develop
Make sure to add transharvest
to ckan.plugins
in your config file.
- install the
pre-commit.sh
script as a pre-commit hook in your local repositories: **ln -s ../../pre-commit.sh .git/hooks/pre-commit
This harvester requires ckan_term_url
in the configuration JSON. This is the base URL of a CKAN instance, that should be harvested for term translations. Please make sure, that this remote CKAN instance needs the ckanext-ogdch_actions, as this extensions provides the requires API for this harvester.
{
"ckan_term_url": "http://datahub.io"
}
source /home/www-data/pyenv/bin/activate
paster --plugin=ckanext-transharvest transharvest gather_consumer -c development.ini &
paster --plugin=ckanext-transharvest transharvest fetch_consumer -c development.ini &
paster --plugin=ckanext-transharvest transharvest run -c development.ini