From 4cd5a94c3638e0b9e73028522d3795762a8c0556 Mon Sep 17 00:00:00 2001 From: Terran McCanna Date: Mon, 4 Apr 2022 17:02:13 -0400 Subject: [PATCH] LP1966342 Highlight Zero Holdings in Staff Catalog 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 Signed-off-by: Jane Sandberg Signed-off-by: Galen Charlton --- Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html index bc6ec77ff1..13eec62a5e 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/result/record.component.html @@ -147,7 +147,11 @@
+ *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 + }">
{{copyCount.available}} / {{copyCount.count}} items -- 2.11.0