attrsCanSave = true;
changesPending = false;
routingAllowed = false;
+ requireCN = true;
@ViewChild('pendingChangesDialog', {static: false})
pendingChangesDialog: ConfirmDialogComponent;
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');