LP#1772680: Added Library User Name and PIN element for registration
authorJaswinder Singh <Jaswinder.Singh0011@gmail.com>
Sat, 13 Oct 2018 00:14:33 +0000 (20:14 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 4 Jun 2019 21:33:17 +0000 (17:33 -0400)
Signed-off-by: Jaswinder Singh <jaswinder.singh0011@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/EbookAPI/RBDigital.pm

index 69df7e1..eeef804 100644 (file)
@@ -340,7 +340,9 @@ sub _build_search_URI {
 #   "postalCode": "30904",
 #   "isActive": false,
 #   "libraryId": {libraryId},
-#   "libraryCard": {libraryCard}
+#   "libraryCard": {libraryCard},
+#   "libUserName": {libraryCard},
+#   "libPassword": {LibPassword}
 # }
 sub register_patron {
     my ($self, $username, $password, $user_barcode) = @_;
@@ -394,7 +396,10 @@ sub register_patron {
         postalCode => $postal_code,
         isActive => $is_active,
         libraryId => $library_id,
-        libraryCard => $user_barcode
+        libraryCard => $user_barcode,
+        libUserName => $user_barcode,
+        libPassword => ''
+
     };
 
     my $req = {