psql -h db1.sitka.bclibraries.ca -U evergreen -A -t -c 'select distinct record from cotr.non_ebsco_ebibs order by record' > bibids_noitems
echo outputting MARC file for bibs with no items
-cat bibids_noitems | ./marc_export_custom_branches --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
+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
echo outputting MARC file for regular bibs ...
-cat bibids | ./marc_export_custom_branches --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 -branch BCREK-CRA,BCREK-CRE,BCREK-FER,BCREK-GOL,BCREK-INV,BCREK-KIM,BCREK-GCR --exclusion_ini cotr_ebsco.ini &> cotr_mrc.log
+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
echo add cotr.mrc + cotr_noitems.mrc together to cotr_total.mrc
cat cotr.mrc cotr_noitems.mrc > cotr_total.mrc