From ee5e9252e01e05008349e10f9566efd4d52d27bb Mon Sep 17 00:00:00 2001 From: Jane Sandberg Date: Sat, 19 Jan 2019 21:19:58 -0800 Subject: [PATCH] limit by resource barcode Signed-off-by: Jane Sandberg --- .../src/eg2/src/app/staff/booking/manage-reservations.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts index 3a802d26f0..7b8ad99cb6 100644 --- a/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/booking/manage-reservations.component.ts @@ -21,6 +21,7 @@ export class ManageReservationsComponent implements OnInit { gridSource: GridDataSource; patronId: number; + resourceBarcode: string; numRowsSelected: number; @ViewChild('grid') grid: GridComponent; @@ -48,7 +49,10 @@ export class ManageReservationsComponent implements OnInit { 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, @@ -60,6 +64,7 @@ export class ManageReservationsComponent implements OnInit { ngOnInit() { this.route.paramMap.subscribe((params: ParamMap) => { this.patronId = +params.get('patron_id'); + this.resourceBarcode = +params.get('resource_barcode'); }); this.editSelected = (idlThings: IdlObject[]) => { -- 2.11.0