@@ -, +, @@ includes codebase. 'git grep borrower_debarments.inc', 'git grep patron_restrictions.inc' --- .../prog/en/includes/borrower_debarments.inc | 82 ------------------- .../prog/en/includes/patron_restrictions.inc | 10 --- .../prog/en/modules/admin/restrictions.tt | 1 - 3 files changed, 93 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/patron_restrictions.inc --- a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc @@ -1,82 +0,0 @@ -[% 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 %] - -
TypeCommentExpirationCreated 
- [% 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. - - -
  2. - [% END %] -
  3. -
  4. - - -
  5. -
-
Cancel
-
-
- [% END %] -
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_restrictions.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/patron_restrictions.inc @@ -1,10 +0,0 @@ -[%- BLOCK restriction_type_description -%] - [%- ddisplay = restriction.display_text -%] - [%- SWITCH ddisplay -%] - [%- CASE 'Manual' -%]Manual - [%- CASE 'Overdues' -%]Overdues - [%- CASE 'Suspension' -%]Suspension - [%- CASE 'Discharge' -%]Discharge - [%- CASE -%][% ddisplay | html %] - [%- END -%] -[%- END -%] --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/restrictions.tt @@ -1,7 +1,6 @@ [% USE raw %] [% USE Asset %] [% USE Koha %] -[% PROCESS 'patron_restrictions.inc' %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] [% IF op == 'add_form' %][% IF ( restriction ) %]Modify restriction '[% PROCESS restriction_type_description %]'[% ELSE %]New restriction[% END %][% END %] --