1 Customized MARC exporter
4 jfournie@sitka.bclibraries.ca
6 This requires Config::Simple, the package for that in Deb/Ubuntu is libconfig-simple-perl.
8 This script is the same as marc_export with new options:
12 Collapses all your holdings below a certain depth to that depth's org unit shortname, for example if you had:
19 If you set the depth at 1, all the $b in your holdings would show SYS1 as the shortname.
23 Define a file to define custom exclusion rules. See sitka.ini for Sitka's configuration for Outlook Online
28 Pipe in something like:
29 psql -A -t -c 'select id from biblio.record_entry where not deleted'|
34 ./marc_export_custom --config /srv/openils/conf/opensrf_core.xml --items --location SITKA --collapse_to_depth 2 --exclusion_ini sitka.ini
36 Note: I have found adding --format XML makes it easier to debug what's going on