This highlights the holdings on the staff catalog search results page
when there are zero holdings as such:
bg-warning (yellow) when there are no copies
and the record is NOT transcendant, and bg-info (blue) when there are
no copies, but it is transcendant.
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
</div>
<div class="col-lg-2">
<div class="row" [ngClass]="{'pt-2':copyIndex > 0}"
- *ngFor="let copyCount of getHoldingsSummaries(); let copyIdx = index">
+ *ngFor="let copyCount of getHoldingsSummaries(); let copyIdx = index"
+ [ngClass]="{
+ 'text-dark bg-warning' : copyCount.count == 0 && (copyCount.transcendant == 0 || !copyCount.transcendant),
+ 'text-light bg-info' : copyCount.count == 0
+ }">
<div class="float-left text-left w-50">
<span class="pr-1">
{{copyCount.available}} / {{copyCount.count}} items