From: Jason Etheridge Date: Mon, 7 Nov 2022 22:36:56 +0000 (-0500) Subject: fix catalog_summary vs catalog_summary.staff bug X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cb7b0c41e2561c2dc7eb20e8f8a44fe4d8e707e2;p=working%2FEvergreen.git fix catalog_summary vs catalog_summary.staff bug searchOrg depth was being passed where a boolean was expected This seems like a failure of TypeScript to detect.. type. What was going on here? Signed-off-by: Jason Etheridge --- diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts index de49b26c16..294842a290 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts @@ -155,7 +155,7 @@ export class RecordComponent implements OnInit { this.bib.getBibSummary( this.recordId, this.searchContext.searchOrg.id(), - this.searchContext.searchOrg.ou_type().depth()).toPromise() + this.searchContext.isStaff).toPromise() .then(summary => { this.summary = this.staffCat.currentDetailRecordSummary = summary; 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 ca2f76bf0f..21657057f5 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 @@ -64,7 +64,11 @@ export class BibStaffViewComponent implements OnInit { } loadSummary(): Promise { - return this.bib.getBibSummary(this.recordId).toPromise() + return this.bib.getBibSummary( + this.recordId, + this.org.root().id(), + true // isStaff + ).toPromise() .then(summary => { this.summary = summary; return summary.getBibCallNumber();