From f0ef880dd8ea3ea2c88da3dd615a43f13a1e681b Mon Sep 17 00:00:00 2001
From: Bill Erickson <berickxx@gmail.com>
Date: Thu, 6 Jan 2022 11:38:51 -0500
Subject: [PATCH] LP1904036 Hide incorrect Holds Count label in patron holds

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
---
 Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.html | 2 ++
 Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html  | 2 +-
 Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts    | 3 +++
 3 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.html b/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.html
index 758cb78355..da0fcb0522 100644
--- a/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/circ/patron/holds.component.html
@@ -9,6 +9,7 @@
         printTemplate="holds_for_patron"
         persistKey="circ.patron.holds"
         (placeHoldRequested)="newHold()"
+        [hideHoldsCount]="true"
         [patronFocused]="true"
         [noLoadProgress]="true"
         [showPlaceHoldButton]="true"
@@ -24,6 +25,7 @@
       <eg-holds-grid 
         printTemplate="holds_for_patron"
         persistKey="circ.patron.holds"
+        [hideHoldsCount]="true"
         [patronFocused]="true"
         [noLoadProgress]="true"
         [hidePickupLibFilter]="true"
diff --git a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html
index 578689e621..fefbe7e07b 100644
--- a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html
+++ b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.html
@@ -39,7 +39,7 @@
 
   <ng-container *ngIf="mode === 'list' && initComplete()">
 
-    <h3 i18n>Holds Count: {{holdsCount}}</h3>
+    <h3 *ngIf="!hideHoldsCount" i18n>Holds Count: {{holdsCount}}</h3>
 
     <div class="row" *ngIf="!hidePickupLibFilter">
       <div class="col-lg-5">
diff --git a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts
index 3aa19157bf..2df39adf2e 100644
--- a/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts
+++ b/Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts
@@ -34,6 +34,9 @@ import {HoldingsService} from '@eg/staff/share/holdings/holdings.service';
 })
 export class HoldsGridComponent implements OnInit {
 
+    // Hide the "Holds Count" header
+    @Input() hideHoldsCount = false;
+
     // If either are set/true, the pickup lib selector will display
     @Input() initialPickupLib: number | IdlObject;
     @Input() hidePickupLibFilter: boolean;
-- 
2.11.0