9 [% USE AuthorisedValues %]
11 [% USE TablesSettings %]
12 [% SET footerjs = 1 %]
13 [% INCLUDE 'doc-head-open.inc' %]
14 [% UNLESS ( multi_hold ) %]
15 <title>Koha › Circulation › Holds › Place a hold on [% INCLUDE 'biblio-title-head.inc' %]</title>
17 <title>Koha › Circulation › Holds › Confirm holds</title>
19 [% INCLUDE 'doc-head-close.inc' %]
22 <body id="circ_request" class="catalog">
24 [% INCLUDE 'header.inc' %]
25 [% INCLUDE 'circ-search.inc' %]
27 [% UNLESS ( multi_hold ) %]
28 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
31 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
34 <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
37 [% INCLUDE 'biblio-title.inc' link =1 %]
40 <a href="#" aria-current="page">
47 <nav id="breadcrumbs" aria-label="Breadcrumb" class="breadcrumb">
50 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
53 <a href="/cgi-bin/koha/catalogue/search.pl">Catalog</a>
56 <a href="#" aria-current="page">
62 [% END # UNLESS multi_hold %]
64 <div class="main container-fluid">
66 [% IF ( multi_hold ) # No sidebar menu when placing multiple holds %]
67 <div class="col-md-10 col-md-offset-1">
69 <div class="col-sm-10 col-sm-push-2">
75 <div class="dialog alert">
77 <strong>Cannot place hold:</strong> one or more records without items attached.
79 <strong>Cannot place hold:</strong> this record has no items attached.
84 [% IF ( messagetransfert ) %]
85 <div class="dialog message">
86 <h2>Hold found for ([% nextreservtitle | html %]), please transfer</h2>
87 <p>Hold placed by : <strong> [% nextreservsurname | html %] [% nextreservfirstname | html %]</strong> at : <strong> [% branchname | html %] </strong>, Please transfer this item.
89 <form name="cancelReservewithtransfert" action="branchreserves.pl" method="post">
90 <input type="submit" class="button" />
95 [% UNLESS ( multi_hold ) %]
96 <h1>Place a hold on [% INCLUDE 'biblio-title.inc' link = 1 %]</h1>
98 <h1>Confirm holds</h1>
101 [% UNLESS club OR patron OR patron.borrowernumber OR noitems %]
102 [% IF ( messageborrower ) %]
103 <div class="dialog alert">
104 <h3>Patron not found</h3>
105 <p>No patron with this name, please, try another</p>
109 [% IF ( messageclub ) %]
110 <div class="dialog alert">
111 <h3>Club not found</h3>
112 <p>No club with this name, please, try another</p>
115 <fieldset class="brief">
116 <label>Search patrons or clubs</label>
117 <div id="circ_holds_select" class="toptabs">
119 <li><a href="#holds_patronsearch_pane">Patrons</a></li>
120 <li><a href="#holds_clubsearch_pane">Clubs</a></li>
122 <div id="holds_patronsearch_pane">
123 <form id="holds_patronsearch" action="request.pl?biblionumbers=[% biblionumbers | html %]" method="post">
124 <div class="hint">Enter patron card number or partial name:</div>
125 <input type="text" size="40" id="patron" class="focus" name="findborrower" autocomplete="off" />
126 <input type="submit" value="Search" />
128 <input type="hidden" name="biblionumbers" value="[% biblionumbers | html %]"/>
130 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
133 </form> <!-- /#holds_patronsearch -->
135 [% INCLUDE 'circ-patron-search-results.inc' destination = "holds" %]
138 <div id="holds_clubsearch_pane">
139 <form id="holds_clubsearch" action="request.pl?biblionumber=[% biblionumber | html %]" method="post">
140 <div class="hint">Enter club ID or partial name:</div>
141 <input type="text" size="40" id="club" class="focus" name="findclub" autocomplete="off" />
142 <input type="submit" value="Search" />
144 <input type="hidden" name="biblionumbers" value="[% biblionumbers | html %]"/>
146 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
149 </form> <!-- /#holds_patronsearch -->
151 [% INCLUDE 'clubs-table.inc' destination = "holds" %]
157 <div class="dialog alert hide clubalert">
159 <fieldset class="rows">
160 <legend>Hold details</legend>
161 <form action="/api/v1/clubs/[% club.id | html %]/holds" method="post" name="form" id="club-request-form">
163 [% IF ( multi_hold ) %]
164 <input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/>
165 <input type="hidden" name="bad_bibs" id="bad_bibs" value=""/>
166 <input type="hidden" name="request" value="any"/>
167 [% FOREACH biblioloo IN biblioloop %]
168 <input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/>
169 <input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/>
172 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
173 <input type="hidden" name="title" value="[% biblio.title | html %]" />
174 <input type="hidden" name="rank-request" value="[% fixedRank | html %]" />
175 [% END # /IF multi_hold %]
178 <span class="label">Club: </span> [% club.name | html %]
181 <span class="label">Description: </span> [% club.description | html %]
184 <label for="pickup">Pickup at:</label>
185 <select name="pickup" size="1" id="pickup">
186 [% PROCESS options_for_libraries libraries => Branches.all({ selected => club.branchcode, search_params => { pickup_location => 1 } }) %]
190 <label for="default_patron_home">Pickup at patron's home library when possible:</label>
191 <input type="checkbox" id="default_patron_home" name="default_patron_home"/>
194 <h2 style="padding: 0 1em;">Members</h2>
196 [% FOREACH member IN members %]
197 [% SET patron = member.patron %]
198 <li style="padding: 0.5em 1em;">
199 <div><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])</a></div>
200 [% IF member.exceeded_maxreserves %]
202 <i class="fa fa-error"></i>
203 <strong>Too many holds: </strong> Patron can only place a maximum of [% maxreserves | html %] total holds.
206 [% IF ( member.expiry ) %]
208 <i class="fa fa-warning"></i>
209 <strong>Account has expired</strong>
212 [% IF patron.is_debarred %]
214 <i class="fa fa-warning"></i>
215 <strong>Patron has restrictions</strong>
218 [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %]
220 <i class="fa fa-warning"></i>
221 <strong>Patron has outstanding fines: [% member.amount_outstanding | $Price %]</strong>
225 [% IF ( member.diffbranch ) %]
227 <i class="fa fa-warning"></i>
228 <strong>Pickup library is different.</strong> Patron's home library: ([% Branches.GetName(patron.branchcode) | html %] / [% patron.branchcode | html %] )
234 [% UNLESS ( multi_hold ) %]
235 <fieldset class="action">
236 <input type="submit" value="Place hold" />
239 <table id="requesttitles">
243 [% UNLESS ( item_level_itypes ) %]
249 [% FOREACH biblioloo IN biblioloop %]
250 [% IF ( biblioloo.warn ) %]
256 [% UNLESS ( biblioloo.warn ) %]
257 <input class="multi_hold_item_checkbox" type="checkbox" checked="checked" title="[% biblioloo.biblionumber | html %]"/>
263 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a>
265 [% IF ( biblioloo.publicationyear ) %]
267 <span class="label">Publication year:</span> [% biblioloo.publicationyear | html %]
271 [% IF ( biblioloo.warn ) %]
272 <span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span>
275 [% UNLESS ( item_level_itypes ) %]
277 <img src="[% biblioloo.imageurl | html %]" alt="[% biblioloo.itypename | html %]" title="[% biblioloo.itypename | html %]" />
280 <td>[% biblioloo.rank | html %]</td>
282 [% IF ( biblioloo.checked_previously ) %]
283 <span>Patron has previously checked out this title</span><br/>
285 [% IF ( biblioloo.alreadyres ) %]
288 [% IF ( biblioloo.none_avail ) %]
293 [% IF ( biblioloo.alreadyres ) %]
295 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a>
296 <strong>already has a hold</strong> on this item
299 [% IF ( biblioloo.none_avail ) %]
300 <li> <strong>No items are available</strong> to be placed on hold</li>
303 [% IF ( biblioloo.alreadyres ) %]
306 [% IF ( biblioloo.none_avail ) %]
312 [% END # /FOREACH biblioloo %]
313 </table> <!-- /#requesttitles -->
317 [% ELSIF NOT noitems # /UNLESS patron %]
319 [% IF ( checked_previously && !multi_hold ) %]
320 <div class="dialog alert">
322 <li>Patron has previously checked out this title</li>
327 [% IF ( exceeded_maxreserves || exceeded_holds_per_record || alreadyreserved || none_available || alreadypossession || ageRestricted ) %]
328 <div class="dialog alert">
330 [% UNLESS ( multi_hold ) %]
331 <h3>Cannot place hold</h3>
333 [% IF ( exceeded_maxreserves ) %]
334 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% maxreserves | html %] total holds.</li>
335 [% ELSIF ( exceeded_holds_per_record ) %]
336 <li><strong>Too many holds for this record: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li>
337 [% ELSIF ( alreadypossession ) %]
338 <li> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a> <strong>is already in possession</strong> of one item.</li>
339 [% ELSIF ( alreadyreserved ) %]
340 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a> <strong>already has a hold</strong> on this item.</li>
341 [% ELSIF ( ageRestricted ) %]
342 <li><strong>Age restricted</strong></li>
343 [% ELSIF ( none_available ) %]
344 <li> <strong>No items are available</strong> to be placed on hold.</li>
345 [% ELSIF ( maxreserves ) %]
346 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %] </a> has too many holds.</li>
347 [% END # /IF exceeded_maxreserves %]
349 [% ELSE # UNLESS multi_hold %]
350 <h3>Cannot place hold on some items</h3>
351 [% IF ( exceeded_maxreserves ) %]
352 <li><strong>Too many holds: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can place [% new_reserves_allowed | html %] of the requested [% new_reserves_count | html %] holds for a maximum of [% maxreserves | html %] total holds.</li>
353 [% ELSIF ( exceeded_holds_per_record ) %]
354 [% FOREACH biblioloo IN biblioloop %]
355 [% IF (biblioloo.tooManyHoldsForThisRecord) %]
356 <li><strong>Too many holds for <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]"> [% biblioloo.title | html %]</a>: </strong> <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | html %]">[% patron.firstname | html %] [% patron.surname | html %] </a> can only place a maximum of [% max_holds_for_record | html %] hold(s) on this record.</li>
359 [% END # /IF exceeded_maxreserves %]
360 [% END # /UNLESS multi_hold %]
362 [% END # /IF ( exceeded_maxreserves || ... %]
364 [% IF ( expiry || diffbranch || patron.is_debarred || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %]
365 <div class="dialog message">
368 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a>: <strong>Account has expired</strong></li>
371 [% IF patron.is_debarred %]
372 <li><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]#reldebarments">[% patron.firstname | html %] [% patron.surname | html %]</a>: <strong>Patron has restrictions</strong></li>
375 [% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %]
376 <li><a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a>: <strong>Patron has outstanding fines: [% amount_outstanding | $Price %]</strong></li>
379 [% IF ( diffbranch ) %]
380 <li> <strong>Pickup library is different. </strong>Patron: <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a> Patron's home library: ([% Branches.GetName(patron.branchcode) | html %] / [% patron.branchcode | html %] )</li>
382 </ul> <!-- /.dialog.message -->
384 [% END # /IF expiry || diffbranch ... %]
386 [% IF ( messageborrower ) %]
387 <div class="dialog alert">
388 <h3>Patron not found:</h3>
389 <p>Name or barcode not found. Please try an other </p>
393 <div class="dialog alert hide holdalert">
396 <fieldset class="rows">
397 <legend>Hold details</legend>
398 <form action="placerequest.pl" method="post" name="form" id="hold-request-form">
400 <input type="hidden" name="borrowernumber" value="[% patron.borrowernumber | html %]" />
401 <input type="hidden" name="type" value="str8" />
403 [% IF ( multi_hold ) %]
404 <input type="hidden" name="biblionumbers" id="multi_hold_bibs" value="[% biblionumbers | html %]"/>
405 <input type="hidden" name="bad_bibs" id="bad_bibs" value=""/>
406 <input type="hidden" name="request" value="any"/>
407 [% FOREACH biblioloo IN biblioloop %]
408 <input type="hidden" name="title_[% biblioloo.biblionumber | html %]" value="[% biblioloo.title | html %]"/>
409 <input type="hidden" name="rank_[% biblioloo.biblionumber | html %]" value="[% biblioloo.rank | html %]"/>
412 <input type="hidden" name="biblionumber" value="[% biblionumber | html %]" />
413 <input type="hidden" name="title" value="[% biblio.title | html %]" />
414 <input type="hidden" name="rank-request" value="[% fixedRank | html %]" />
415 [% END # /IF multi_hold %]
419 <span class="label">Patron:</span>
420 [% IF ( patron.borrowernumber ) %]
421 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %])</a>
427 [% UNLESS ( multi_hold ) %]
429 <span class="label">Estimated priority:</span>
430 <strong>[% fixedRank | html %]</strong>
435 <label for="holdnotes">Notes:</label>
436 <textarea id="holdnotes" name="notes" cols="30" rows="1"></textarea>
439 <label for="pickup">Pickup at:</label>
440 <select name="pickup" size="1" id="pickup">
441 [% UNLESS ( multi_hold ) %]
442 [% PROCESS options_for_libraries libraries => Branches.pickup_locations({ search_params => { biblio => biblionumber, patron => patron }, selected => pickup }) %]
444 [% PROCESS options_for_libraries libraries => Branches.all({ selected => pickup, search_params => { pickup_location => 1 } }) %]
449 [% UNLESS ( multi_hold ) %]
450 [% IF Koha.Preference('AllowHoldItemTypeSelection') %]
452 <label for="itemtype">Request specific item type:</label>
453 <select name="itemtype" size="1" id="itemtype">
454 <option value="">Any item type</option>
455 [%- FOREACH itemtype IN available_itemtypes %]
456 <option value="[% itemtype | html %]">[% ItemTypes.GetDescription( itemtype ) | html %]</option>
461 [% END # /UNLESS multi_hold %]
463 [% IF ( reserve_in_future ) %]
465 <label for="from">Hold starts on date:</label>
466 <input name="reserve_date" id="from" size="10" class="datepickerfrom" type="text" >
467 <input type="hidden" class="datepickerfrom_hidden" />
468 <a href="#" id="clear-date-from" class="clear-date">Clear date</a>
473 <label for="to">Hold expires on date:</label>
474 <input name="expiration_date" id="to" size="10" class="datepickerto" type="text" />
475 <input type="hidden" class="datepickerto_hidden" />
476 <a href="#" id="clear-date-to" class="clear-date">Clear date</a>
479 [% UNLESS ( multi_hold ) %]
481 <label for="requestany">Hold next available item </label>
482 [% IF force_hold_level == 'item' %]
483 <input type="checkbox" id="requestany" name="request" disabled="true" />
484 [% ELSIF force_hold_level == 'record' %]
485 <input type="checkbox" id="requestany" checked="checked" value="Any" disabled="true"/>
486 <input type="hidden" name="request" value="Any"/>
488 <input type="checkbox" id="requestany" name="request" checked="checked" value="Any" />
490 <input type="hidden" name="biblioitem" value="[% biblioitemnumber | html %]" />
491 <input type="hidden" name="alreadyreserved" value="[% alreadyreserved | html %]" />
494 [% IF remaining_holds_for_record > 1 %]
496 <label for="holds_to_place_count">Holds to place (count)</label>
497 <input type="text" inputmode="numeric" pattern="[0-9]*" id="holds_to_place_count" name="holds_to_place_count" maxlength="[% remaining_holds_for_record | html %]" value="1" />
500 <input type="hidden" name="holds_to_place_count" value="1" />
502 [% END # /UNLESS multi_hold %]
504 <li id="non_priority_list_item">
505 <label for="non_priority">Non priority hold:</label>
506 <input name="non_priority" id="non_priority" type="checkbox" />
507 <span class="hint">A non priority hold doesn't prevent a current checkout from renewing</span>
511 [% UNLESS ( multi_hold ) %]
512 <fieldset class="action">
513 [% IF ( patron.borrowernumber ) %]
514 [% IF ( override_required ) %]
515 <button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button>
516 [% ELSIF ( none_available ) %]
517 <button type="submit" disabled="disabled" class="btn btn-default btn-disabled">Place hold</button>
519 <button type="submit" class="btn btn-default">Place hold</button>
524 [% FOREACH bibitemloo IN bibitemloop %]
526 [% UNLESS ( item_level_itypes ) %]
528 <span class="label">Item type:</span>
529 [% bibitemloo.description | html %]
533 [% IF ( bibitemloo.publicationyear ) %]
535 <span class="label">Publication year:</span>
536 [% bibitemloo.publicationyear | html %]
541 <h2 style="padding: 0 1em;">
542 Place a hold on a specific item
543 [% IF bibitemloo.force_hold_level == 'item' %]
544 <span class="error"><em>(Required)</em></span>
548 <table id="requestspecific">
552 [% IF ( item_level_itypes ) %]
556 <th>Home library</th>
557 <th>Last location</th>
558 [% IF itemdata_ccode %]
563 [% IF itemdata_enumchron %]
567 <th>Allowed pickup locations</th>
571 [% SET selected = 0 %]
572 [% FOREACH itemloo IN bibitemloo.itemloop %]
573 [% UNLESS ( itemloo.hide ) %]
574 <tr class="[% itemloo.backgroundcolor | html %]">
576 [% IF itemloo.force_hold_level == 'record' # Patron has placed a record level hold previously for this record %]
578 <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
579 Hold must be record level
581 [% ELSIF ( itemloo.available ) %]
582 <input type="radio" name="checkitem" value="[% itemloo.itemnumber | html %]" />
583 [% ELSIF ( itemloo.override ) %]
584 <input type="radio" name="checkitem" class="needsoverride" value="[% itemloo.itemnumber | html %]" />
585 <i class="fa fa-exclamation-triangle fa-lg" style="color:gold" title="Requires override of hold policy"/></i>
588 <i class="fa fa-times fa-lg" title="Cannot be put on hold"></i>
589 [% IF itemloo.not_holdable %]
590 [% IF itemloo.not_holdable == 'damaged' %]
592 [% ELSIF itemloo.not_holdable == 'ageRestricted' %]
594 [% ELSIF itemloo.not_holdable == 'tooManyHoldsForThisRecord' %]
595 Exceeded max holds per record
596 [% ELSIF itemloo.not_holdable == 'tooManyReservesToday' %]
597 Daily hold limit reached for patron
598 [% ELSIF itemloo.not_holdable == 'tooManyReserves' %]
600 [% ELSIF itemloo.not_holdable == 'notReservable' %]
602 [% ELSIF itemloo.not_holdable == 'cannotReserveFromOtherBranches' %]
603 Patron is from different library
604 [% ELSIF itemloo.not_holdable == 'branchNotInHoldGroup' %]
605 Cannot place hold from patron's library
606 [% ELSIF itemloo.not_holdable == 'itemAlreadyOnHold' %]
607 Patron already has hold for this item
608 [% ELSIF itemloo.not_holdable == 'cannotBeTransferred' %]
609 Cannot be transferred to pickup library
610 [% ELSIF itemloo.not_holdable == 'pickupNotInHoldGroup' %]
611 Only pickup locations within the same hold group are allowed
613 [% itemloo.not_holdable | html %]
617 [% END # /IF itemloo.force_hold_level %]
619 [% IF ( item_level_itypes ) %]
621 [% UNLESS ( noItemTypeImages ) %]
622 [% IF ( itemloo.imageurl ) %]<img src="[% itemloo.imageurl | html %]" alt="" /> <br /> [% END %]
624 [% itemloo.itypename | html %]
628 [% itemloo.barcode | html %]
631 [% Branches.GetName( itemloo.homebranch ) | html %]
634 [% Branches.GetName( itemloo.holdingbranch ) | html %]
636 [% IF itemdata_ccode %]
638 [% IF ( itemloo.ccode ) %][% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.ccode', authorised_value => itemloo.ccode ) | html %][% END %]
642 [% itemloo.itemcallnumber | html %]
645 [% IF ( itemloo.copynumber ) %][% itemloo.copynumber | html %][% ELSE %] [% END %]
647 [% IF itemdata_enumchron %]
649 [% itemloo.enumchron | html %]
652 [% IF ( itemloo.onloan ) %]
653 <td data-order="[% itemloo.date_due | html %]">
654 <span class="checkedout">Due [% itemloo.date_due | $KohaDates as_due_date => 1 %]</span>
657 [% IF ( itemloo.transfertwhen ) %]
658 In transit from [% Branches.GetName( itemloo.transfertfrom ) | html %],
659 to [% Branches.GetName( itemloo.transfertto ) | html %], since [% itemloo.transfertwhen | html %]
663 [% IF ( itemloo.reservedate ) %]
664 [% IF ( itemloo.nocancel ) %]
665 Can't be cancelled when item is in transit
667 [% IF ( itemloo.waitingdate ) %]Waiting[% ELSE %]On hold[% END %]
668 [% IF ( itemloo.canreservefromotherbranches ) %]
669 for <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% itemloo.ReservedFor.borrowernumber | uri %]">[% itemloo.ReservedFor.firstname | html %] [% itemloo.ReservedFor.surname | html %]</a>
671 [% IF ( itemloo.waitingdate ) %]at[% ELSE %]expected at[% END %]
672 [% Branches.GetName( itemloo.ExpectedAtLibrary ) | html %] since
673 [% IF ( itemloo.waitingdate ) %]
674 [% itemloo.waitingdate | $KohaDates %]
676 [% IF ( itemloo.reservedate ) %]
677 [% itemloo.reservedate | html %]
680 <a class="info cancel-hold" href="modrequest.pl?CancelBiblioNumber=[% itemloo.biblionumber | html %]&CancelBorrowerNumber=[% itemloo.ReservedFor.borrowernumber | html %]&CancelItemnumber=[% itemloo.itemnumber | html %]">Cancel hold</a>
681 [% END # /IF itemloo.nocancel %]
684 [% END # /IF itemloo.reservedate %]
686 [% IF itemloo.item_level_holds == "N" %]
687 <br/>Item level hold not allowed from OPAC
688 [% ELSIF itemloo.item_level_holds == "F" %]
689 <br/>Item level hold forced from OPAC
692 [% IF ( itemloo.itemlost ) %]
693 <span class="lost">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.itemlost', authorised_value => itemloo.itemlost ) | html %]</span>
696 [% IF ( itemloo.damaged ) %]
697 <span class="dmg">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.damaged', authorised_value => itemloo.damaged ) | html %]</span>
700 [% IF ( itemloo.withdrawn ) %]
701 <span class="wdn">[% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.withdrawn', authorised_value => itemloo.withdrawn ) | html %]</span>
704 [% IF ( itemloo.notforloan ) %]
705 <span class="nfl">Not for loan ([% AuthorisedValues.GetDescriptionByKohaField( kohafield => 'items.notforloan', authorised_value => itemloo.notforloan ) | html %])</span>
709 [% IF itemloo.any_pickup_location %]
712 [% itemloo.pickup_locations | html %]
716 [% END # / UNLESS itemloo.hide %]
717 [% END # /FOREACH itemloo %]
719 </table> <!-- /#requestspecific -->
721 [% IF ( bibitemloo.hiddencount ) %]
723 <p class="hiddencount">
724 <a href="request.pl?biblionumber=[% bibitemloo.biblionumber | uri %]&borrowernumber=[% bibitemloo.borrowernumber | uri %]&showallitems=1">Show all items ([% bibitemloo.hiddencount | html %] hidden)</a>
727 [% END # /IF bibitemloo.hiddencount %]
728 [% END # /FOREACH bibitemloo %]
730 [% ELSE # /UNLESS multi_hold %]
732 <table id="requesttitles">
736 [% UNLESS ( item_level_itypes ) %]
742 [% FOREACH biblioloo IN biblioloop %]
743 [% IF ( biblioloo.warn ) %]
749 [% UNLESS ( biblioloo.warn ) %]
750 <input class="multi_hold_item_checkbox" type="checkbox" checked="checked" title="[% biblioloo.biblionumber | html %]"/>
756 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">[% biblioloo.title | html %]</a>
758 [% IF ( biblioloo.publicationyear ) %]
760 <span class="label">Publication year:</span> [% biblioloo.publicationyear | html %]
764 [% IF ( biblioloo.warn ) %]
765 <span class="not_holdable" title="[% biblioloo.biblionumber | html %]"></span>
768 [% UNLESS ( item_level_itypes ) %]
770 <img src="[% biblioloo.imageurl | html %]" alt="[% biblioloo.itypename | html %]" title="[% biblioloo.itypename | html %]" />
773 <td>[% biblioloo.rank | html %]</td>
775 [% IF ( biblioloo.checked_previously ) %]
776 <span>Patron has previously checked out this title</span><br/>
778 [% IF ( biblioloo.alreadyres ) %]
781 [% IF ( biblioloo.none_avail ) %]
786 [% IF ( biblioloo.alreadyres ) %]
788 <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]">[% patron.firstname | html %] [% patron.surname | html %]</a>
789 <strong>already has a hold</strong> on this item
792 [% IF ( biblioloo.none_avail ) %]
793 <li> <strong>No items are available</strong> to be placed on hold</li>
796 [% IF ( biblioloo.alreadyres ) %]
799 [% IF ( biblioloo.none_avail ) %]
805 [% END # /FOREACH biblioloo %]
806 </table> <!-- /#requesttitles -->
808 [% END # /UNLESS multi_hold %]
810 <fieldset class="action">
811 [% IF ( patron AND patron.borrowernumber ) %]
812 [% IF ( override_required ) %]
813 <button type="submit" class="btn btn-default warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button>
814 [% ELSIF ( none_available ) %]
815 <button type="submit" disabled="disabled" class="btn btn-default btn-disabled">Place hold</button>
817 [% IF ( multi_hold ) %]
818 <button type="submit" class="btn btn-default" id="multi_hold_submit">Place hold</button>
820 <button type="submit" class="btn btn-default">Place hold</button>
823 [% END # /IF patron %]
824 </fieldset> <!-- /.action -->
825 </form> <!-- /#hold-request-form -->
826 </fieldset> <!-- /.rows -->
829 [% UNLESS ( patron ) %]
830 [% IF ( reserveloop ) %]
831 <form id="existing_holds" name="T[% time | html %]" action="modrequest.pl" method="post" style="display:block">
832 [% IF ( multi_hold ) %]
833 <input type = "hidden" name="biblionumbers" value="[% biblionumbers | html %]"/>
836 <h2>Existing holds</h2>
837 <div id="toolbar" class="btn-toolbar">
838 <input type="submit" name="submit" value="Update hold(s)" />
839 <fieldset id="cancellation-reason-fieldset" class="action">
840 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
841 [% IF hold_cancellation %]
842 <label for="cancellation-reason">Cancellation reason: </label>
843 <select class="cancellation-reason" name="cancellation-reason" id="cancellation-reason">
844 <option value="">No reason given</option>
845 [% FOREACH reason IN hold_cancellation %]
846 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
853 [% FOREACH biblioloo IN biblioloop %]
854 [% IF ( biblioloo.reserveloop ) %]
855 [% IF ( multi_hold ) %]
857 <a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% biblioloo.biblionumber | uri %]">
858 [% biblioloo.title | html %]
863 [% IF Koha.Preference('HoldsSplitQueue') == 'branch' %]
864 [% SET branchcodes = [] %]
866 [% FOREACH h IN biblioloo.reserveloop %]
867 [% branchcodes.push( h.branchcode ) %]
869 [% branchcodes = branchcodes.unique %]
871 [% FOREACH b IN branchcodes.sort %]
872 [% SET holds_by_branch = [] %]
873 [% FOREACH h IN biblioloo.reserveloop %]
874 [% IF h.branchcode == b %]
875 [% holds_by_branch.push( h ) %]
879 <legend>[% Branches.GetName( b ) | html %]</legend>
880 [% INCLUDE holds_table.inc holds=holds_by_branch %]
882 [% END # /FOREACh b %]
883 [% ELSIF Koha.Preference('HoldsSplitQueue') == 'itemtype' %]
884 [% SET itemtypes = [] %]
886 [% FOREACH h IN biblioloo.reserveloop %]
887 [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
888 [% itemtypes.push( hold_itemtype ) %]
890 [% itemtypes = itemtypes.unique %]
892 [% FOREACH i IN itemtypes.sort %]
893 [% SET holds_by_itemtype = [] %]
894 [% FOREACH h IN biblioloo.reserveloop %]
895 [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
896 [% IF hold_itemtype == i %]
897 [% holds_by_itemtype.push( h ) %]
903 <legend>[% ItemTypes.GetDescription( i ) | html %]</legend>
905 <legend>Any item type</legend>
907 [% INCLUDE holds_table.inc holds=holds_by_itemtype %]
909 [% END # /FOREACH i %]
910 [% ELSIF Koha.Preference('HoldsSplitQueue') == 'branch_itemtype' %]
911 [% SET branchcodes = [] %]
913 [% FOREACH h IN biblioloo.reserveloop %]
914 [% branchcodes.push( h.branchcode ) %]
916 [% branchcodes = branchcodes.unique %]
918 [% FOREACH b IN branchcodes.sort %]
920 <legend>[% Branches.GetName( b ) | html %]</legend>
921 [% SET holds_by_branch = [] %]
922 [% FOREACH h IN biblioloo.reserveloop %]
923 [% IF h.branchcode == b %]
924 [% holds_by_branch.push( h ) %]
928 [% SET itemtypes = [] %]
929 [% FOREACH h IN holds_by_branch %]
930 [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
931 [% itemtypes.push( hold_itemtype ) %]
933 [% itemtypes = itemtypes.unique %]
935 [% FOREACH i IN itemtypes.sort %]
937 <h3>[% ItemTypes.GetDescription( i ) | html %]</h3>
939 <h3>Any item type</h3>
942 [% SET holds_by_itemtype = [] %]
943 [% FOREACH h IN holds_by_branch %]
944 [% SET hold_itemtype = h.object.item.effective_itemtype || h.itemtype %]
945 [% IF hold_itemtype == i %]
946 [% holds_by_itemtype.push( h ) %]
949 [% INCLUDE holds_table.inc holds=holds_by_itemtype %]
952 [% END # /FOREACH b %]
954 [% INCLUDE holds_table.inc holds=biblioloo.reserveloop %]
955 [% END # /IF HoldsSplitQueue %]
957 [% END # /IF biblioloo.reserveloop %]
958 [% END # FOREACH biblioloo %]
959 </fieldset> <!-- /.rows -->
960 </form> <!-- /name=TTime -->
961 [% END # IF reserveloop %]
962 [% END # UNLESS patron %]
966 [% IF ( multi_hold ) # No sidebar menu when placing multiple holds %]
967 </div> <!-- /.col-md-10.col-md-offset-1 -->
969 </div> <!-- /.col-sm-10.col-sm-push-2 -->
970 <div class="col-sm-2 col-sm-pull-10">
972 [% INCLUDE 'biblio-view-menu.inc' %]
974 </div> <!-- /.col-sm-2.col-sm-pull-10 -->
976 </div> <!-- /.row -->
978 <div id="cancelModal" class="modal" tabindex="-1" role="dialog" aria-hidden="true">
979 <div class="modal-dialog" role="document">
980 <div class="modal-content">
981 <div class="modal-header">
982 <button type="button" class="closebtn" data-dismiss="modal" aria-hidden="true">×</button>
983 <h3>Confirm deletion</h3>
986 <div class="modal-body">
987 <p>Are you sure you want to cancel this hold?</p>
989 <fieldset class="action">
990 [% SET hold_cancellation = AuthorisedValues.GetAuthValueDropbox('HOLD_CANCELLATION') %]
991 [% IF hold_cancellation %]
992 <label for="cancellation-reason">Cancellation reason: </label>
993 <select class="cancellation-reason" name="modal-cancellation-reason" id="modal-cancellation-reason">
994 <option value="">No reason given</option>
995 [% FOREACH reason IN hold_cancellation %]
996 <option value="[% reason.authorised_value | html %]">[% reason.lib | html %]</option>
1003 <div class="modal-footer">
1004 <button id="cancelModalConfirmBtn" type="button" class="btn btn-danger">Confirm cancellation</button>
1005 <a href="#" data-dismiss="modal">Cancel</a>
1011 [% MACRO jsinclude BLOCK %]
1012 [% INCLUDE 'datatables.inc' %]
1013 [% INCLUDE 'calendar.inc' %]
1014 [% INCLUDE 'columns_settings.inc' %]
1015 [% Asset.js("lib/hc-sticky.js") | $raw %]
1016 [% Asset.js("js/circ-patron-search-results.js") | $raw %]
1017 [% INCLUDE 'select2.inc' %]
1020 var biblionumber = "[% biblionumber | $raw %]";
1021 var borrowernumber = "[% patron.borrowernumber | $raw %]";
1022 var patron_homebranch = "[% To.json( Branches.GetName( patron.branchcode ) ) | $raw %]";
1023 var override_items = {[% FOREACH bibitemloo IN bibitemloop %][% FOREACH itemloo IN bibitemloo.itemloop %][% IF ( itemloo.override ) %]
1024 [% itemloo.itemnumber | html %]: {
1025 homebranch: "[% To.json( Branches.GetName( itemloo.homebranch ) ) | $raw %]",
1026 holdallowed: [% itemloo.holdallowed | html %]
1028 [% END %][% END %][% END %]
1030 var MSG_NO_ITEMS_AVAILABLE = _("A hold cannot be requested on any of these items.");
1032 damaged: _("Item damaged"),
1033 ageRestricted: _("Age restricted"),
1034 tooManyHoldsForThisRecord: _("Exceeded max holds per record"),
1035 tooManyReservesToday: _("Daily hold limit reached for patron"),
1036 tooManyReserves: _("Too many holds"),
1037 notReservable: _("Not holdable"),
1038 cannotReserveFromOtherBranches: _("Patron is from different library"),
1039 itemAlreadyOnHold: _("Patron already has hold for this item"),
1040 cannotBeTransferred: _("Cannot be transferred to pickup library"),
1041 pickupNotInHoldGroup: _("Only pickup locations within the same hold group are allowed")
1043 columns_settings_borrowers_table = [% TablesSettings.GetColumns( 'circ', 'circulation', 'table_borrowers', 'json' ) | $raw %];
1044 $.fn.select2.defaults.set("width", "100%" );
1045 $.fn.select2.defaults.set("dropdownAutoWidth", true );
1047 $(document).ready(function() {
1048 $('#cancellation-reason-fieldset').hide();
1049 $('.rank-request').on('change', function() {
1050 if ( $(".rank-request option:selected[value='del']").length ) {
1051 $('#cancellation-reason-fieldset').show();
1053 $('#cancellation-reason-fieldset').hide();
1057 [% SET active = clubs ? 1 : 0 %]
1058 $('#circ_holds_select').tabs({
1059 active: [% active | $raw %],
1060 activate: function(){
1061 $(this).find("input.focus").focus();
1064 $(this).find("input.focus").focus();
1067 function ToggleHoldsToPlace() {
1068 if ( $("#requestany").prop('checked') ) {
1069 $("#holds_to_place_count").prop('disabled', false);
1071 $("#holds_to_place_count").prop('disabled', true);
1074 ToggleHoldsToPlace();
1075 $("#requestany").on('change', function(){
1076 ToggleHoldsToPlace();
1079 [% IF Koha.Preference('UseBranchTransferLimits') %]
1080 $("#pickup").on('change', function(){
1081 var pickup = $("#pickup").val();
1082 var url = "?pickup=" + pickup;
1083 url += "&borrowernumber=" + borrowernumber;
1084 url += "&biblionumber=" + biblionumber;
1085 window.location.replace(url);
1089 [% IF AutoResumeSuspendedHolds %]
1090 $(".suspend_until_datepicker, .datepickerfrom, .datepickerto").datepicker("option", "minDate", 1);
1093 $(".datepickerto").datepicker("option", "altField", ".datepickerto_hidden");
1094 $(".datepickerto").datepicker("option", "altFormat", "yy-mm-dd");
1096 $(".datepickerfrom").datepicker("option", "altField", ".datepickerfrom_hidden");
1097 $(".datepickerfrom").datepicker("option", "altFormat", "yy-mm-dd");
1099 var my_table = $("#requestspecific").dataTable($.extend(true, {}, dataTablesDefaults, {
1101 "sDom": '<"top pager"ilf>t',
1104 //Override fieldset styling for dataTables search box
1105 $("div.top.pager").css("margin-left","1em");
1106 $(".dataTables_filter label").css({
1108 "margin-right":"0em"
1111 $("#club-request-form").on("submit", function() {
1113 $('.clubalert, .holdalert').addClass('hide');
1114 let biblionumbers = [biblionumber];
1115 let biblionumbers_text;
1117 pickup_library_id: $('select[name="pickup"]').val()
1119 if($('input[name="checkitem"]:checked').length)
1120 data.item_id = $('input[name="checkitem"]:checked').val();
1121 if($('input[name="borrowernumber"]').length)
1122 data.patron_id = $('input[name="borrowernumber"]').val();
1123 if($('textarea[name="notes"]').length)
1124 data.notes = $('textarea[name="notes"]').val()||null;
1125 if($('.datepickerto_hidden').length)
1126 data.expiration_date = $('.datepickerto_hidden').val()||null;
1127 if($('.datepickerfrom_hidden').length)
1128 data.hold_date = $('.datepickerfrom_hidden').val()||null;
1129 if($('input[name="itemtype"]').length) {
1130 data.item_type = $('input[name="itemtype"]').val()||null;
1132 if($('input[name="default_patron_home"]:checked').length) {
1133 data.default_patron_home = 1;
1135 if($('input[name="biblionumbers"]').length) {
1136 biblionumbers_text = $('input[name="biblionumbers"]').val();
1137 biblionumbers = biblionumbers_text.replace(/\/$/, '').split('/')
1140 const count = $('input[name="holds_to_place_count"]').length?$('input[name="holds_to_place_count"]').val():1;
1141 biblionumbers.forEach(function(biblionumber) {
1142 data.biblio_id = biblionumber;
1144 url: $t.attr('action'),
1145 method: $t.attr('method').toUpperCase(),
1146 contentType: 'application/json',
1147 data: JSON.stringify(data)
1149 for(let i = 0; i < count; i++) {
1151 .then(function(result) {
1152 let url = 'request.pl?biblionumber='+biblionumber;
1153 if(biblionumbers_text) {
1154 url = 'request.pl?biblionumbers='+biblionumbers_text;
1156 document.location = url;
1158 .fail(function(err) {
1159 var message = err.responseJSON.error;
1160 var match = err.responseJSON.error.match(/Reason: (\w+)\s*$/);
1161 if(match && ERROR_MAP[match[1]]) {
1162 message = '<div><strong>'+_("Cannot place hold")+'</strong></div><div>'+ERROR_MAP[match[1]]+'</div>'
1164 $('.clubalert, .holdalert').removeClass('hide').html(message);
1172 [% UNLESS ( multi_hold ) %]
1173 $("#hold-request-form").on("submit", function(){
1177 $("#hold-request-form").on("submit", function(){
1178 return checkMultiHold();
1182 $(".pickup_location_dropdown").each( function () {
1183 var this_dropdown = $(this);
1184 var hold_id = $(this).data('hold_id');
1186 this_dropdown.select2({
1189 [%- IF Koha.Preference('AllowHoldPolicyOverride') -%]
1190 url: '/api/v1/libraries',
1192 url: '/api/v1/holds/' + encodeURIComponent(hold_id) + '/pickup_locations',
1194 delay: 300, // wait 300 milliseconds before triggering the request
1196 data: function (params) {
1197 var search_term = (params.term === undefined) ? '' : params.term;
1199 "q": JSON.stringify({"name":{"-like":search_term+'%'},"pickup_location":1}),
1204 processResults: function (data) {
1206 data.forEach( function ( library ) {
1209 "id": library.library_id.escapeHtml(),
1210 "text": library.name.escapeHtml()
1214 return { "results": results };
1223 var count_reserv = 0;
1225 // check if we have checkitem form
1226 if (document.form.checkitem){
1227 for (i=0;i<document.form.checkitem.length;i++){
1228 if (document.form.checkitem[i].checked == true) {
1232 // for only one item, check the checkitem without consider the loop checkitem
1234 if (document.form.checkitem.checked == true) {
1240 if (document.form.requestany.checked == true){
1244 if (count_reserv == "0"){
1245 msg += (_("- Please select an item to place a hold") + "\n");
1249 $('#hold-request-form').preventDoubleFormSubmit();
1257 function checkMultiHold() {
1258 var spans = $(".multi_hold_item_checkbox:checked");
1259 if ($(spans).size() == 0) {
1260 alert(MSG_NO_ITEMS_AVAILABLE);
1264 var biblionumbers = "";
1265 $(spans).each(function() {
1266 var bibnum = $(this).attr("title");
1267 biblionumbers += bibnum + "/";
1270 var badSpans = $(".not_holdable");
1272 $(badSpans).each(function() {
1273 var bibnum = $(this).attr("title");
1274 badBibs += bibnum + "/";
1277 $("#multi_hold_bibs").val(biblionumbers);
1278 $("#bad_bibs").val(badBibs);
1280 $('#hold-request-form').preventDoubleFormSubmit();
1285 $(document).ready(function() {
1286 $("input.needsoverride").click(function() { // This must be before the radio button/checkbox switch logic
1287 var itemnumber = this.value;
1290 switch (override_items[itemnumber].holdallowed) {
1291 case 0: msg = _("This item normally cannot be put on hold."); break;
1292 case 1: msg = _("This item normally cannot be put on hold except for patrons from %s.").format(override_items[itemnumber].homebranch); break;
1295 msg += "\n\n" + _("Place hold on this item?");
1297 return confirm(msg);
1299 $("button.warning").click(function() {
1300 return confirm( _("None of these items can normally be put on hold for this patron.") + "\n\n" + _("Place hold?") );
1302 $("#requestany").click(function() {
1304 $("input[name=checkitem]").each(function() {
1305 $(this).prop("checked", false);
1309 $("input[name=checkitem]").click(function() {
1311 $("input[name=checkitem]").each(function() {
1316 if(onechecked == 1){
1317 $("#requestany").prop("checked", false);
1318 $("#holds_to_place_count").prop('disabled', true);
1320 $("#requestany").prop("checked",true);
1321 $("#holds_to_place_count").prop('disabled', false);
1324 var prev_rank_request;
1325 $("select[name=rank-request]").on("focus", function() {
1326 prev_rank_request = $(this).val();
1327 var row = $(this).parents("tr:first");
1328 }).change(function() {
1329 var row = $(this).parents("tr:first");
1330 var value = parseInt($(this).val());
1331 var found_holds = $("select[name='rank-request'][disabled='disabled']").length ; //Count how many are found
1332 if( !isNaN(value) ) { //If moved to 'del'
1333 var after = row.parent().find("tr:nth-child("+(value+1+found_holds )+")"); //Go to the row 1 after the new value (and skip found holds)
1334 if (prev_rank_request > value) {
1335 row.insertBefore(after);
1337 row.insertAfter(after);
1341 var next_priority = 1;
1342 $("select[name=rank-request]").each(function () {
1343 if( isNaN( $(this).val() ) ){ return true; } //Don't reset found or del holds
1344 $(this).val(next_priority);
1349 $(".clear-date").on("click",function(e){
1351 var fieldID = this.id.replace("clear-date-","");
1352 $("#" + fieldID).val("");
1355 // Confirm cancellation of hold
1357 $(".cancel-hold").on("click",function(e) {
1359 cancel_link = $(this);
1360 $('#cancelModal').modal();
1363 $("#cancelModalConfirmBtn").on("click",function(e) {
1364 let borrowernumber = cancel_link.data('borrowernumber');
1365 let biblionumber = cancel_link.data('biblionumber');
1366 let reserve_id = cancel_link.data('id');
1367 let reason = $("#modal-cancellation-reason").val();
1368 let link = `request.pl?action=cancel&borrowernumber=${ borrowernumber }&biblionumber=${ biblionumber }&reserve_id=${ reserve_id }`;
1370 link += "&cancellation-reason=" + reason
1372 window.location.href = link;
1376 [% UNLESS ( patron || patron.borrowernumber || borrowers || noitems ) %]
1377 [% IF ( PatronAutoComplete ) %]
1378 $( "#patron" ).autocomplete({
1379 source: "/cgi-bin/koha/circ/ysearch.pl",
1381 select: function( event, ui ) {
1382 $( "#patron" ).val( ui.item.cardnumber );
1383 $( "#holds_patronsearch" ).submit();
1387 .data( "ui-autocomplete" )._renderItem = function( ul, item ) {
1388 return $( "<li></li>" )
1389 .data( "ui-autocomplete-item", item )
1392 + ( item.surname ? item.surname.escapeHtml() : "" )
1394 + ( item.firstname ? item.firstname.escapeHtml() : "" )
1395 + " (" + ( item.cardnumber ? item.cardnumber.escapeHtml() : "" ) + ")"
1398 + ( item.address ? item.address.escapeHtml() : "" )
1400 + ( item.city ? item.city.escapeHtml() : "" )
1402 + ( item.zipcode ? item.zipcode.escapeHtml() : "" )
1404 + ( item.country ? item.country.escapeHtml() : "" )
1411 Sticky = $("#toolbar");
1413 stickTo: "#existing_holds",
1414 stickyClass: "floating"
1420 [% INCLUDE 'intranet-bottom.inc' %]