X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=members%2Fnotices.pl;h=51a843c2f6df285ca0dfa782174e27576aca4ed1;hb=1ee7f449be2ba45c2458d2ac571172ecf58752b2;hp=a6e65c807e47465fc57633f349a9ede476454690;hpb=16f1fffdd1f5d1c97db0bf664f83496864b7e24d;p=koha_fer diff --git a/members/notices.pl b/members/notices.pl index a6e65c807e..51a843c2f6 100755 --- a/members/notices.pl +++ b/members/notices.pl @@ -53,7 +53,14 @@ $template->param( picture => 1 ) if $picture; # Getting the messages my $queued_messages = C4::Letters::GetQueuedMessages({borrowernumber => $borrowernumber}); $template->param( %{$borrower} ); -my $attributes = GetBorrowerAttributes($borrowernumber); + +if (C4::Context->preference('ExtendedPatronAttributes')) { + my $attributes = GetBorrowerAttributes($borrowernumber); + $template->param( + ExtendedPatronAttributes => 1, + extendedattributes => $attributes + ); +} $template->param( QUEUED_MESSAGES => $queued_messages, @@ -61,7 +68,7 @@ $template->param( sentnotices => 1, branchname => GetBranchName($borrower->{'branchcode'}), categoryname => $borrower->{'description'}, - extendedattributes => $attributes, + activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), ); output_html_with_http_headers $input, $cookie, $template->output;