From fb2c761a1af88f059ba69e5e097a63d414430bd0 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Thu, 3 Feb 2022 17:57:45 -0500 Subject: [PATCH] LP#1959405: hold status not looking for shelf delay status This patch fixes the blank status display in the opac by treating that status as a 'Waiting for Copy' status. This commit covers both the TPAC and the Bootstrap OPAC. To Test: As stated by Erica in LP1959405 1. Administration->Local Administration->Library Settins Editor set Hold Shelf Status Delay to 1 minute. 2. Place a hold for a patron 3. Capture the hold. The opac will change from "Waiting for Copy" to a blank column. 4. Allow the delay interval to expire The opac will change from a blank status to "Available" 5. Apply the patch 6. Repeat 2-3. The opac will continue to display "Waiting for Copy" 7. Allow the delay interval to expire The opac will change from "Waiting for Copy" to "Available" Signed-off-by: Garry Collum Signed-off-by: Terran McCanna Signed-off-by: Mike Rylander --- Open-ILS/src/templates-bootstrap/opac/parts/hold_status.tt2 | 4 ++-- Open-ILS/src/templates/opac/parts/hold_status.tt2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/hold_status.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/hold_status.tt2 index bb7f6cd2f6..da1ed3db84 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/hold_status.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/hold_status.tt2 @@ -45,13 +45,13 @@ [% ELSIF hold.hold.status == 3 OR hold.hold.status == 8 %] [% l("In Transit") %] - [% ELSIF hold.hold.status < 3 %] + [% ELSIF hold.hold.status < 3 OR hold.hold.status == 5 %] [% l("Waiting for copy") %] [% END %]
[% # Only show the count for holds that have not been captured - IF hold.hold.status < 3 OR hold.hold.status == 7 %] + IF hold.hold.status < 3 OR hold.hold.status == 5 OR hold.hold.status == 7 %] [% l('You are Hold #[_1] on [quant,_2, copy, copies]', hold.hold.queue_position, hold.hold.potential_copies) | html %] diff --git a/Open-ILS/src/templates/opac/parts/hold_status.tt2 b/Open-ILS/src/templates/opac/parts/hold_status.tt2 index fe5f2714b3..b76fd9a708 100644 --- a/Open-ILS/src/templates/opac/parts/hold_status.tt2 +++ b/Open-ILS/src/templates/opac/parts/hold_status.tt2 @@ -45,13 +45,13 @@ [% ELSIF hold.hold.status == 3 OR hold.hold.status == 8 %] [% l("In Transit") %] - [% ELSIF hold.hold.status < 3 %] + [% ELSIF hold.hold.status < 3 OR hold.hold.status == 5 %] [% l("Waiting for copy") %] [% END %]
[% # Only show the count for holds that have not been captured - IF hold.hold.status < 3 OR hold.hold.status == 7 %] + IF hold.hold.status < 3 OR hold.hold.status == 5 OR hold.hold.status == 7 %] [% l('Hold #[_1] on [quant,_2, copy, copies]', hold.hold.queue_position, hold.hold.potential_copies) | html %] -- 2.11.0