X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fboraccount.pl;h=44db953da51210760d6757b88817736baa249b07;hb=7e9533870ccd5623ea1a442f5b8fc7394d994d50;hp=b197b3f14bafa2a6fa5b46b689e509f9f417d3e3;hpb=944831555e89c8fdb4dc865764de51887a98a23b;p=koha_gimpoz diff --git a/members/boraccount.pl b/members/boraccount.pl index b197b3f14b..44db953da5 100755 --- a/members/boraccount.pl +++ b/members/boraccount.pl @@ -94,17 +94,25 @@ $template->param( adultborrower => 1 ) if ( $data->{'category_type'} eq 'A' ); my ($picture, $dberror) = GetPatronImage($data->{'cardnumber'}); $template->param( picture => 1 ) if $picture; -my $attributes = GetBorrowerAttributes($borrowernumber); + +if (C4::Context->preference('ExtendedPatronAttributes')) { + my $attributes = GetBorrowerAttributes($borrowernumber); + $template->param( + ExtendedPatronAttributes => 1, + extendedattributes => $attributes + ); +} $template->param( finesview => 1, firstname => $data->{'firstname'}, surname => $data->{'surname'}, + othernames => $data->{'othernames'}, borrowernumber => $borrowernumber, cardnumber => $data->{'cardnumber'}, categorycode => $data->{'categorycode'}, category_type => $data->{'category_type'}, - categoryname => $data->{'description'}, + categoryname => $data->{'description'}, address => $data->{'address'}, address2 => $data->{'address2'}, city => $data->{'city'}, @@ -120,7 +128,7 @@ $template->param( is_child => ($data->{'category_type'} eq 'C'), reverse_col => $reverse_col, accounts => $accts, - extendedattributes => $attributes, + activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), ); output_html_with_http_headers $input, $cookie, $template->output;