From: Terran McCanna <tmccanna@georgialibraries.org>
Date: Wed, 21 Jul 2021 19:43:05 +0000 (-0400)
Subject: LP1786971 z39.50 incorporate Bill's changes
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=72ab990d85df993ea3aa7e5b92d748784d97067d;p=evergreen%2Fequinox.git

LP1786971 z39.50 incorporate Bill's changes

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Mary Llewellyn <mllewell@biblio.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
---

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 a410ebe948..f1c810ec6b 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
@@ -198,9 +198,6 @@ function($scope , $q , $location , $timeout , $window,  egCore , egGridDataProvi
 
     $scope.local_overlay_target = egCore.hatch.getLocalItem('eg.cat.marked_overlay_record') || 0;
 
-    // Value is immediately replaced below
-    // $scope.local_overlay_target_tcn = egCore.hatch.getLocalItem('eg.cat.marked_overlay_tcn') || 0;
-
     if($scope.local_overlay_target) {
         var currTarget = $scope.local_overlay_target;
 
@@ -220,10 +217,6 @@ function($scope , $q , $location , $timeout , $window,  egCore , egGridDataProvi
 
         }
         egCore.hatch.setLocalItem('eg.cat.marked_overlay_record',$scope.local_overlay_target);
-
-        // Here we are applying the previous value as the TCN
-        // since get_tcn() runs asynchronously.
-        // egCore.hatch.setLocalItem('eg.cat.marked_overlay_tcn',$scope.local_overlay_target_tcn);
     }
 
     // Returns promise of TCN value
@@ -497,6 +490,7 @@ function($scope , $q , $location , $timeout , $window,  egCore , egGridDataProvi
                             if (live_overlay_target != 0) {
                                 $scope.overlay_target.id = $scope.overlay_target.live_id;
                                 overlay_target = live_overlay_target;
+                                overlay_target_tcn = live_overlay_target_tcn;
                             }
                             $scope.immediate_merge();
                         },
@@ -525,10 +519,6 @@ function($scope , $q , $location , $timeout , $window,  egCore , egGridDataProvi
                     $scope.local_overlay_target = 0;
                     $scope.local_overlay_target_tcn = 0;
                     egCore.hatch.removeLocalItem('eg.cat.marked_overlay_record');
-
-                    // No longer using.
-                    // egCore.hatch.removeLocalItem('eg.cat.marked_overlay_tcn');
-
                     console.debug('overlay complete, target removed');
                     $window.open('/eg2/staff/catalog/record/' + overlay_target);
                 }