Lines 70-76
my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
Link Here
|
70 |
if ( $src eq 'circ' ) { |
70 |
if ( $src eq 'circ' ) { |
71 |
|
71 |
|
72 |
# if we were called from circulation, use the circulation menu and get data to populate it -fbcit |
72 |
# if we were called from circulation, use the circulation menu and get data to populate it -fbcit |
73 |
use C4::Members; |
|
|
74 |
use C4::Members::Attributes qw(GetBorrowerAttributes); |
73 |
use C4::Members::Attributes qw(GetBorrowerAttributes); |
75 |
my $borrowernumber = $object; |
74 |
my $borrowernumber = $object; |
76 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
75 |
my $patron = Koha::Patrons->find( $borrowernumber ); |
Lines 78-100
if ( $src eq 'circ' ) {
Link Here
|
78 |
print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber"); |
77 |
print $input->redirect("/cgi-bin/koha/circ/circulation.pl?borrowernumber=$borrowernumber"); |
79 |
exit; |
78 |
exit; |
80 |
} |
79 |
} |
81 |
$template->param( picture => 1 ) if $patron->image; |
|
|
82 |
my $data = $patron->unblessed; |
83 |
|
84 |
if ( C4::Context->preference('ExtendedPatronAttributes') ) { |
80 |
if ( C4::Context->preference('ExtendedPatronAttributes') ) { |
85 |
my $attributes = GetBorrowerAttributes( $data->{'borrowernumber'} ); |
81 |
my $attributes = GetBorrowerAttributes( $borrowernumber ); |
86 |
$template->param( |
82 |
$template->param( |
87 |
ExtendedPatronAttributes => 1, |
83 |
ExtendedPatronAttributes => 1, |
88 |
extendedattributes => $attributes |
84 |
extendedattributes => $attributes |
89 |
); |
85 |
); |
90 |
} |
86 |
} |
91 |
|
87 |
|
92 |
$template->param(%$data); |
|
|
93 |
|
94 |
$template->param( |
88 |
$template->param( |
95 |
menu => 1, |
89 |
patron => $patron, |
96 |
borrowernumber => $borrowernumber, |
90 |
circulation => 1, |
97 |
categoryname => $patron->category->description, |
|
|
98 |
); |
91 |
); |
99 |
} |
92 |
} |
100 |
|
93 |
|
101 |
- |
|
|