// base query to grab everything
const base: Object = {};
base[this.idl.classes['atoul'].pkey] = {'!=' : null};
- base['context_item'] = (this.item ? this.item : {'>' : 0})
+ base['context_item'] = (this.item ? this.item : {'>' : 0});
// circs or holds?
- if (this.event_type == 'circ') {
- base['target_circ'] = { '>' : 0 }
+ if (this.event_type === 'circ') {
+ base['target_circ'] = { '>' : 0 };
} else {
- base['target_hold'] = { '>' : 0 }
+ base['target_hold'] = { '>' : 0 };
}
const query: any = new Array();
query, {
flesh: 3,
flesh_fields: {
- atoul: ['context_user','context_item'],
+ atoul: ['context_user', 'context_item'],
au: ['card']
},
offset: pager.offset,
).subscribe(
(res) => {
if (this.evt.parse(res)) {
- console.error('parsed error response',res);
+ console.error('parsed error response', res);
} else {
- console.log('success',res);
+ console.log('success', res);
}
},
(err) => {
- console.error('error',err);
+ console.error('error', err);
},
() => {
console.log('finis');
this.grid.reload();
}
);
- }
+ };
- this.noRowSelected = (rows: IdlObject[]) => (rows.length == 0);
+ this.noRowSelected = (rows: IdlObject[]) => (rows.length === 0);
}
ngOnChanges() { this.reloadGrid(); }
// base query to grab everything
const base: Object = {};
base[this.idl.classes['atoul'].pkey] = {'!=' : null};
- base['context_user'] = (this.patron ? this.patron : {'>' : 0})
+ base['context_user'] = (this.patron ? this.patron : {'>' : 0});
// circs or holds?
- if (this.event_type == 'circ') {
- base['target_circ'] = { '>' : 0 }
+ if (this.event_type === 'circ') {
+ base['target_circ'] = { '>' : 0 };
} else {
- base['target_hold'] = { '>' : 0 }
+ base['target_hold'] = { '>' : 0 };
}
const query: any = new Array();
).subscribe(
(res) => {
if (this.evt.parse(res)) {
- console.error('parsed error response',res);
+ console.error('parsed error response', res);
} else {
- console.log('success',res);
+ console.log('success', res);
}
},
(err) => {
- console.error('error',err);
+ console.error('error', err);
},
() => {
console.log('finis');
this.grid.reload();
}
);
- }
+ };
- this.noRowSelected = (rows: IdlObject[]) => (rows.length == 0);
+ this.noRowSelected = (rows: IdlObject[]) => (rows.length === 0);
}
ngOnChanges() { this.reloadGrid(); }