required => 0, },
{ field => FID_PATRON_BIRTHDATE,
pat => qr/^$user_birthday$/o,
- required => 1, },
+ required => 0, }, # custom extension used by Envisionware
{ field => FID_PATRON_CLASS,
pat => qr/^$user_ptype$/o,
- required => 1, },
+ required => 0, }, # custom extension used by Envisionware
{ field => FID_INET_PROFILE,
pat => qr/^$user_inet$/,
required => 0, }, # this is a custom extension, not required by spec
{ field => FID_HOME_PHONE,
pat => qr/^$user_phone$/o,
required => 1, },
- { field => FID_PATRON_BIRTHDATE,
- pat => qr/^$user_birthday$/o,
- required => 1, },
- { field => FID_PATRON_CLASS,
- pat => qr/^$user_ptype$/o,
- required => 1, },
+ #{ field => FID_PATRON_BIRTHDATE,
+ # pat => qr/^$user_birthday$/o,
+ # required => 1, },
+ #{ field => FID_PATRON_CLASS,
+ # pat => qr/^$user_ptype$/o,
+ # required => 1, },
#{ field => FID_INET_PROFILE,
# pat => qr/^$user_inet$/,
# required => 1, },
pat => qr/^$user_homelib$/,
required => 1, };
push @tests, $test;
+
+ $test = clone($patron_info_test_template);
+ $test->{id} = "Patron Info birthdate extension";
+ push @{$test->{fields}}, {
+ field => FID_PATRON_BIRTHDATE,
+ pat => qr/^$user_birthday$/o,
+ required => 1, };
+ push @tests, $test;
+
+ $test = clone($patron_info_test_template);
+ $test->{id} = "Patron Info class/profile extension";
+ push @{$test->{fields}}, {
+ field => FID_PATRON_CLASS,
+ pat => qr/^$user_ptype$/o,
+ required => 1, };
+ push @tests, $test;
+
+ $test = clone($patron_info_test_template);
+ $test->{id} = "Patron Info expiration date extension";
+ push @{$test->{fields}}, {
+ field => FID_PATRON_EXPIRE,
+ pat => qr/^20\d\d\d\d\d\d$/o, # presumably this date format works for Envisionware
+ required => 1, };
+ push @tests, $test;
}
create_patron_info_extension_tests();