Lines 83-90
Link Here
|
83 |
<span>There are no more pickups available for this slot. Please choose another one.</span> |
83 |
<span>There are no more pickups available for this slot. Please choose another one.</span> |
84 |
[% CASE 'cannot_checkout' %] |
84 |
[% CASE 'cannot_checkout' %] |
85 |
<span>Unable to check the items out to [% INCLUDE 'patron-title.inc' patron=m.patron %]</span> |
85 |
<span>Unable to check the items out to [% INCLUDE 'patron-title.inc' patron=m.patron %]</span> |
86 |
[% CASE 'no_patron_found' %] |
|
|
87 |
<span>No patron found with cardnumber [% m.cardnumber | html %].</span> |
88 |
[% CASE %] |
86 |
[% CASE %] |
89 |
<span>[% m.code | html %]</span> |
87 |
<span>[% m.code | html %]</span> |
90 |
[% END %] |
88 |
[% END %] |
Lines 428-447
Link Here
|
428 |
[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %]) already has a scheduled pickup for this library. |
426 |
[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %]) already has a scheduled pickup for this library. |
429 |
</div> |
427 |
</div> |
430 |
[% END %] |
428 |
[% END %] |
431 |
<form method="post" class="form-inline"> |
429 |
<div class="form-group"> |
432 |
<input type="hidden" name="op" value="find-patron"/> |
430 |
<label class="sr-only" for="input-patron-cardnumber">Cardnumber</label> |
433 |
<input type="hidden" name="tab" value="schedule-pickup"/> |
431 |
<div class="input-group"> |
434 |
|
432 |
<div class="input-group-addon">Search a patron</div> |
435 |
<div class="form-group"> |
433 |
<input autocomplete="off" id="find-patron" class="form-control" type="text" style="width:25%" class="noEnterSubmit" placeholder="Enter patron cardnumber or name"//> |
436 |
<label class="sr-only" for="input-patron-cardnumber">Cardnumber</label> |
|
|
437 |
<div class="input-group"> |
438 |
<div class="input-group-addon">Card number</div> |
439 |
<input type="text" class="form-control" name="cardnumber" id="input-patron-cardnumber" placeholder="Enter patron cardnumber"/> |
440 |
</div> |
441 |
</div> |
434 |
</div> |
442 |
|
435 |
</div> |
443 |
<button type="submit" class="btn btn-default">Submit</button> |
|
|
444 |
</form> |
445 |
[% ELSE %] |
436 |
[% ELSE %] |
446 |
[% SET waiting_holds = patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] |
437 |
[% SET waiting_holds = patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] |
447 |
[% IF !policy.enable_waiting_holds_only || waiting_holds.count > 0 %] |
438 |
[% IF !policy.enable_waiting_holds_only || waiting_holds.count > 0 %] |
Lines 504-509
Link Here
|
504 |
[% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %] |
495 |
[% Asset.js("lib/dayjs/plugin/isSameOrAfter.js") | $raw %] |
505 |
<script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script> |
496 |
<script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script> |
506 |
[% INCLUDE 'calendar.inc' %] |
497 |
[% INCLUDE 'calendar.inc' %] |
|
|
498 |
[% INCLUDE 'js-patron-format.inc' %] |
507 |
<script> |
499 |
<script> |
508 |
let pickups = [% To.json(curbside_pickups.unblessed) | $raw %]; |
500 |
let pickups = [% To.json(curbside_pickups.unblessed) | $raw %]; |
509 |
let policy = [% To.json(policy.unblessed) | $raw %]; |
501 |
let policy = [% To.json(policy.unblessed) | $raw %]; |
Lines 631-636
Link Here
|
631 |
} |
623 |
} |
632 |
return true; |
624 |
return true; |
633 |
}); |
625 |
}); |
|
|
626 |
|
627 |
if ( $("#find-patron").length ) { |
628 |
patron_autocomplete($("#find-patron"), { 'on-select-callback': function( event, ui ) { |
629 |
window.location.href = "/cgi-bin/koha/circ/curbside_pickups.pl?op=find-patron&borrowernumber=" + ui.item.patron_id; |
630 |
return false; |
631 |
} |
632 |
}); |
633 |
} |
634 |
|
634 |
}); |
635 |
}); |
635 |
</script> |
636 |
</script> |
636 |
[% END %] |
637 |
[% END %] |
637 |
- |
|
|