JBAS-1660 School teacher cards use upper-case ID's
authorBill Erickson <berickxx@gmail.com>
Mon, 7 Nov 2016 15:13:57 +0000 (10:13 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/utility-scripts/import_students/generate-patrons-from-csv.pl

index 45ef109..1bdeec1 100755 (executable)
@@ -260,6 +260,9 @@ sub iterate_csv_rows {
         $phash->{student_id} = sprintf('%0.4d', $phash->{student_id})
             if $is_teacher && length($phash->{student_id}) < 4;
 
+        # All teacher ID's, which can be alpha-numeric, are upper case.
+        $phash->{student_id} = uc($phash->{student_id}) if $is_teacher;
+
         # Teacher cards have an extra 't' between district code and ID.
         $phash->{barcode} = $district_code . 
             ($is_teacher ? 't' : '') . $phash->{student_id};