LP#1823367: (follow-up) revert renaming of eg.cat.transfer_target_vol
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 1 Aug 2019 18:33:45 +0000 (14:33 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 1 Aug 2019 18:33:45 +0000 (14:33 -0400)
This local storage key is expected by AngularJS interfaces, and
the AngularJS item status page in particular remains relevant for
now. This prevents a regression whereby marking a call number/volume
target in the Angular Holdings View interface would not set a
target that would work when trying to initiate a transfer from the
AngularJS Item Status interface.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts

index bc23905..25e0894 100644 (file)
@@ -662,7 +662,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
             orgId = node.target.id();
 
             // Clear call number target when performed on an org unit row
             orgId = node.target.id();
 
             // Clear call number target when performed on an org unit row
-            this.localStore.removeLocalItem('eg.cat.transfer_target_callnum');
+            this.localStore.removeLocalItem('eg.cat.transfer_target_vol');
 
         } else if (node.nodeType === 'callNum') {
 
 
         } else if (node.nodeType === 'callNum') {
 
@@ -671,7 +671,7 @@ export class HoldingsMaintenanceComponent implements OnInit {
 
             // Add call number target when performed on a call number row.
             this.localStore.setLocalItem(
 
             // Add call number target when performed on a call number row.
             this.localStore.setLocalItem(
-                'eg.cat.transfer_target_callnum', node.target.id());
+                'eg.cat.transfer_target_vol', node.target.id());
         }
 
         this.localStore.setLocalItem('eg.cat.transfer_target_record', this.recordId);
         }
 
         this.localStore.setLocalItem('eg.cat.transfer_target_record', this.recordId);