RERO ILS misc tools for data manipulation.
- Clone the repository.
- Set the environment variables:
export PYTHONPATH=~/rero-ils-tools
export PATH=${PATH}:${PYTHONPATH}/scripts/
export PYTHONPATH=/network/nfs/data_ils/ils/rero-ils-tools
export PATH=${PATH}:${PYTHONPATH}/scripts/
poetry run tools.py tools update set_circulation_category --help
poetry run tools.py tools update items --help
poetry run tools.py tools replace items --help
poetry run tools.py tools search query -t item query.txt -o items.json -v -m model.json
query.txt: organisation.pid:1 AND document.pid:4 AND item_type.pid:4
model.json: {
"include": ["pid", "location"],
"exclude": ["temporary_item_type"],
"item_type": {
"$ref": "https://bib.rero.ch/api/item_types/6"
}
}
poetry run tools.py tools patrons duplicate_emails
poetry run tools.py tools patrons fix_patron_emails
poetry run tools.py tools desherbage vs <item_barcodes_file> -l <library_pid> -c <library_code> -s <output_directory>