<span class="input-group-text" i18n>Barcode</span>
</div>
<input type="text" class="form-control" id="barcode-input"
- placeholder="Barcode..." i18n-placeholder
- [(ngModel)]="barcode" [disabled]="checkinNoncat != null"
+ placeholder="Barcode..." i18n-placeholder [(ngModel)]="barcode"
i18n-aria-label aria-label="Barcode Input" (keydown.enter)="checkin()" />
<div class="input-group-append">
<button class="btn btn-outline-dark" (keydown.enter)="checkin()"
<div class="flex-1"></div>
<div>
<span class="mr-2" i18n>Effective Date:</span>
- <eg-date-select [initialIso]="effectiveDate"
- (onChangeAsIso)="setEffectiveDate($event)"></eg-date-select>
+ <eg-date-select [initialIso]="backdate"
+ (onChangeAsIso)="backdate = $event"></eg-date-select>
</div>
</div>
</div>
@Input() patronId: number;
- myPermMaps: {[permId: number]: IdlObject} = {}
+ myPermMaps: {[permId: number]: IdlObject} = {};
userPermMaps: {[permId: number]: IdlObject} = {};
userWorkOuMaps: {[orgId: number]: IdlObject} = {};
.then(_ => {
this.progress.increment();
- return this.perms.hasWorkPermAt(['ASSIGN_WORK_ORG_UNIT'], true)
+ return this.perms.hasWorkPermAt(['ASSIGN_WORK_ORG_UNIT'], true);
})
.then(perms => {
'open-ils.actor',
'open-ils.actor.user.permissions.update',
this.auth.token(), permMaps
- )
+ );
}))
.pipe(concatMap(_ => this.reload()))
.pipe(finalize(() => this.loading = false)).subscribe();
// which is OK.
if (!payload) { return Promise.resolve(result); }
- result.circ = payload.circ,
- result.copy = payload.copy,
- result.record = payload.record,
- result.nonCatCirc = payload.noncat_circ
+ result.circ = payload.circ;
+ result.copy = payload.copy;
+ result.record = payload.record;
+ result.nonCatCirc = payload.noncat_circ;
return this.fleshCommonData(result);
}
}
exitAlert(context: any): Promise<any> {
- let key = 'staff.circ.events.' + context.textcode;
+ const key = 'staff.circ.events.' + context.textcode;
return this.strings.interpolate(key, context)
.then(str => {
this.components.circFailedDialog.dialogBody = str;
// we have the specifics on the copy, go ahead and
// copy them into the params we use for the follow
// up checkout.
- result.params.copy_barcode = result.copy.barcode()
- result.params.copy_id = result.copy.id()
+ result.params.copy_barcode = result.copy.barcode();
+ result.params.copy_id = result.copy.id();
return this.checkout(result.params);
});
} else {
return result;
}
- })
+ });
}
// Ask the user if we should resolve the circulation and check
const circ = result.circ;
const parent_circ = result.parent_circ;
- let promise = Promise.resolve();
-
if (transit) {
if (typeof transit.dest() !== 'object') {
transit.dest(this.org.get(transit.dest()));