Lines 90-97
Link Here
|
90 |
<span>There are no more pickups available for this slot. Please choose another one.</span> |
90 |
<span>There are no more pickups available for this slot. Please choose another one.</span> |
91 |
[% CASE 'cannot_checkout' %] |
91 |
[% CASE 'cannot_checkout' %] |
92 |
<span>Unable to check the items out to [% INCLUDE 'patron-title.inc' patron=m.patron %]</span> |
92 |
<span>Unable to check the items out to [% INCLUDE 'patron-title.inc' patron=m.patron %]</span> |
93 |
[% CASE 'no_patron_found' %] |
|
|
94 |
<span>No patron found with cardnumber [% m.cardnumber | html %].</span> |
95 |
[% CASE %] |
93 |
[% CASE %] |
96 |
<span>[% m.code | html %]</span> |
94 |
<span>[% m.code | html %]</span> |
97 |
[% END %] |
95 |
[% END %] |
Lines 435-454
Link Here
|
435 |
[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %]) already has a scheduled pickup for this library. |
433 |
[% patron.firstname | html %] [% patron.surname | html %] ([% patron.cardnumber | html %]) already has a scheduled pickup for this library. |
436 |
</div> |
434 |
</div> |
437 |
[% END %] |
435 |
[% END %] |
438 |
<form method="post" class="form-inline"> |
436 |
<div class="form-group"> |
439 |
<input type="hidden" name="op" value="find-patron"/> |
437 |
<label class="sr-only" for="input-patron-cardnumber">Cardnumber</label> |
440 |
<input type="hidden" name="tab" value="schedule-pickup"/> |
438 |
<div class="input-group"> |
441 |
|
439 |
<div class="input-group-addon">Search a patron</div> |
442 |
<div class="form-group"> |
440 |
<input autocomplete="off" id="find-patron" class="form-control" type="text" style="width:25%" class="noEnterSubmit" placeholder="Enter patron cardnumber or name"//> |
443 |
<label class="sr-only" for="input-patron-cardnumber">Cardnumber</label> |
|
|
444 |
<div class="input-group"> |
445 |
<div class="input-group-addon">Card number</div> |
446 |
<input type="text" class="form-control" name="cardnumber" id="input-patron-cardnumber" placeholder="Enter patron cardnumber"/> |
447 |
</div> |
448 |
</div> |
441 |
</div> |
449 |
|
442 |
</div> |
450 |
<button type="submit" class="btn btn-default">Submit</button> |
|
|
451 |
</form> |
452 |
[% ELSE %] |
443 |
[% ELSE %] |
453 |
[% SET waiting_holds = patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] |
444 |
[% SET waiting_holds = patron.holds.search( found => 'W', branchcode => Branches.GetLoggedInBranchcode ) %] |
454 |
[% IF !policy.enable_waiting_holds_only || waiting_holds.count > 0 %] |
445 |
[% IF !policy.enable_waiting_holds_only || waiting_holds.count > 0 %] |
Lines 523-528
Link Here
|
523 |
<script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script> |
514 |
<script>dayjs.extend(window.dayjs_plugin_isSameOrAfter)</script> |
524 |
<script>dayjs.extend(window.dayjs_plugin_customParseFormat)</script> |
515 |
<script>dayjs.extend(window.dayjs_plugin_customParseFormat)</script> |
525 |
[% INCLUDE 'calendar.inc' %] |
516 |
[% INCLUDE 'calendar.inc' %] |
|
|
517 |
[% INCLUDE 'js-patron-format.inc' %] |
526 |
<script> |
518 |
<script> |
527 |
let pickups = [% To.json(curbside_pickups.unblessed) | $raw %]; |
519 |
let pickups = [% To.json(curbside_pickups.unblessed) | $raw %]; |
528 |
let policy = [% To.json(policy.unblessed) | $raw %]; |
520 |
let policy = [% To.json(policy.unblessed) | $raw %]; |
Lines 654-659
Link Here
|
654 |
} |
646 |
} |
655 |
return true; |
647 |
return true; |
656 |
}); |
648 |
}); |
|
|
649 |
|
650 |
if ( $("#find-patron").length ) { |
651 |
patron_autocomplete($("#find-patron"), { 'on-select-callback': function( event, ui ) { |
652 |
window.location.href = "/cgi-bin/koha/circ/curbside_pickups.pl?op=find-patron&borrowernumber=" + ui.item.patron_id; |
653 |
return false; |
654 |
} |
655 |
}); |
656 |
} |
657 |
|
657 |
}); |
658 |
}); |
658 |
</script> |
659 |
</script> |
659 |
[% END %] |
660 |
[% END %] |
660 |
- |
|
|