X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Ffiles.pl;h=dc08751228997845ba1b2bfeb633d020f9be6dcd;hb=5d6c092921919526ade501facb1220f8a108a08f;hp=f011c77899f3126fdc88cb956b90379d98507652;hpb=31a0ed0a43bb4ecfde0b762eb6e654c51da6f66e;p=koha_fer diff --git a/members/files.pl b/members/files.pl index f011c77899..dc08751228 100755 --- a/members/files.pl +++ b/members/files.pl @@ -23,8 +23,10 @@ use warnings; use CGI; use C4::Auth; +use C4::Branch; use C4::Output; use C4::Members; +use C4::Members::Attributes qw(GetBorrowerAttributes); use C4::Debug; use Koha::DateUtils; @@ -100,6 +102,23 @@ else { } $template->param( + categoryname => $data->{'description'}, + branchname => GetBranchName($data->{'branchcode'}), + RoutingSerials => C4::Context->preference('RoutingSerials'), + ); + + if (C4::Context->preference('ExtendedPatronAttributes')) { + my $attributes = GetBorrowerAttributes($borrowernumber); + $template->param( + ExtendedPatronAttributes => 1, + extendedattributes => $attributes + ); + } + + my ($picture, $dberror) = GetPatronImage($data->{'borrowernumber'}); + $template->param( picture => 1 ) if $picture; + + $template->param( files => Koha::Borrower::Files->new( borrowernumber => $borrowernumber ) ->GetFilesInfo(),