} 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',
private bib: BibRecordService,
private org: OrgService,
private store: ServerStoreService,
- private cat: CatalogService
+ private cat: CatalogService,
+ private staffCat: StaffCatalogService
) {}
ngOnInit() {
loadSummary(): Promise<any> {
return this.bib.getBibSummary(
this.recId,
- this.org.root().id(),
+ this.staffCat.searchContext.searchOrg.id(),
true // isStaff
).toPromise()
.then(summary => {