Lines 342-363
Link Here
|
342 |
<strong>Too many holds: </strong> Patron can only place a maximum of [% maxreserves | html %] total holds. |
342 |
<strong>Too many holds: </strong> Patron can only place a maximum of [% maxreserves | html %] total holds. |
343 |
</div> |
343 |
</div> |
344 |
[% END %] |
344 |
[% END %] |
345 |
[% IF ( patron.is_expired ) %] |
345 |
[% FOREACH message IN messages %] |
346 |
<div> |
346 |
<div> |
347 |
<i class="fa-solid fa-triangle-exclamation"></i> |
347 |
<i class="fa-solid fa-triangle-exclamation"></i> |
348 |
<strong>Account has expired</strong> |
348 |
[% IF message.message == 'expired' %] |
349 |
</div> |
349 |
<strong>Account has expired</strong> |
350 |
[% END %] |
350 |
[% ELSIF message.message == 'restricted' %] |
351 |
[% IF patron.is_debarred %] |
351 |
<strong>Patron has restrictions</strong> |
352 |
<div> |
352 |
[% ELSIF message.message == 'debt_limit' %] |
353 |
<i class="fa-solid fa-triangle-exclamation"></i> |
353 |
<strong>Patron has outstanding fines: [% message.payload.total_outstanding | $Price %]</strong> |
354 |
<strong>Patron has restrictions</strong> |
354 |
[% ELSIF message.message == 'bad_address' %] |
355 |
</div> |
355 |
<strong>Patron's address is flagged as incorrect</strong> |
356 |
[% END %] |
356 |
[% ELSIF message.message == 'card_lost' %] |
357 |
[% IF member.amount_outstanding && Koha.Preference('maxoutstanding') && member.amount_outstanding > Koha.Preference('maxoutstanding') %] |
357 |
<strong>Patron's library card is marked as lost</strong> |
358 |
<div> |
358 |
[% ELSIF message.message == 'hold_limit' %] |
359 |
<i class="fa-solid fa-triangle-exclamation"></i> |
359 |
<strong>Too many holds: </strong> Patron can only place a maximum of [% message.payload.max_holds | html %] total holds. |
360 |
<strong>Patron has outstanding fines: [% member.amount_outstanding | $Price %]</strong> |
360 |
[% END %] |
361 |
</div> |
361 |
</div> |
362 |
[% END %] |
362 |
[% END %] |
363 |
|
363 |
|
Lines 372-378
Link Here
|
372 |
</ol> |
372 |
</ol> |
373 |
[% UNLESS ( multi_hold ) %] |
373 |
[% UNLESS ( multi_hold ) %] |
374 |
<fieldset class="action"> |
374 |
<fieldset class="action"> |
375 |
<input type="submit" class="btn btn-primary" value="Place hold" /> |
375 |
[% IF messages.size && Koha.Preference('AllowHoldPolicyOverride') %] |
|
|
376 |
[% FOREACH message IN messages %] |
377 |
<input type="hidden" name="override_[% message.message | html %]" value="1" /> |
378 |
[% END %] |
379 |
<input type="submit" class="btn btn-danger" value="Place hold with overrides" /> |
380 |
[% ELSE %] |
381 |
<input type="submit" class="btn btn-primary" value="Place hold" /> |
382 |
[% END %] |
376 |
</fieldset> |
383 |
</fieldset> |
377 |
[% ELSE %] |
384 |
[% ELSE %] |
378 |
<table id="requesttitles"> |
385 |
<table id="requesttitles"> |
Lines 509-530
Link Here
|
509 |
</div> |
516 |
</div> |
510 |
[% END # /IF ( exceeded_maxreserves || ... %] |
517 |
[% END # /IF ( exceeded_maxreserves || ... %] |
511 |
|
518 |
|
512 |
[% IF ( patron.is_expired || diffbranch || patron.is_debarred || ( amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') ) ) %] |
519 |
[% IF messages.size || diffbranch %] |
513 |
<div class="alert alert-info"> |
520 |
<div class="alert alert-info"> |
514 |
<ul> |
521 |
<ul> |
515 |
[% IF ( patron.is_expired ) %] |
522 |
[% FOREACH message IN messages %] |
516 |
<li>[% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 %]: <strong>Account has expired</strong></li> |
523 |
<li> |
517 |
[% END %] |
524 |
[% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 %]: |
518 |
|
525 |
[% IF message.message == 'expired' %] |
519 |
[% IF patron.is_debarred %] |
526 |
<strong>Account has expired</strong> |
520 |
<li>[% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 %]: <strong>Patron has restrictions</strong></li> |
527 |
[% ELSIF message.message == 'restricted' %] |
521 |
[% END %] |
528 |
<strong>Patron has restrictions</strong> |
522 |
|
529 |
[% ELSIF message.message == 'debt_limit' %] |
523 |
[% IF amount_outstanding && Koha.Preference('maxoutstanding') && amount_outstanding > Koha.Preference('maxoutstanding') %] |
530 |
<strong>Patron has outstanding fines: [% message.payload.total_outstanding | $Price %]</strong> |
524 |
<li |
531 |
[% ELSIF message.message == 'bad_address' %] |
525 |
>[% INCLUDE 'patron-title.inc' patron => patron no_title => 1 no_cardnumber => 1 hide_patron_infos_if_needed => 1 link_to => 'members_pay' %]: |
532 |
<strong>Patron's address is flagged as incorrect</strong> |
526 |
<strong>Patron has outstanding fines: [% amount_outstanding | $Price %]</strong></li |
533 |
[% ELSIF message.message == 'card_lost' %] |
527 |
> |
534 |
<strong>Patron's library card is marked as lost</strong> |
|
|
535 |
[% ELSIF message.message == 'hold_limit' %] |
536 |
<strong>Too many holds: </strong> Patron can only place a maximum of [% message.payload.max_holds | html %] total holds. |
537 |
[% END %] |
538 |
</li> |
528 |
[% END %] |
539 |
[% END %] |
529 |
|
540 |
|
530 |
[% IF ( diffbranch ) %] |
541 |
[% IF ( diffbranch ) %] |
Lines 536-542
Link Here
|
536 |
</ul> |
547 |
</ul> |
537 |
<!-- /.dialog.message --> |
548 |
<!-- /.dialog.message --> |
538 |
</div> |
549 |
</div> |
539 |
[% END # /IF patron.is_expired || diffbranch ... %] |
550 |
[% END # /IF messages.size || diffbranch %] |
540 |
|
551 |
|
541 |
[% IF ( messageborrower ) %] |
552 |
[% IF ( messageborrower ) %] |
542 |
<div class="alert alert-warning"> |
553 |
<div class="alert alert-warning"> |
Lines 671-677
Link Here
|
671 |
|
682 |
|
672 |
<fieldset class="action"> |
683 |
<fieldset class="action"> |
673 |
[% IF ( patron.borrowernumber ) %] |
684 |
[% IF ( patron.borrowernumber ) %] |
674 |
[% IF ( override_required ) %] |
685 |
[% IF Koha.Preference('AllowHoldPolicyOverride') && (messages.size || override_required) %] |
|
|
686 |
[% FOREACH message IN messages %] |
687 |
<input type="hidden" name="override_[% message.message | html %]" value="1" /> |
688 |
[% END %] |
689 |
[% IF ( override_required ) %] |
690 |
<button type="submit" id="hold_grp_btn" class="btn btn-danger"><i class="fa fa-exclamation-triangle "></i> Place hold with overrides</button> |
691 |
[% ELSIF ( none_available ) %] |
692 |
<button type="submit" id="hold_grp_btn" disabled="disabled" class="btn btn-danger btn-disabled">Place hold with overrides</button> |
693 |
[% ELSE %] |
694 |
<button type="submit" id="hold_grp_btn" class="btn btn-danger">Place hold with overrides</button> |
695 |
[% END %] |
696 |
[% ELSIF ( override_required ) %] |
675 |
<button type="submit" id="hold_grp_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
697 |
<button type="submit" id="hold_grp_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
676 |
[% ELSIF ( none_available ) %] |
698 |
[% ELSIF ( none_available ) %] |
677 |
<button type="submit" id="hold_grp_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button> |
699 |
<button type="submit" id="hold_grp_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button> |
Lines 766-772
Link Here
|
766 |
[% END %] |
788 |
[% END %] |
767 |
<fieldset class="action"> |
789 |
<fieldset class="action"> |
768 |
[% IF ( patron.borrowernumber ) %] |
790 |
[% IF ( patron.borrowernumber ) %] |
769 |
[% IF ( override_required ) %] |
791 |
[% IF Koha.Preference('AllowHoldPolicyOverride') && (messages.size || override_required) %] |
|
|
792 |
[% FOREACH message IN messages %] |
793 |
<input type="hidden" name="override_[% message.message | html %]" value="1" /> |
794 |
[% END %] |
795 |
[% IF ( override_required ) %] |
796 |
<button type="submit" id="hold_any_btn" class="btn btn-danger"><i class="fa fa-exclamation-triangle "></i> Place hold with overrides</button> |
797 |
[% ELSIF ( none_available ) %] |
798 |
<button type="submit" id="hold_any_btn" disabled="disabled" class="btn btn-danger btn-disabled">Place hold with overrides</button> |
799 |
[% ELSE %] |
800 |
<button type="submit" id="hold_any_btn" class="btn btn-danger">Place hold with overrides</button> |
801 |
[% END %] |
802 |
[% ELSIF ( override_required ) %] |
770 |
<button type="submit" id="hold_any_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
803 |
<button type="submit" id="hold_any_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
771 |
[% ELSIF ( none_available ) %] |
804 |
[% ELSIF ( none_available ) %] |
772 |
<button type="submit" id="hold_any_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button> |
805 |
<button type="submit" id="hold_any_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button> |
Lines 1016-1022
Link Here
|
1016 |
[% END # /IF hiddencount %] |
1049 |
[% END # /IF hiddencount %] |
1017 |
<fieldset class="action"> |
1050 |
<fieldset class="action"> |
1018 |
[% IF ( patron.borrowernumber ) %] |
1051 |
[% IF ( patron.borrowernumber ) %] |
1019 |
[% IF ( override_required ) %] |
1052 |
[% IF Koha.Preference('AllowHoldPolicyOverride') && (messages.size || override_required) %] |
|
|
1053 |
[% FOREACH message IN messages %] |
1054 |
<input type="hidden" name="override_[% message.message | html %]" value="1" /> |
1055 |
[% END %] |
1056 |
[% IF ( override_required ) %] |
1057 |
<button type="submit" id="hold_item_btn" class="btn btn-danger"><i class="fa fa-exclamation-triangle "></i> Place hold with overrides</button> |
1058 |
[% ELSIF ( none_available ) %] |
1059 |
<button type="submit" id="hold_item_btn" disabled="disabled" class="btn btn-danger btn-disabled">Place hold with overrides</button> |
1060 |
[% ELSE %] |
1061 |
<button type="submit" id="hold_item_btn" class="btn btn-danger">Place hold with overrides</button> |
1062 |
[% END %] |
1063 |
[% ELSIF ( override_required ) %] |
1020 |
<button type="submit" id="hold_item_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
1064 |
<button type="submit" id="hold_item_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place hold</button> |
1021 |
[% ELSIF ( none_available ) %] |
1065 |
[% ELSIF ( none_available ) %] |
1022 |
<button type="submit" id="hold_item_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button> |
1066 |
<button type="submit" id="hold_item_btn" disabled="disabled" class="btn btn-primary btn-disabled">Place hold</button> |
Lines 1166-1179
Link Here
|
1166 |
</fieldset> |
1210 |
</fieldset> |
1167 |
<fieldset class="action"> |
1211 |
<fieldset class="action"> |
1168 |
[% IF ( patron AND patron.borrowernumber ) %] |
1212 |
[% IF ( patron AND patron.borrowernumber ) %] |
1169 |
[% IF ( override_required ) %] |
1213 |
[% IF Koha.Preference('AllowHoldPolicyOverride') && (messages.size || override_required) %] |
|
|
1214 |
[% FOREACH message IN messages %] |
1215 |
<input type="hidden" name="override_[% message.message | html %]" value="1" /> |
1216 |
[% END %] |
1217 |
[% IF ( override_required ) %] |
1218 |
<button type="submit" id="hold_multi_btn" class="btn btn-danger"><i class="fa fa-exclamation-triangle "></i> Place holds with overrides</button> |
1219 |
[% ELSIF ( no_bibs_available ) %] |
1220 |
<button type="submit" id="hold_multi_btn" class="btn btn-danger btn-disabled" disabled="disabled">Place holds with overrides</button> |
1221 |
[% ELSIF ( none_available ) %] |
1222 |
<button type="submit" id="hold_multi_btn" class="btn btn-danger">Place holds with overrides</button> |
1223 |
[% ELSE %] |
1224 |
<button type="submit" id="hold_multi_btn" class="btn btn-danger">Place holds with overrides</button> |
1225 |
[% END %] |
1226 |
[% ELSIF ( override_required ) %] |
1170 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place holds</button> |
1227 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary warning"><i class="fa fa-exclamation-triangle "></i> Place holds</button> |
1171 |
[% ELSIF ( no_bibs_available ) %] |
1228 |
[% ELSIF ( no_bibs_available ) %] |
1172 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary btn-disabled" disabled="disabled">Place holds</button> |
1229 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary btn-disabled" disabled="disabled">Place holds</button> |
1173 |
[% ELSIF ( none_available ) %] |
1230 |
[% ELSIF ( none_available ) %] |
1174 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary">Place holds</button> |
1231 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary">Place holds</button> |
1175 |
[% ELSE %] |
1232 |
[% ELSE %] |
1176 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary" id="multi_hold_submit">Place holds</button> |
1233 |
<button type="submit" id="hold_multi_btn" class="btn btn-primary">Place holds</button> |
1177 |
[% END %] |
1234 |
[% END %] |
1178 |
[% END # /IF patron %] |
1235 |
[% END # /IF patron %] |
1179 |
</fieldset> |
1236 |
</fieldset> |