[% IF ( multi_hold || nobiblio ) # No sidebar menu when placing multiple holds or biblio not found %]
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'datatables.inc' %]
[% INCLUDE 'calendar.inc' %]
[% INCLUDE 'columns_settings.inc' %]
[% Asset.js("lib/hc-sticky.js") | $raw %]
[% INCLUDE 'select2.inc' %]
[% Asset.js("js/holds.js") | $raw%]
[% SET url_biblio_params = "biblionumber=" _ biblionumbers.join("&biblionumber=") %]
[% IF multi_hold %]
[% SET url_biblio_params = url_biblio_params _ "&multi_hold=1" %]
[% END %]
[% PROCESS patron_search_js
table_id => 'table_borrowers',
categories => categories,
libraries => libraries,
extended_attribute_types => attribute_type_codes,
columns => columns,
open_on_row_click => 1,
on_click_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params,
redirect_if_one_result => 1,
redirect_url => '/cgi-bin/koha/reserve/request.pl?' _ url_biblio_params
%]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]
[% ELSE %]
[% END %]
[% IF ( nobiblio ) %]
[% END %]
[% IF ( messageclub ) %]
[% END %]
[% ELSIF club %]
[% ELSIF NOT ( noitems || nobiblio ) # /UNLESS patron %]
[% IF ( checked_previously && !multi_hold ) %]
[% END %]
[% IF ( no_reserves_allowed || exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted || recall ) %]
[% END %]
[% END %]
[% UNLESS ( patron ) %]
[% UNLESS borrowers %]
[% SET hold_count = Biblio.HoldsCount( biblio.biblionumber ) | html %]
[% IF hold_count %]
[% IF always_show_holds == 'DONT' %]
[% UNLESS reserveloop %]
Show holds ([% hold_count | html %])
[% END %]
[% ELSE %]
[% END %]
[% END %]
[% END %]
[% IF ( reserveloop ) %]
[% END # IF reserveloop %]
[% END # UNLESS patron %]
[% IF ( multi_hold || nobiblio ) # No sidebar menu when placing multiple holds or biblio not found %]
[% ELSE %]
[%IF (multi_hold) %]
Cannot place hold: one or more records don't exist.
[% ELSE %]
Cannot place hold: this record doesn't exist.
[% END %]
[% END %]
[% IF ( noitems ) %]
[%IF (multi_hold) %]
Cannot place hold: one or more records without items attached.
[% ELSE %]
Cannot place hold: this record has no items attached.
[% END %]
[% END %]
[% IF ( messagetransfert ) %]
[% END %]
[% UNLESS ( multi_hold ) %]
Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %] [% IF biblio.author %] by [% biblio.author | html %][% END %]
[% ELSE %][% IF ( patron ) %] Place holds [% ELSE %] [% IF clubcount %] Search patrons or clubs [% ELSE %] Search patrons [% END %] [% END %]
[% END %] [% UNLESS club OR patron OR patron.borrowernumber OR noitems OR nobiblio %] [% IF ( messageborrower ) %]Patron not found
No patron with this name, please, try another
Club not found
No club with this name, please, try another
- Patron has previously checked out this title
[% UNLESS ( multi_hold ) %]
No holds allowed: [% patron.firstname | html %] [% patron.surname | html %] cannot place holds on some of these title's items.
[% ELSIF ( exceeded_maxreserves ) %]
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.
[% ELSIF ( exceeded_holds_per_record ) %]
[% FOREACH biblioloo IN biblioloop %]
[% IF (biblioloo.tooManyHoldsForThisRecord) %]
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 # /IF exceeded_maxreserves %]
[% END # /UNLESS multi_hold %]
[% END # /IF ( exceeded_maxreserves || ... %]
[% IF ( patron.is_expired || diffbranch || patron.is_debarred || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %]
[% END # /IF patron.is_expired || diffbranch ... %]
[% IF ( messageborrower ) %]
Cannot place hold
-
[% IF ( no_reserves_allowed ) %]
- No holds allowed: [% patron.firstname | html %] [% patron.surname | html %] cannot place a hold on any of these items. [% ELSIF ( exceeded_maxreserves ) %]
- Too many holds: [% patron.firstname | html %] [% patron.surname | html %] can only place a maximum of [% maxreserves | html %] total holds. [% ELSIF ( exceeded_holds_per_record ) %]
- Too many holds for this record: [% patron.firstname | html %] [% patron.surname | html %] can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record. [% ELSIF ( alreadypossession ) %]
- [% patron.firstname | html %] [% patron.surname | html %] is already in possession of one item. [% ELSIF ( alreadyreserved ) %]
- [% patron.firstname | html %] [% patron.surname | html %] already has a hold on this item. [% ELSIF ( ageRestricted ) %]
- Age restricted [% ELSIF ( none_available ) %]
- No items are available to be placed on hold. [% ELSIF ( maxreserves ) %]
- Too many holds: [% patron.firstname | html %] [% patron.surname | html %] has too many holds. [% ELSIF ( recall ) %]
- [% patron.firstname | html %] [% patron.surname | html %] has already placed a recall on this item. [% END # /IF exceeded_maxreserves %]
Cannot place hold on some items
[% IF (no_reserves_allowed ) %]Patron not found:
Name or barcode not found. Please try an other