@@ -, +, @@ --- .../intranet-tmpl/prog/en/includes/holds_table.inc | 74 ++++++++++++---------- 1 file changed, 42 insertions(+), 32 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/includes/holds_table.inc +++ a/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 %] - - - - Go up - - - - Go top - - - - Go bottom - - - - Go down - - + [% UNLESS hold.found %] + [% SET prev_priority = loop.prev.priority %] + [% SET next_priority = loop.next.priority %] + [% holds.index | html %] + + + + Go up + + + + Go top + + + + Go bottom + + + + 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 %] --