@@ -4436,64 +4436,64 @@ function selfRegister(): array {
4436
4436
4437
4437
//Use self registration API
4438
4438
$ postVariables = [];
4439
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'address ' , 'borrower_address ' , $ library ->useAllCapsWhenUpdatingProfile );
4440
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'address2 ' , 'borrower_address2 ' , $ library ->useAllCapsWhenUpdatingProfile );
4441
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_address ' , 'borrower_B_address ' , $ library ->useAllCapsWhenUpdatingProfile );
4442
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_address2 ' , 'borrower_B_address2 ' , $ library ->useAllCapsWhenUpdatingProfile );
4443
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_city ' , 'borrower_B_city ' , $ library ->useAllCapsWhenUpdatingProfile );
4444
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_country ' , 'borrower_B_country ' , $ library ->useAllCapsWhenUpdatingProfile );
4445
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_email ' , 'borrower_B_email ' , $ library ->useAllCapsWhenUpdatingProfile );
4439
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'address ' , 'borrower_address ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4440
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'address2 ' , 'borrower_address2 ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4441
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_address ' , 'borrower_B_address ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4442
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_address2 ' , 'borrower_B_address2 ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4443
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_city ' , 'borrower_B_city ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4444
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_country ' , 'borrower_B_country ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4445
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_email ' , 'borrower_B_email ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4446
4446
//altaddress_notes
4447
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_phone ' , 'borrower_B_phone ' , $ library ->useAllCapsWhenUpdatingProfile , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4448
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_postal_code ' , 'borrower_B_zipcode ' , $ library ->useAllCapsWhenUpdatingProfile );
4449
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_state ' , 'borrower_B_state ' , $ library ->useAllCapsWhenUpdatingProfile );
4447
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_phone ' , 'borrower_B_phone ' , $ library ->useAllCapsWhenSubmittingSelfRegistration , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4448
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_postal_code ' , 'borrower_B_zipcode ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4449
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altaddress_state ' , 'borrower_B_state ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4450
4450
//altaddress_street_number
4451
4451
//altaddress_street_type
4452
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_address ' , 'borrower_altcontactaddress1 ' , $ library ->useAllCapsWhenUpdatingProfile );
4453
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_address2 ' , 'borrower_altcontactaddress2 ' , $ library ->useAllCapsWhenUpdatingProfile );
4454
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_city ' , 'borrower_altcontactaddress3 ' , $ library ->useAllCapsWhenUpdatingProfile );
4455
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_country ' , 'borrower_altcontactcountry ' , $ library ->useAllCapsWhenUpdatingProfile );
4456
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_firstname ' , 'borrower_altcontactfirstname ' , $ library ->useAllCapsWhenUpdatingProfile );
4457
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_phone ' , 'borrower_altcontactphone ' , $ library ->useAllCapsWhenUpdatingProfile , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4458
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_postal_code ' , 'borrower_altcontactzipcode ' , $ library ->useAllCapsWhenUpdatingProfile );
4459
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_state ' , 'borrower_altcontactstate ' , $ library ->useAllCapsWhenUpdatingProfile );
4460
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_surname ' , 'borrower_altcontactsurname ' , $ library ->useAllCapsWhenUpdatingProfile );
4461
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'city ' , 'borrower_city ' , $ library ->useAllCapsWhenUpdatingProfile );
4462
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'country ' , 'borrower_country ' , $ library ->useAllCapsWhenUpdatingProfile );
4452
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_address ' , 'borrower_altcontactaddress1 ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4453
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_address2 ' , 'borrower_altcontactaddress2 ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4454
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_city ' , 'borrower_altcontactaddress3 ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4455
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_country ' , 'borrower_altcontactcountry ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4456
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_firstname ' , 'borrower_altcontactfirstname ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4457
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_phone ' , 'borrower_altcontactphone ' , $ library ->useAllCapsWhenSubmittingSelfRegistration , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4458
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_postal_code ' , 'borrower_altcontactzipcode ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4459
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_state ' , 'borrower_altcontactstate ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4460
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'altcontact_surname ' , 'borrower_altcontactsurname ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4461
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'city ' , 'borrower_city ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4462
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'country ' , 'borrower_country ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4463
4463
if (!empty ($ _REQUEST ['borrower_dateofbirth ' ])) {
4464
4464
$ postVariables ['date_of_birth ' ] = $ _REQUEST ['borrower_dateofbirth ' ];
4465
4465
}
4466
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'email ' , 'borrower_email ' , $ library ->useAllCapsWhenUpdatingProfile );
4467
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'fax ' , 'borrower_fax ' , $ library ->useAllCapsWhenUpdatingProfile , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4468
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'firstname ' , 'borrower_firstname ' , $ library ->useAllCapsWhenUpdatingProfile );
4469
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'gender ' , 'borrower_sex ' , $ library ->useAllCapsWhenUpdatingProfile );
4470
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'initials ' , 'borrower_initials ' , $ library ->useAllCapsWhenUpdatingProfile );
4466
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'email ' , 'borrower_email ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4467
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'fax ' , 'borrower_fax ' , $ library ->useAllCapsWhenSubmittingSelfRegistration , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4468
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'firstname ' , 'borrower_firstname ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4469
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'gender ' , 'borrower_sex ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4470
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'initials ' , 'borrower_initials ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4471
4471
if (!isset ($ _REQUEST ['borrower_branchcode ' ]) || $ _REQUEST ['borrower_branchcode ' ] == -1 ) {
4472
4472
$ postVariables ['library_id ' ] = $ library ->code ;
4473
4473
} else {
4474
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'library_id ' , 'borrower_branchcode ' , $ library ->useAllCapsWhenUpdatingProfile );
4475
- }
4476
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'mobile ' , 'borrower_mobile ' , $ library ->useAllCapsWhenUpdatingProfile );
4477
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'opac_notes ' , 'borrower_contactnote ' , $ library ->useAllCapsWhenUpdatingProfile );
4478
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'other_name ' , 'borrower_othernames ' , $ library ->useAllCapsWhenUpdatingProfile );
4479
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'phone ' , 'borrower_phone ' , $ library ->useAllCapsWhenUpdatingProfile , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4480
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'postal_code ' , 'borrower_zipcode ' , $ library ->useAllCapsWhenUpdatingProfile );
4481
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'secondary_email ' , 'borrower_emailpro ' , $ library ->useAllCapsWhenUpdatingProfile );
4482
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'secondary_phone ' , 'borrower_phonepro ' , $ library ->useAllCapsWhenUpdatingProfile , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4483
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'state ' , 'borrower_state ' , $ library ->useAllCapsWhenUpdatingProfile );
4484
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'surname ' , 'borrower_surname ' , $ library ->useAllCapsWhenUpdatingProfile );
4485
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'title ' , 'borrower_title ' , $ library ->useAllCapsWhenUpdatingProfile );
4486
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'userid ' , 'userid ' , $ library ->useAllCapsWhenUpdatingProfile );
4487
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'cardnumber ' , 'cardnumber ' , $ library ->useAllCapsWhenUpdatingProfile );
4474
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'library_id ' , 'borrower_branchcode ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4475
+ }
4476
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'mobile ' , 'borrower_mobile ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4477
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'opac_notes ' , 'borrower_contactnote ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4478
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'other_name ' , 'borrower_othernames ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4479
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'phone ' , 'borrower_phone ' , $ library ->useAllCapsWhenSubmittingSelfRegistration , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4480
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'postal_code ' , 'borrower_zipcode ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4481
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'secondary_email ' , 'borrower_emailpro ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4482
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'secondary_phone ' , 'borrower_phonepro ' , $ library ->useAllCapsWhenSubmittingSelfRegistration , $ library ->requireNumericPhoneNumbersWhenUpdatingProfile );
4483
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'state ' , 'borrower_state ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4484
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'surname ' , 'borrower_surname ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4485
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'title ' , 'borrower_title ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4486
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'userid ' , 'userid ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4487
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'cardnumber ' , 'cardnumber ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4488
4488
if (!isset ($ _REQUEST ['category_id ' ])) {
4489
4489
$ postVariables ['category_id ' ] = $ this ->getKohaSystemPreference ('PatronSelfRegistrationDefaultCategory ' );
4490
4490
} else {
4491
4491
$ postVariables ['category_id ' ] = $ _REQUEST ['category_id ' ];
4492
4492
}
4493
4493
4494
4494
if ($ this ->getKohaVersion () >= 22.11 ) {
4495
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'pronouns ' , 'borrower_pronouns ' , $ library ->useAllCapsWhenUpdatingProfile );
4496
- $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'middle_name ' , 'borrower_middle_name ' , $ library ->useAllCapsWhenUpdatingProfile );
4495
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'pronouns ' , 'borrower_pronouns ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4496
+ $ postVariables = $ this ->setPostFieldWithDifferentName ($ postVariables , 'middle_name ' , 'borrower_middle_name ' , $ library ->useAllCapsWhenSubmittingSelfRegistration );
4497
4497
}
4498
4498
4499
4499
// Patron extended attributes
@@ -8641,4 +8641,4 @@ private function getConsentTypes(): array {
8641
8641
public function hasIlsConsentSupport (): bool {
8642
8642
return true ;
8643
8643
}
8644
- }
8644
+ }
0 commit comments