LP1904036 Checkin Retrieve Last Patron opens in new tab
authorBill Erickson <berickxx@gmail.com>
Thu, 16 Sep 2021 16:01:07 +0000 (12:01 -0400)
committerGalen Charlton <gmc@equinoxOLI.org>
Fri, 28 Oct 2022 00:13:37 +0000 (20:13 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Open-ILS/src/eg2/src/app/staff/circ/checkin/checkin.component.ts

index 67b0f91..eb92e90 100644 (file)
@@ -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));