@@ -, +, @@ from patron details view - 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. --- .../prog/en/modules/members/moremember.tt | 24 ++++++++++++++++++++++ members/moremember.pl | 2 ++ 2 files changed, 26 insertions(+) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -700,6 +700,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 %] + +
+
+ --- a/members/moremember.pl +++ a/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; --