LP1966342 Highlight copy count when zero copies user/mccanna/lp1966342_highlight_zero_holdings
authorTerran McCanna <tmccanna@georgialibraries.org>
Thu, 24 Mar 2022 22:21:33 +0000 (18:21 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Thu, 24 Mar 2022 22:21:33 +0000 (18:21 -0400)
This highlights the copy count on the Angular staff catalog search
results page when there are zero holdings attached.

Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html

index 7b070fe..82c0f35 100644 (file)
       </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]="{'bg-warning':copyCount.count < 1}">
           <div class="float-left text-left w-50">
             <span class="pr-1">
             {{copyCount.available}} / {{copyCount.count}} items