Added angular hide strict barcode functionallity.
Updated my release note to better fit the 'style'.
Signed-off-by: Scott Angel <scottangel@mobiusconsortium.org>
</div>
</div>
<div class="mr-3">
- <div class="form-check form-check-inline">
+ <div class="form-check form-check-inline" *ngIf="hideStrictBarcode">
<input class="form-check-input" type="checkbox"
(ngModelChange)="toggleStrictBarcode($event)"
id="strict-barcode-cbox" [(ngModel)]="strictBarcode"/>
fineTally = 0;
isHoldCapture = false;
strictBarcode = false;
+ hideStrictBarcode: boolean = false;
trimList = false;
itemNeverCirced: string;
persistKey: string;
CHECKIN_MODIFIERS.map(mod => `eg.circ.checkin.${mod}`)
.concat(SETTINGS);
+ this.store.getItem('ui.circ.hide_patron_strict_barcode')
+ .then(hideStrict => this.hideStrictBarcode = !hideStrict);
+
this.store.getItemBatch(setNames).then(sets => {
CHECKIN_MODIFIERS.forEach(mod =>
this.modifiers[mod] = sets[`eg.circ.checkin.${mod}`]);
<div class="col-lg-12 d-flex">
<div class="flex-1"></div>
<div class="mr-3">
- <div class="form-check form-check-inline pt-1">
+ <div class="form-check form-check-inline pt-1" *ngIf="hideStrictBarcode">
<input class="form-check-input" type="checkbox"
(ngModelChange)="toggleStrictBarcode($event)"
id="strict-barcode-cbox" [(ngModel)]="strictBarcode"/>
dueDateOptions: 0 | 1 | 2 = 0; // auto date; specific date; session date
dueDateInvalid = false;
printOnComplete = true;
+ hideStrictBarcode = false;
strictBarcode = false;
private copiesInFlight: {[barcode: string]: boolean} = {};
);
});
+ this.serverStore.getItem('ui.circ.hide_patron_strict_barcode')
+ .then(hideStrict => this.hideStrictBarcode = !hideStrict);
+
this.serverStore.getItem('circ.checkout.strict_barcode')
.then(strict => this.strictBarcode = strict);
}
</div>
</div>
<div class="mr-3">
- <div class="form-check form-check-inline">
+ <div class="form-check form-check-inline" *ngIf="hideStrictBarcode">
<input class="form-check-input" type="checkbox"
(ngModelChange)="toggleStrictBarcode($event)"
id="strict-barcode-cbox" [(ngModel)]="strictBarcode"/>
dueDate: string;
useDueDate = false;
fineTally = 0;
+ hideStrictBarcode: boolean = false;
strictBarcode = false;
trimList = false;
itemNeverCirced: string;
return from(this.renewals);
};
+ this.store.getItem('ui.circ.hide_patron_strict_barcode')
+ .then(hideStrict => this.hideStrictBarcode = !hideStrict)
+
this.store.getItemBatch(['circ.renew.strict_barcode'])
.then(sets => {
this.strictBarcode = sets['circ.renew.strict_barcode'];
== Option to hide strict barcode ==
-Allows libraries the option to hide the strict barcode checkbox via org setting as some libraries don't use the strict barcode feature.
\ No newline at end of file
+Adds option to hide the strict barcode checkbox via org setting.
\ No newline at end of file