Modify Outlook export profile for Radium, per RT#74886
[sitka/sitka-tools.git] / marc_export_custom / email-template-ebsco.sh
CommitLineData
e11c7cc6
RJ
1#!/bin/bash
2t1=$1
3t1=${t1/T/ }
4t1=${t1/??Z}
5t2=$2
6t2=${t2/T/ }
7t2=${t2/??Z}
8
9if [ -z "$t1" -o -z "$t2" ]; then
10 echo "Usage: $0 'Generate timestamp' 'Submit timestamp'" 1>&2
11fi
12
13cat <<EOF
14Date: $(date -uR)
3c1d8478 15From: "SITKA Tier 2 Support" <sitka-tier2@bc.libraries.coop>
e11c7cc6 16Subject: UCN EBSCO export $(date +%Y/%m/%d -d "$t1") notification
da0cdd52 17To: "Daniel Mertens" <danielmertens@ebsco.com>, "Kathy Ellerton" <kellerton@ucn.ca>, "Jessica Carmody" <jcarmody@EBSCO.COM>
3c1d8478 18Cc: "SITKA Tier 2 Support" <sitka-tier2@bc.libraries.coop>, "Sharon Herbert" <sherbert@sitka.bclibraries.ca>
e11c7cc6
RJ
19
20Full automated UCN EBSCO export
21
22Please remember to review the shortcodes*csv file for any new shortcodes.
23
24Notes:
25(none, this was automated)
26
27Directory for uploads:
28mucn/$T
29
30Submission timestamp:
31$(date -uR -d "$t2")
32
33Generation timestamp:
34$(date -uR -d "$t1")
35
36Submission method:
37FTP
38
39Compressed sizes in bytes:
40$(head -n2 *stats | awk '/.marc.bz2$/{print $9,$5}')
41
42Uncompressed size in bytes:
43$(head -n2 *stats | awk '/.marc$/{print $9,$5}')
44$(find -name '*.csv' -printf '%f %s\n')
45
46Number of records submitted:
47$(grep -h Filename -A5 $i *stats | awk '/.marc$/{print $3,$1}')
48
49SHA1 checksums:
50$(egrep '^[a-f0-9]{32}' *stats -h |sort -k +2)
51$(sha1sum *.csv)
52EOF