@@ -, +, @@ can no longer be suspended. - All holds are waiting and/or in transit - The "Suspend holds" controls at the bottom of the page should not appear. - Some holds are waiting and/or in transit - The "Suspend holds" controls should appear. --- .../opac-tmpl/bootstrap/en/modules/opac-user.tt | 46 ++++++++++++---------- 1 file changed, 26 insertions(+), 20 deletions(-) --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -626,7 +626,11 @@ + [% SET all_holds_waiting = 1 %] [% FOREACH RESERVE IN RESERVES %] + [% UNLESS ( RESERVE.is_waiting || RESERVE.is_in_transit ) %] + [% SET all_holds_waiting = 0 %] + [% END %] [% IF ( RESERVE.is_waiting ) %] [% IF ( RESERVE.is_at_destination ) %] [% IF ( RESERVE.is_found ) %] @@ -710,7 +714,7 @@ Item in transit from [% Branches.GetName( transfer.frombranch ) | html %] since [% transfer.datesent | $KohaDates %] [% ELSIF ( RESERVE.suspend ) %] - Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until | html %] [% END %] + Suspended [% IF ( RESERVE.suspend_until ) %] until [% RESERVE.suspend_until | $KohaDates %] [% END %] [% ELSE %] [% IF RESERVE.itemtype %] Pending for next available item of item type '[% ItemTypes.GetDescription( RESERVE.itemtype ) | html %]' @@ -780,25 +784,27 @@ [% IF SuspendHoldsOpac %] -
-
- - - - [% IF AutoResumeSuspendedHolds %] - - - Clear date to suspend indefinitely - [% END %] -
-
-
-
-
- - -
-
+ [% UNLESS ( all_holds_waiting ) %] +
+
+ + + + [% IF AutoResumeSuspendedHolds %] + + + Clear date to suspend indefinitely + [% END %] +
+
+
+
+
+ + +
+
+ [% END %] [% END %] [% END # / #RESERVES.count %] --