LP#1995770 Hold Target Not Loading From AngJS Patron Interface user/dbriem/lp1995770_angjs_place_holds_patron_target
authorDan Briem <dbriem@wlsmail.org>
Sat, 5 Nov 2022 18:37:36 +0000 (14:37 -0400)
committerDan Briem <dbriem@wlsmail.org>
Sat, 5 Nov 2022 18:37:36 +0000 (14:37 -0400)
Experimental Angular circ interfaces store the patron hold target
as a cookie, but the AngularJS interfaces used localStorage.

This updates the AngularJS interface to store it as a cookie.

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Open-ILS/web/js/ui/default/staff/circ/patron/holds.js

index 3173bfd..795455d 100644 (file)
@@ -146,7 +146,7 @@ function($scope,  $q,  $routeParams,  egCore,  egUser,  patronSvc,
 
     $scope.place_hold = function() {
 
-        egCore.hatch.setLocalItem(
+        egCore.hatch.setLoginSessionItem(
             'eg.circ.patron_hold_target', patronSvc.current.card().barcode());
 
         $window.location.href = '/eg2/staff/catalog';