|
Lines 104-137
if (C4::Context->preference('ExtendedPatronAttributes')) {
Link Here
|
| 104 |
my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $bor->{streettype} ); |
104 |
my $roadtype = C4::Koha::GetAuthorisedValueByCode( 'ROADTYPE', $bor->{streettype} ); |
| 105 |
my $address = $bor->{'streetnumber'} . " $roadtype " . $bor->{'address'}; |
105 |
my $address = $bor->{'streetnumber'} . " $roadtype " . $bor->{'address'}; |
| 106 |
|
106 |
|
| 107 |
$template->param( othernames => $bor->{'othernames'}, |
107 |
$template->param( |
| 108 |
surname => $bor->{'surname'}, |
108 |
othernames => $bor->{'othernames'}, |
| 109 |
firstname => $bor->{'firstname'}, |
109 |
has_overdues => HasOverdues($borrowernumber), |
| 110 |
borrowernumber => $bor->{'borrowernumber'}, |
110 |
surname => $bor->{'surname'}, |
| 111 |
cardnumber => $bor->{'cardnumber'}, |
111 |
firstname => $bor->{'firstname'}, |
| 112 |
categorycode => $bor->{'categorycode'}, |
112 |
borrowernumber => $bor->{'borrowernumber'}, |
| 113 |
category_type => $bor->{'category_type'}, |
113 |
cardnumber => $bor->{'cardnumber'}, |
| 114 |
categoryname => $bor->{'description'}, |
114 |
categorycode => $bor->{'categorycode'}, |
| 115 |
address => $address, |
115 |
category_type => $bor->{'category_type'}, |
| 116 |
address2 => $bor->{'address2'}, |
116 |
categoryname => $bor->{'description'}, |
| 117 |
city => $bor->{'city'}, |
117 |
address => $address, |
| 118 |
state => $bor->{'state'}, |
118 |
address2 => $bor->{'address2'}, |
| 119 |
zipcode => $bor->{'zipcode'}, |
119 |
city => $bor->{'city'}, |
| 120 |
country => $bor->{'country'}, |
120 |
state => $bor->{'state'}, |
| 121 |
phone => $bor->{'phone'}, |
121 |
zipcode => $bor->{'zipcode'}, |
| 122 |
phonepro => $bor->{'phonepro'}, |
122 |
country => $bor->{'country'}, |
| 123 |
mobile => $bor->{'mobile'}, |
123 |
phone => $bor->{'phone'}, |
| 124 |
email => $bor->{'email'}, |
124 |
phonepro => $bor->{'phonepro'}, |
| 125 |
emailpro => $bor->{'emailpro'}, |
125 |
mobile => $bor->{'mobile'}, |
| 126 |
branchcode => $bor->{'branchcode'}, |
126 |
email => $bor->{'email'}, |
| 127 |
branchname => GetBranchName($bor->{'branchcode'}), |
127 |
emailpro => $bor->{'emailpro'}, |
| 128 |
userid => $bor->{'userid'}, |
128 |
branchcode => $bor->{'branchcode'}, |
| 129 |
destination => $destination, |
129 |
branchname => GetBranchName( $bor->{'branchcode'} ), |
| 130 |
is_child => ($bor->{'category_type'} eq 'C'), |
130 |
userid => $bor->{'userid'}, |
| 131 |
activeBorrowerRelationship => (C4::Context->preference('borrowerRelationship') ne ''), |
131 |
destination => $destination, |
| 132 |
minPasswordLength => $minpw, |
132 |
is_child => ( $bor->{'category_type'} eq 'C' ), |
| 133 |
RoutingSerials => C4::Context->preference('RoutingSerials'), |
133 |
activeBorrowerRelationship => ( C4::Context->preference('borrowerRelationship') ne '' ), |
| 134 |
); |
134 |
minPasswordLength => $minpw, |
|
|
135 |
RoutingSerials => C4::Context->preference('RoutingSerials'), |
| 136 |
); |
| 135 |
|
137 |
|
| 136 |
if( scalar(@errors )){ |
138 |
if( scalar(@errors )){ |
| 137 |
$template->param( errormsg => 1 ); |
139 |
$template->param( errormsg => 1 ); |