Bugzilla – Attachment 108018 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: Patron records with attached files not obvious from patron details view
Bug-21345-Patron-records-with-attached-files-not-o.patch (text/plain), 4.09 KB, created by
Katrin Fischer
on 2020-08-10 20:39:14 UTC
(
hide
)
Description:
Bug 21345: Patron records with attached files not obvious from patron details view
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-08-10 20:39:14 UTC
Size:
4.09 KB
patch
obsolete
>From fbc1d407af6e157fd0d1362fe8be459b40f88be2 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 27 Jul 2020 15:57:40 +0000 >Subject: [PATCH] Bug 21345: Patron records with attached files not obvious > from patron details view > >This patch adds a section to the patron details page for listing files >which have been attached to the patron record. > >To test, apply the patch and enable the EnableBorrowerFiles system >preference. > >- If necessary, attach some files to a patron record by viewing a patron > record and choosing "Files" from the sidebar menu. >- View the detail page (moremember.pl) for a patron who has files > attached. >- You should see a new section under "Alternative contact" with the > heading "Files." > - Test the "Manage" button to make sure it takes you to that patron's > files. > - Confirm that all the attached files are listed. > - Confirm that the links to each file work correctly. > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> > >Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > .../prog/en/modules/members/moremember.tt | 24 ++++++++++++++++++++++ > members/moremember.pl | 2 ++ > 2 files changed, 26 insertions(+) > >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 5803963479..1b3bb75cdf 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt >@@ -700,6 +700,30 @@ > </div> > [% 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 | html %]"><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> <!-- /div.col-sm-6 --> > </div> <!-- /div.row --> > >diff --git a/members/moremember.pl b/members/moremember.pl >index 93efa7a4b5..5d7d5227c8 100755 >--- a/members/moremember.pl >+++ b/members/moremember.pl >@@ -40,6 +40,7 @@ use Koha::Patron::Messages; > use Koha::DateUtils; > use Koha::CsvProfiles; > use Koha::Patrons; >+use Koha::Patron::Files; > use Koha::Token; > use Koha::Checkouts; > >@@ -209,6 +210,7 @@ $template->param( > relatives_issues_count => $relatives_issues_count, > relatives_borrowernumbers => \@relatives, > logged_in_user => $logged_in_user, >+ files => Koha::Patron::Files->new( borrowernumber => $borrowernumber ) ->GetFilesInfo(), > ); > > output_html_with_http_headers $input, $cookie, $template->output; >-- >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