WIP: Gets value of org unit setting for requiring call numbers
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 16 Aug 2022 20:24:01 +0000 (16:24 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Tue, 16 Aug 2022 20:24:01 +0000 (16:24 -0400)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.component.ts

index 8268967..f63801a 100644 (file)
@@ -65,6 +65,7 @@ export class VolCopyComponent implements OnInit {
     attrsCanSave = true;
     changesPending = false;
     routingAllowed = false;
+       requireCN = true;
 
     @ViewChild('pendingChangesDialog', {static: false})
         pendingChangesDialog: ConfirmDialogComponent;
@@ -89,8 +90,17 @@ export class VolCopyComponent implements OnInit {
     ngOnInit() {
         this.route.paramMap.subscribe(
             (params: ParamMap) => this.negotiateRoute(params));
+
+               this.org.settings('cat.require_call_number_labels')
+                   .then(settings => {this.requireCN =
+                Boolean(settings['cat.require_call_number_labels']);
+                               console.log('TESTING:' + this.requireCN);
+                       });
+
+
     }
 
+
     negotiateRoute(params: ParamMap) {
         this.tab = params.get('tab') || 'holdings';
         this.target = params.get('target');