From 9f82aee9c55620c2f1e11cff350951b37a5d336c Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Wed, 12 Aug 2015 13:52:05 -0400 Subject: [PATCH] webstaff: use localStorage for the overlay-record selection in the Import Record from z39.50 interface Signed-off-by: Jason Etheridge Signed-off-by: Galen Charlton Signed-off-by: Jason Stephenson --- Open-ILS/web/js/ui/default/staff/cat/z3950/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js index 3b39d30536..5476c71339 100644 --- a/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js +++ b/Open-ILS/web/js/ui/default/staff/cat/z3950/app.js @@ -175,7 +175,7 @@ function($scope , $q , $location , $timeout , $window, egCore , egGridDataProvi return true; }; - $scope.local_overlay_target = 0; + $scope.local_overlay_target = egCore.hatch.getLocalItem('eg.cat.marked_overlay_record') || 0; $scope.mark_as_overlay_target = function() { var items = $scope.gridControls.selectedItems(); if ($scope.local_overlay_target == items[0].tcn()) { @@ -183,6 +183,7 @@ function($scope , $q , $location , $timeout , $window, egCore , egGridDataProvi } else { $scope.local_overlay_target = items[0].tcn(); } + egCore.hatch.setLocalItem('eg.cat.marked_overlay_record',$scope.local_overlay_target); } $scope.cant_overlay = function() { if (!$scope.local_overlay_target) return true; -- 2.11.0