@@ -, +, @@
---
.../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 %]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- |
+ [% UNLESS hold.found %]
+ [% SET prev_priority = loop.prev.priority %]
+ [% SET next_priority = loop.next.priority %]
+ [% holds.index | html %]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+ [% ELSE %]
+ |
+ [% END %]
[% END %]
@@ -161,15 +167,19 @@
|
[% IF ( CAN_user_reserveforothers_modify_holds_priority ) %]
-
-
- [% IF ( hold.lowestPriority ) %]
-
- [% ELSE %]
-
- [% END %]
-
- |
+ [% UNLESS hold.found %]
+
+
+ [% IF ( hold.lowestPriority ) %]
+
+ [% ELSE %]
+
+ [% END %]
+
+ |
+ [% ELSE %]
+ |
+ [% END %]
[% END %]
--
|