initial import - marc custom export (for Outlook Online)
[sitka/sitka-tools.git] / marc_export_custom / README.txt
CommitLineData
456d236e
JF
1Customized MARC exporter
2
3By James Fournie
4jfournie@sitka.bclibraries.ca
5
6This requires Config::Simple, the package for that in Deb/Ubuntu is libconfig-simple-perl.
7
8New options:
9
10--collapse_to_depth
11
12Collapses all your holdings below a certain depth to that depth's org unit shortname, for example if you had:
13
14CONS
15- SYS1
16 - BR1
17 - BR2
18
19If you set the depth at 1, all the $b in your holdings would show SYS1 as the shortname.
20
21-- exclusion_ini
22
23Define a file to define custom exclusion rules. See sitka.ini for Sitka's configuration for Outlook Online
24
25
26Usage examples:
27
28Pipe in something like:
29psql -A -t -c 'select id from biblio.record_entry where not deleted'|
30echo '101007645'
31
32into:
33
34./marc_export_custom --config /srv/openils/conf/opensrf_core.xml --items --location SITKA --collapse_to_depth 2 --exclusion_ini sitka.ini
35
36Note: I have found adding --format XML makes it easier to debug what's going on