Angular catalog leverages the new batch versions of the bib / metabib
hold counts API to reduce the number of API calls needed per results
page.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
return summary;
}));
}
+
+ // Batch hold counts lookup.
+ getHoldCounts(targetIds: number[], isMetarecord?: boolean):
+ Observable<{[id: string]: number}> {
+
+ const method = isMetarecord ?
+ 'open-ils.circ.mmr.holds.count.batch' :
+ 'open-ils.circ.bre.holds.count.batch';
+
+ return this.net.request('open-ils.circ', method, targetIds);
+ }
}