From 1fec34d506624a5c25f467cac8cde48ae94d75c9 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Fri, 29 Oct 2021 14:49:43 -0400 Subject: [PATCH] LP1904036 Patron place hold uses local storage (see LP1949226) Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.ts b/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.ts index 0843880450..1574f4ec66 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.ts @@ -5,6 +5,7 @@ import {OrgService} from '@eg/core/org.service'; import {NetService} from '@eg/core/net.service'; import {PatronService} from '@eg/staff/share/patron/patron.service'; import {PatronContextService} from './patron.service'; +import {StoreService} from '@eg/core/store.service'; @Component({ templateUrl: 'holds.component.html', @@ -16,6 +17,7 @@ export class HoldsComponent implements OnInit { private router: Router, private org: OrgService, private net: NetService, + private store: StoreService, public patronService: PatronService, public context: PatronContextService ) {} @@ -24,8 +26,12 @@ export class HoldsComponent implements OnInit { } newHold() { - this.router.navigate(['/staff/catalog/search'], - {queryParams: {holdForBarcode: this.context.summary.patron.card().barcode()}}); + + this.store.setLocalItem( + 'eg.circ.patron_hold_target', + this.context.summary.patron.card().barcode()); + + this.router.navigate(['/staff/catalog/search']); } } -- 2.11.0