From 9799e2024b87038c87d18832703e71fd55f09f99 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 16 Mar 2021 17:27:53 -0400 Subject: [PATCH] LPXXX Show holds count; avoid frozen holds Signed-off-by: Bill Erickson --- Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.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 | 7 +++---- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.component.html b/Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.component.html index 6bec9bf224..6da9e19ec7 100644 --- a/Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.component.html +++ b/Open-ILS/src/eg2/src/app/staff/circ/holds/pull-list.component.html @@ -4,8 +4,8 @@ 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 8bf7e7c65f..34925ceb49 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 @@ -33,6 +33,8 @@ +

Holds Count: {{holdsCount}}

+
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 ab355a3206..6d26c3a255 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 @@ -50,7 +50,7 @@ export class HoldsGridComponent implements OnInit { // If set, all holds are fetched on grid load and sorting/paging all // happens in the client. If false, sorting and paging occur on // the server. - enablePreFetch: boolean; + @Input() enablePreFetch: boolean; // How to sort when no sort parameters have been applied // via grid controls. This uses the eg-grid sort format: @@ -164,8 +164,6 @@ export class HoldsGridComponent implements OnInit { this.store.getItem(this.preFetchSetting).then( applied => this.enablePreFetch = Boolean(applied) ); - } else { - this.enablePreFetch = false; } if (!this.defaultSort) { @@ -225,8 +223,9 @@ export class HoldsGridComponent implements OnInit { if (this.pullListOrg) { filters.cancel_time = null; filters.capture_time = null; + filters.frozen = 'f'; - // Oddly, there are aliases for these (cp_status, cp_circ_lib), + // There are aliases for these (cp_status, cp_circ_lib), // but the API complains when I use them. filters['cp.status'] = [0, 7]; filters['cp.circ_lib'] = this.pullListOrg; -- 2.11.0