From: Bill Erickson Date: Mon, 7 Nov 2016 15:13:57 +0000 (-0500) Subject: JBAS-1660 School teacher cards use upper-case ID's X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8aef7b50c9289ea31a4d8836f83830d9d5663e4c;p=working%2FEvergreen.git JBAS-1660 School teacher cards use upper-case ID's Signed-off-by: Bill Erickson --- diff --git a/KCLS/utility-scripts/import_students/generate-patrons-from-csv.pl b/KCLS/utility-scripts/import_students/generate-patrons-from-csv.pl index 45ef109364..1bdeec15e3 100755 --- a/KCLS/utility-scripts/import_students/generate-patrons-from-csv.pl +++ b/KCLS/utility-scripts/import_students/generate-patrons-from-csv.pl @@ -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};