From 6ce8ffd93440f7be2adf23b55c0f5bbef6fe23d6 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: - Dark gray if no copies, not transcendant, and not unshadowed - Medium gray if no copies and not transcendant - Blue if no copies (but opac-visible) Signed-off-by: Terran McCanna --- .../src/eg2/src/app/staff/catalog/result/record.component.html | 7 ++++++- 1 file changed, 6 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 7b070fe6f5..5bcd73f4e8 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,12 @@
+ *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-light bg-info' : copyCount.count == 0 + }">
{{copyCount.available}} / {{copyCount.count}} items -- 2.11.0