@@ -97,15 +97,15 @@
[% ELSE %]
[% INCLUDE 'circ-patron-search-results.inc' destination = "holds" %]
[% END %]
-
+
[% IF ( multi_hold ) %]
[% END %]
-
+
- [% ELSIF NOT noitems %]
+ [% ELSIF NOT noitems # /UNLESS patron %]
[% IF ( checked_previously && !multi_hold ) %]
+
[% FOREACH biblioloo IN biblioloop %]
@@ -629,7 +628,7 @@
[% INCLUDE holds_table.inc holds=holds_by_branch %]
- [% END %]
+ [% END # /FOREACh b %]
[% ELSIF Koha.Preference('HoldsSplitQueue') == 'itemtype' %]
[% SET itemtypes = [] %]
@@ -656,7 +655,7 @@
[% END %]
[% INCLUDE holds_table.inc holds=holds_by_itemtype %]
- [% END %]
+ [% END # /FOREACH i %]
[% ELSIF Koha.Preference('HoldsSplitQueue') == 'branch_itemtype' %]
[% SET branchcodes = [] %]
@@ -701,21 +700,21 @@
[% END %]
- [% END %]
+ [% END # /FOREACH b %]
[% ELSE %]
[% INCLUDE holds_table.inc holds=biblioloo.reserveloop %]
- [% END %]
+ [% END # /IF HoldsSplitQueue %]
- [% END %]
- [% END %]
+ [% END # /IF biblioloo.reserveloop %]
+ [% END # FOREACH biblioloo %]
-
-
- [% END %]
- [% END %]
+
+
+ [% END # IF reserveloop %]
+ [% END # UNLESS patron %]
@@ -725,7 +724,7 @@
@@ -135,9 +135,9 @@
No items are available to be placed on hold.
[% ELSIF ( maxreserves ) %]
Too many holds: [% patron.firstname | html %] [% patron.surname | html %] has too many holds.
- [% END %]
+ [% END # /IF exceeded_maxreserves %]
- [% ELSE %]
+ [% ELSE # UNLESS multi_hold %]
Too many holds: [% patron.firstname | html %] [% patron.surname | html %] can place [% new_reserves_allowed | html %] of the requested [% new_reserves_count | html %] holds for a maximum of [% maxreserves | html %] total holds.
@@ -147,10 +147,10 @@
Too many holds for [% biblioloo.title | html %]: [% patron.firstname | html %] [% patron.surname | html %] can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.
[% END %]
[% END %]
- [% END %]
- [% END %]
+ [% END # /IF exceeded_maxreserves %]
+ [% END # /UNLESS multi_hold %]
- [% END %]
+ [% END # /IF ( exceeded_maxreserves || ... %]
[% IF ( expiry || diffbranch || patron.is_debarred || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %]
- [% END %]
+ [% END # /IF expiry || diffbranch ... %]
[% IF ( messageborrower ) %]
Cannot place hold on some items
[% IF ( exceeded_maxreserves ) %]
@@ -182,9 +181,9 @@
[% END %]
-
+
+
[% END %]
[% UNLESS ( patron ) %]
@@ -597,7 +596,7 @@
[% END %]
-