From 5227fcf8ba5451e9cd02ffb3c15d761eed5b9c3c Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Fri, 4 Sep 2020 13:34:45 -0400 Subject: [PATCH] fix guardian field Signed-off-by: Chris Sharp --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm index e3fb93054b..31e4bab62d 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Ecard.pm @@ -29,7 +29,7 @@ my @api_fields = ( {name => 'home_ou', class => 'au', required => 1}, {name => 'ident_type', class => 'au', required => 1}, {name => 'ident_value', class => 'au', required => 1}, - {name => 'guardian', + {name => 'ident_value2', class => 'au', notes => "AKA parent/guardian", required_if => 'Patron is less than 18 years old' @@ -346,6 +346,7 @@ sub make_user { my $val = $cgi->param($field); + $field = 'guardian' if $field eq 'ident_value2' && $val; $au->juvenile(1) if $field eq 'guardian' && $val; $au->day_phone(undef) if $field eq 'day_phone' && $val eq '--'; -- 2.11.0