Create a file listing the exported TCN's and put it in Backstage web
reports folder with each quarterly export.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
# check and exit early if needed.
bs_check_creds;
- EXPORT_FILE="$WORKING_DIR/bib-export-qtrly.$CUR_YEAR4-$CUR_MONTH.mrc"
+ BASE_FILE="bib-export-qtrly.$CUR_YEAR4-$CUR_MONTH"
+ EXPORT_FILE="$WORKING_DIR/$BASE_FILE.mrc"
+ EXPORT_TCNS_FILE="$REPORTS_DIR/$BASE_FILE.tcns.txt"
+
+ # First run lists ID's only.
+ perl ./export-bibs.pl \
+ --ids-only \
+ --start-date $PREV_QTR_START_DATE \
+ --end-date $PREV_QTR_END_DATE \
+ --out-file $EXPORT_TCNS_FILE
perl ./export-bibs.pl \
--start-date $PREV_QTR_START_DATE \