From a4b372448a6d8238b60b397c88c4feca85813297 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 16 Sep 2021 12:01:07 -0400 Subject: [PATCH] LP1904036 Checkin Retrieve Last Patron opens in new tab Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts index 67b0f91ac9..eb92e90f40 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts @@ -323,7 +323,12 @@ export class CheckinComponent implements OnInit, AfterViewInit { this.circ.lastCopyCirc(copy.id()).then(circ => { if (circ) { - this.router.navigate(['/staff/circ/patron', circ.usr(), 'checkout']); + + const url = this.ngLocation.prepareExternalUrl( + `/staff/circ/patron/${circ.usr()}/checkout`); + + window.open(url); + } else { this.itemNeverCirced = copy.barcode(); setTimeout(() => this.toast.danger(this.itemNeverCircedStr.text)); -- 2.11.0