=============
ckanext-spc
.. Put a description of your extension here:
What does it do? What features does it have?
Consider including some screenshots or embedding a video!
Requirements
ckanext-scheming <https://github.com/ckan/ckanext-scheming>_
Installation
.. Add any additional install steps to the list below.
For example installing any non-Python dependencies or adding any required
config settings.
To install ckanext-spc:
Activate your CKAN virtual environment, for example::
. /usr/lib/ckan/default/bin/activate
Install the ckanext-spc and its requirements into your virtual environment::
pip install ckanext-spc
pip install -r dev-requirements.txt
Add spc to the ckan.plugins setting in your CKAN
config file (by default the config file is located at
/etc/ckan/default/production.ini).
For the SpcNadaHarvester to work, install this branch of ckanext-ddi: github.com/roly97/ckanext-ddi/tree/nada_harvester.
Alternatively, install the original ckanext-ddi extension github.com/liip/ckanext-ddi and then replace the files ddiharvester.py and metadata.py with the changed files found in ckanext-ddi_changes directory in this repo.
Update SOLR schema::
Update DB schema::
paster spc db-upgrade -c config.ini
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu::
sudo service apache2 reload
Config Settings
Config options::
scheming.dataset_schemas = ckanext.spc.schemas:dataset.json
Development Installation
To install ckanext-spc for development, activate your CKAN virtualenv and
do::
git clone https://github.com/DataShades/ckanext-spc.git
cd ckanext-spc
python setup.py develop
pi