JBAS-1375 Classroom cards set to juvenile=false
authorBill Erickson <berickxx@gmail.com>
Mon, 23 May 2016 15:48:53 +0000 (11:48 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Classroom cards have a DoB of 1900-01-01, which means the juvenile flag
is set to false for all classroom cards after one day of production
deployment.  Avoid the unnecessary update by setting the cards to
juvenile=false on import.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
KCLS/utility-scripts/import_students/generate-patrons-from-csv.pl

index f96da3f..5d9276c 100755 (executable)
@@ -586,7 +586,7 @@ sub create_patron {
     my $barcode = $phash->{barcode};
 
     my @user_bind = (
-        't', 
+        $is_classroom ? 'f' : 't',
         $is_classroom ? $c_profile : $profile,
         $is_classroom ? $c_ident_type : $ident_type,
         $barcode, $home_ou, $net_access,