LP1966342 Staff catalog html highlight when holdings are zero user/mccanna/lp1966342_highlight_zero_holdings_v2
authorTerran McCanna <tmccanna@georgialibraries.org>
Wed, 6 Apr 2022 19:55:15 +0000 (15:55 -0400)
committerTerran McCanna <tmccanna@georgialibraries.org>
Wed, 6 Apr 2022 19:55:15 +0000 (15:55 -0400)
After discussion with testers, decided to remove unshadow testing
since it didn't appear to add any value.

Also changed colors to use 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>
Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html

index 5bcd73f..d8660b9 100644 (file)
         <div class="row" [ngClass]="{'pt-2':copyIndex > 0}"
           *ngFor="let copyCount of getHoldingsSummaries(); let copyIdx = index"
                  [ngClass]="{
-            'text-light bg-dark' : copyCount.count == 0 && (copyCount.transcendant == 0 || !copyCount.transcendant) && copyCount.unshadow == 0,
-            'text-light bg-secondary' : copyCount.count == 0 && (copyCount.transcendant == 0 || !copyCount.transcendant),
+            '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">