[% USE raw %] [% USE Koha %] [% PROCESS 'patron_restrictions.inc' %]
[% IF ( not debarments.defined || debarments.size < 1 ) %]

Patron is currently unrestricted.

[% ELSE %] [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] [% END %] [% FOREACH d IN debarments %] [% dtype = d.type %] [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %] [% END %] [% END %]
Type Comment Expiration Created 
[% PROCESS restriction_type_description restriction=restriction_types.$dtype %] [% IF d.comment.search('OVERDUES_PROCESS') %] Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') | $raw %] [% ELSE %] [% d.comment | $raw %] [% END %] [% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] Indefinite [% END %] [% d.created | $KohaDates %] Remove
[% END %] [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]

Add manual restriction

Add manual restriction
    [% IF Koha.Preference('PatronRestrictionTypes') %]
  1. [% END %]
Cancel
[% END %]