PINES Customization: Set default patron permission group
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 21 Dec 2017 20:16:35 +0000 (15:16 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Wed, 3 Jan 2018 19:28:45 +0000 (14:28 -0500)
This should only affect new patron accounts.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js

index d1b134b..6b9780f 100644 (file)
@@ -1257,6 +1257,13 @@ function($scope , $routeParams , $q , $uibModal , $window , egCore ,
 
         prs.set_field_patterns(field_patterns);
         apply_username_regex();
+        
+        // PINES Customization to set default patron permission group
+        // profileID is the number for "Patron"
+        if (!patron.profile) {
+            profileId = 2;
+            $scope.set_profile(egCore.env.pgt.map[profileId]);
+        }
     });