+++ /dev/null
-[SITKA]
-Flags=hidden
-
-; parent_ou=1
-[BBGVL]
-ExcludeEntireOrg=true
-[BBNCLF]
-ExcludeEntireOrg=true
-[BCK]
-ExcludeEntireOrg=true
-[BNCLF]
-ExcludeEntireOrg=true
-[BNELF]
-ExcludeEntireOrg=true
-[GOVLIBS]
-ExcludeEntireOrg=true
-[ISLANDLINK]
-ExcludeEntireOrg=true
-[K12]
-ExcludeEntireOrg=true
-[BVAVSA]
-ExcludeEntireOrg=true
-[BCCB]
-ExcludeEntireOrg=true
-[BMNVI]
-ExcludeEntireOrg=true
-[SGIC]
-ExcludeEntireOrg=true
-[BKCT]
-ExcludeEntireOrg=true
-[SPRUCE]
-ExcludeEntireOrg=true
-[UNFEDERATED]
-ExcludeEntireOrg=true
-[BOISSEVAIN]
-ExcludeEntireOrg=true
-[MANITOU]
-ExcludeEntireOrg=true
-[MB]
-ExcludeEntireOrg=true
-[MDB]
-ExcludeEntireOrg=true
-[MPLP]
-ExcludeEntireOrg=true
-[MS]
-ExcludeEntireOrg=true
-[MSOG]
-ExcludeEntireOrg=true
-[MSSC]
-ExcludeEntireOrg=true
-[MUCN]
-ExcludeEntireOrg=true
-[MWPL]
-ExcludeEntireOrg=true
-[SCRL]
-ExcludeEntireOrg=true
-[SIRL]
-ExcludeEntireOrg=true
-[SPECIAL]
-ExcludeEntireOrg=true
-[STEROSE]
-ExcludeEntireOrg=true
-[BCREK]
-CircMods=floppy-disc
-Statuses=Discard/Weed,Damaged
-Locations=ITSOFTWARE,LIB-STOR,SummitBasement,Weeding
if [ -z "${SHORTCODES}" ]; then
SHORTCODES="shortcodes.csv"
fi
-psql -Upostgres -U evergreen evergreen -h prod-pg94-db2-sitka.sitka.bclibraries.ca -o $SHORTCODES \
+psql -Upostgres -U evergreen evergreen -h dbprod-96-main-ndb2 -o $SHORTCODES \
-c "COPY (
SELECT
a.shortname,a.name,b.shortname AS parent
#cd /srv/openils/bin
PGUSER=evergreen
-PGHOST=prod-pg94-db2-sitka.sitka.bclibraries.ca
+PGHOST=dbprod-96-main-ndb2
PSQL="psql -A -t -U $PGUSER -h $PGHOST"
DATABASE=evergreen
MUCN_QUERY="select distinct record FROM asset.call_number where owning_lib in (select distinct id from actor.org_unit_descendants(1400)) and not deleted and label != '##URI##';"
#cd /srv/openils/bin
PGUSER=evergreen
-PGHOST=prod-pg94-db2-sitka.sitka.bclibraries.ca
+PGHOST=dbprod-96-main-ndb2
PSQL="psql -A -t -U $PGUSER -h $PGHOST"
DATABASE=evergreen
#FULL_QUERY="select distinct id from biblio.record_entry where not deleted"
FULL_QUERY="select distinct acn.record FROM asset.call_number acn join biblio.record_entry bre on (acn.record = bre.id) where not bre.deleted and bre.active and not acn.deleted"
POSTSEC_QUERY="select distinct record FROM asset.call_number where owning_lib in (select distinct id from actor.org_unit_descendants(27)) and not deleted and label != '##URI##';"
NONEXPORTED_QUERY="select distinct acn.record FROM asset.call_number acn join biblio.record_entry bre on (acn.record = bre.id) where bre.deleted or not bre.active or acn.deleted"
-MARC_PARAMS="--config /srv/openils/conf/opensrf_core.xml --items --location SITKA --collapse_to_depth 2 --timeout 300 --force901 --encoding UTF-8 --onlyholdings --quiet"
+MARC_PARAMS="--config /srv/openils/conf/opensrf_core.xml --items --location SITKA --collapse_to_depth 3 --timeout 300 --force901 --encoding UTF-8 --onlyholdings --quiet"
MARC_EXPORT_BIN="${DIR}/marc_export_custom"
# this lets us inject perl opts
MARC_EXPORT="perl ${PERLOPT} -- ${MARC_EXPORT_BIN} ${MARC_PARAMS}"