gridSource: GridDataSource;
patronId: number;
+ resourceBarcode: string;
numRowsSelected: number;
@ViewChild('grid') grid: GridComponent;
if (sort.length) {
orderBy.bresv = sort[0].name + ' ' + sort[0].dir;
}
- return this.pcrud.search('bresv', {"usr" : (this.patronId ? this.patronId : {">" : 1})}, {
+ return this.pcrud.search('bresv', {
+ "usr" : (this.patronId ? this.patronId : {">" : 1}),
+ "target_resource.barcode" : (this.resourceBarcode ? this.resourceBarcode : {"!=" : null})
+ }, {
order_by: orderBy,
limit: pager.limit,
offset: pager.offset,
ngOnInit() {
this.route.paramMap.subscribe((params: ParamMap) => {
this.patronId = +params.get('patron_id');
+ this.resourceBarcode = +params.get('resource_barcode');
});
this.editSelected = (idlThings: IdlObject[]) => {