From: Bill Erickson Date: Fri, 26 Feb 2021 22:04:40 +0000 (-0500) Subject: LP1904036 Renew; Batch Checkout/Renew; shared circ components X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=ccbbd628a9d9d8a38c694ca3462ff7bc37b18dad;p=working%2FEvergreen.git LP1904036 Renew; Batch Checkout/Renew; shared circ components Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.html index b1e12fe755..ab5b137ab1 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/checkout.component.html @@ -1,9 +1,6 @@ - - - { - if (values && values.dummy_title) { - const params = result.params; - params.precat = true; - Object.keys(values).forEach(key => params[key] = values[key]); - this.checkout(params); - } - }); - } - selectedCopyIds(rows: CircGridEntry[]): number[] { return rows .filter(row => row.copy) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.html index 798148c5bc..f917cbbb24 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/patron.component.html @@ -4,6 +4,8 @@ + + - + + + diff --git a/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.ts b/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.ts index 32393fb0d3..b2a5ab2e3b 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/circ/grid.component.ts @@ -410,6 +410,22 @@ export class CircGridComponent implements OnInit { return this.progressDialog; } + renew(rows: CircGridEntry[]) { + + const dialog = this.openProgressDialog(rows); + const params: CheckoutParams = {}; + + return this.circ.renewBatch(this.getCopyIds(rows)) + .subscribe( + result => dialog.increment(), + err => console.error(err), + () => { + dialog.close(); + this.emitReloadRequest(); + } + ); + } + // Same params will be used for each copy checkin(rows: CircGridEntry[], params?: CheckinParams, noReload?: boolean): Observable {