From 9b744d2eace8efa83721644423531015c4412d48 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Wed, 23 Nov 2022 11:41:16 -0500 Subject: [PATCH] lp1959010 have the staff display component check search context for the active search OU Signed-off-by: Galen Charlton Signed-off-by: Jason Etheridge Signed-off-by: Mary Llewellyn Signed-off-by: Galen Charlton --- .../src/app/staff/share/bib-staff-view/bib-staff-view.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/share/bib-staff-view/bib-staff-view.component.ts b/Open-ILS/src/eg2/src/app/staff/share/bib-staff-view/bib-staff-view.component.ts index f0418d1192..f3991ed4d2 100644 --- a/Open-ILS/src/eg2/src/app/staff/share/bib-staff-view/bib-staff-view.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/share/bib-staff-view/bib-staff-view.component.ts @@ -4,6 +4,7 @@ import {BibRecordService, BibRecordSummary } from '@eg/share/catalog/bib-record.service'; import {ServerStoreService} from '@eg/core/server-store.service'; import {CatalogService} from '@eg/share/catalog/catalog.service'; +import {StaffCatalogService} from '@eg/staff/catalog/catalog.service'; @Component({ selector: 'eg-bib-staff-view', @@ -47,7 +48,8 @@ export class BibStaffViewComponent implements OnInit { private bib: BibRecordService, private org: OrgService, private store: ServerStoreService, - private cat: CatalogService + private cat: CatalogService, + private staffCat: StaffCatalogService ) {} ngOnInit() { @@ -70,7 +72,7 @@ export class BibStaffViewComponent implements OnInit { loadSummary(): Promise { return this.bib.getBibSummary( this.recId, - this.org.root().id(), + this.staffCat.searchContext.searchOrg.id(), true // isStaff ).toPromise() .then(summary => { -- 2.11.0