Simple script to export records belonging to a specific Evergreen OU and its descendents.
authorGalen Charlton <gmc@esilibrary.com>
Thu, 28 Aug 2014 21:08:09 +0000 (17:08 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Thu, 28 Aug 2014 21:08:09 +0000 (17:08 -0400)
commita8c8d06ed95e6a8c107279b57a6f3cedb6e25eb4
tree755530a4aa02c129db5c0108ab9be7b4a7528e2d
parent9bb290448b0ccc6ce90adb267ee43cc569672567
Simple script to export records belonging to a specific Evergreen OU and its descendents.

Usage: export_evergreen_library shortname scratch_dir output_dir db_conn_params

For example:

$ mkdir inter out
$ ./export_evergreen_library SYS1 inter out '-U evergreen'

The script emits MARC bibs, undeleted patrons, all items for the OU, all loans
for the OU's patrons and items, current hold requests, and patron billings.

The script expects to be run on a box that can access the Evergreen database
via psql and an OpenSRF stack.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
export_evergreen_library [new file with mode: 0755]