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 <jason@EquinoxOLI.org>
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;
}
loadSummary(): Promise<any> {
- 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();