From 9a48cf561b682de28e0d730210458a4e21422eda Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 12 Aug 2020 18:58:37 +0000 Subject: [PATCH 2/2] Bug 21345: (follow-up) Hide files information if EnableBorrowerFiles is disabled This patch wraps the new patron file information in a check for the EnableBorrowerFiles system preference. --- .../prog/en/modules/members/moremember.tt | 44 +++++++++++----------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index d13fdd2da4..11f9897ef0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -701,28 +701,30 @@ [% END %] [% # /div#patron-alternative-contact %] -
-
-

Files

- Manage - - [% IF ( files ) %] -
-
    - [% FOREACH f IN files %] -
  1. - [% f.file_name | html %] - [% IF ( f.file_description ) %] - - [% f.file_description | html %] - [% END %] -
  2. - [% END # /FOREACH f %] -
-
- [% END # /IF files %] + [% IF Koha.Preference('EnableBorrowerFiles') %] +
+
+

Files

+ Manage + + [% IF ( files ) %] +
+
    + [% FOREACH f IN files %] +
  1. + [% f.file_name | html %] + [% IF ( f.file_description ) %] + - [% f.file_description | html %] + [% END %] +
  2. + [% END # /FOREACH f %] +
+
+ [% END # /IF files %] -
-
+
+
+ [% END # /IF EnableBorrowerFiles %] -- 2.11.0