Extension Snl


Extension Basics

Title
Snl
Name
ckanext-snl
Type
Public extension
Description
Harvester for the Swiss National Library (SNL)
CKAN versions
Download-Url (zip)
Last commit
11 years ago (2014-11-12 15:05:27)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

ckanext-snl

Harvester for the Swiss National Library (SNL)

Installation

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-snl.git#egg=ckanext-snl --src /home/www-data
cd /home/www-data/ckanext-snl
pip install -r pip-requirements.txt
python setup.py develop

Make sure to add snl and snl_harvester to ckan.plugins in your config file.

For development

  • install the pre-commit.sh script as a pre-commit hook in your local repositories: ** ln -s ../../pre-commit.sh .git/hooks/pre-commit

Run harvester

source /home/www-data/pyenv/bin/activate
paster --plugin=ckanext-snl snl_harvester gather_consumer -c development.ini &
paster --plugin=ckanext-snl snl_harvester fetch_consumer -c development.ini &
paster --plugin=ckanext-snl snl_harvester run -c development.ini

Only harvest files via OAI-PMH:

source /home/www-data/pyenv/bin/activate
cd /home/www-data/pyenv/src/ckan

# Export the oai entries for the specified set
# This command harvests the whole dataset and uploads the resulting records.xml to S3
 paster --plugin=ckanext-snl snl export e-diss -c production.ini

# Resume export of the oai entries for the specified set
# This command resumes the harvesting of the "sb" set, beginning from record 106500 and it stops at record 1000000
# If you specify an upper limit the files are not uploaded to S3, but are only kept locally.
paster --plugin=ckanext-snl snl resume sb 106500 1000000 -c production.ini
Version
2.0.3
Version release date
2014-09-24
Contact name
(not set)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

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-snl.git#egg=ckanext-snl --src /home/www-data
cd /home/www-data/ckanext-snl
pip install -r pip-requirements.txt
python setup.py develop

Make sure to add snl and snl_harvester to ckan.plugins in your config file.

Plugins to configure (ckan.ini)
snl
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions