Commit | Line | Data |
---|---|---|
11561776 | 1 | echo create table with bib ids for records with no items |
952fe555 | 2 | psql -h db1.sitka.bclibraries.ca -U evergreen -f getbibidswithnoitems.sql |
11561776 MB |
3 | |
4 | echo output bib ids for regular bibs to file | |
952fe555 | 5 | psql -h db1.sitka.bclibraries.ca -U evergreen -A -t -c 'select distinct record from asset.call_number where deleted is false and owning_lib between 39 and 46 order by record' > bibids |
11561776 MB |
6 | |
7 | echo output bib ids for bibs with no items to file | |
952fe555 | 8 | psql -h db1.sitka.bclibraries.ca -U evergreen -A -t -c 'select distinct record from cotr.non_ebsco_ebibs order by record' > bibids_noitems |
11561776 MB |
9 | |
10 | echo outputting MARC file for bibs with no items | |
6c35692d | 11 | cat bibids_noitems | ./marc_export_custom --config /srv/openils/conf/opensrf_core.xml --output-file cotr_noitems.mrc --timeout 300 --force901 --encoding UTF-8 --location SITKA --collapse_to_depth 2 &> cotr_noitems_mrc.log |
11561776 MB |
12 | |
13 | echo outputting MARC file for regular bibs ... | |
6c35692d | 14 | cat bibids | ./marc_export_custom --config /srv/openils/conf/opensrf_core.xml --output-file cotr.mrc --timeout 300 --force901 --encoding UTF-8 --items --location SITKA --collapse_to_depth 2 --onlyholdings --exclusion_ini cotr_ebsco.ini &> cotr_mrc.log |
11561776 MB |
15 | |
16 | echo add cotr.mrc + cotr_noitems.mrc together to cotr_total.mrc | |
17 | cat cotr.mrc cotr_noitems.mrc > cotr_total.mrc | |
18 |