Bugzilla – Attachment 108157 Details for
Bug 21345
Patron records with attached files not obvious from patron details view
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21345: (follow-up) Hide files information if EnableBorrowerFiles is disabled
0002-Bug-21345-follow-up-Hide-files-information-if-Enable.patch (text/plain), 4.37 KB, created by
Owen Leonard
on 2020-08-12 19:04:10 UTC
(
hide
)
Description:
Bug 21345: (follow-up) Hide files information if EnableBorrowerFiles is disabled
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-08-12 19:04:10 UTC
Size:
4.37 KB
patch
obsolete
>From 9a48cf561b682de28e0d730210458a4e21422eda Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >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> [% # /div#patron-alternative-contact %] > >- <div id="patron-files" class="patroninfo-section"> >- <div class="patroninfo-heading"> >- <h3>Files</h3> >- <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]"><i class="fa fa-list"></i> Manage</a> >- >- [% IF ( files ) %] >- <div class="rows"> >- <ol> >- [% FOREACH f IN files %] >- <li> >- <a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=download&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a> >- [% IF ( f.file_description ) %] >- - [% f.file_description | html %] >- [% END %] >- </li> >- [% END # /FOREACH f %] >- </ol> >- </div> >- [% END # /IF files %] >+ [% IF Koha.Preference('EnableBorrowerFiles') %] >+ <div id="patron-files" class="patroninfo-section"> >+ <div class="patroninfo-heading"> >+ <h3>Files</h3> >+ <a class="btn btn-default btn-xs" href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]"><i class="fa fa-list"></i> Manage</a> >+ >+ [% IF ( files ) %] >+ <div class="rows"> >+ <ol> >+ [% FOREACH f IN files %] >+ <li> >+ <a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% patron.borrowernumber | uri %]&op=download&file_id=[% f.file_id | uri %]">[% f.file_name | html %]</a> >+ [% IF ( f.file_description ) %] >+ - [% f.file_description | html %] >+ [% END %] >+ </li> >+ [% END # /FOREACH f %] >+ </ol> >+ </div> >+ [% END # /IF files %] > >- </div> <!-- /.patroninfo-heading --> >- </div> <!-- /#patron-files --> >+ </div> <!-- /.patroninfo-heading --> >+ </div> <!-- /#patron-files --> >+ [% END # /IF EnableBorrowerFiles %] > > </div> <!-- /div.col-sm-6 --> > </div> <!-- /div.row --> >-- >2.11.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21345
:
107442
|
107623
|
107789
|
108018
|
108100
| 108157