X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Ffiles.pl;h=84bc41edd4393d6b46a4432f418fff444c9e3faf;hb=215c8f4e3b9da5c390c43eb8e3cd704c2861e102;hp=f011c77899f3126fdc88cb956b90379d98507652;hpb=0d4acbba5c5db238eb42ed37dc9ba3dc2f36974b;p=koha_fer diff --git a/members/files.pl b/members/files.pl index f011c77899..84bc41edd4 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,22 @@ else { } $template->param( + categoryname => $data->{'description'}, + branchname => GetBranchName($data->{'branchcode'}), + ); + + if (C4::Context->preference('ExtendedPatronAttributes')) { + my $attributes = GetBorrowerAttributes($borrowernumber); + $template->param( + ExtendedPatronAttributes => 1, + extendedattributes => $attributes + ); + } + + my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); + $template->param( picture => 1 ) if $picture; + + $template->param( files => Koha::Borrower::Files->new( borrowernumber => $borrowernumber ) ->GetFilesInfo(),