diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc index 995c7d28df..9181f19507 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc @@ -20,7 +20,11 @@ [% IF SuspendHoldsIntranet %] [% END %] + [% SET first_priority = 0 %] + [% SET last_priority = holds.last.priority %] + [% FOREACH hold IN holds %] + [% IF !hold.found && first_priority == 0 %][% first_priority = hold.priority %][% END %] @@ -70,29 +74,31 @@ [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] - [% SET first_priority = holds.first.priority %] - [% SET last_priority = holds.last.priority %] - [% SET prev_priority = loop.prev.priority %] - [% SET next_priority = loop.next.priority %] - [% holds.index | html %] + [% UNLESS hold.found %] + [% SET prev_priority = loop.prev.priority %] + [% SET next_priority = loop.next.priority %] + [% holds.index | html %] - - - Go up - + + + Go up + - - Go top - + + Go top + - - Go bottom - + + Go bottom + - - Go down - - + + Go down + + + [% ELSE %] + + [% END %] [% END %] @@ -161,15 +167,19 @@ [% IF ( CAN_user_reserveforothers_modify_holds_priority ) %] - - - [% IF ( hold.lowestPriority ) %] - Unset lowest priority - [% ELSE %] - Set to lowest priority - [% END %] - - + [% UNLESS hold.found %] + + + [% IF ( hold.lowestPriority ) %] + Unset lowest priority + [% ELSE %] + Set to lowest priority + [% END %] + + + [% ELSE %] + + [% END %] [% END %]