Lines 124-129
if ($do_it) {
Link Here
|
124 |
$result->{'biblioitemnumber'}=$item->{'biblionumber'}; |
124 |
$result->{'biblioitemnumber'}=$item->{'biblionumber'}; |
125 |
$result->{'barcode'}=$item->{'barcode'}; |
125 |
$result->{'barcode'}=$item->{'barcode'}; |
126 |
} |
126 |
} |
|
|
127 |
#always add firstname and surname for librarian/user |
128 |
if ($result->{'user'}){ |
129 |
my $userdetails = C4::Members::GetMemberDetails($result->{'user'}); |
130 |
if ($userdetails->{'firstname'}){ |
131 |
$result->{'userfirstname'} = $userdetails->{'firstname'}; |
132 |
} |
133 |
if ($userdetails->{'surname'}){ |
134 |
$result->{'usersurname'} = $userdetails->{'surname'}; |
135 |
} |
136 |
} |
137 |
#add firstname and surname for borrower, when using the CIRCULATION, MEMBERS, FINES |
138 |
if ($result->{module} eq "CIRCULATION" || $result->{module} eq "MEMBERS" || $result->{module} eq "FINES"){ |
139 |
if($result->{'object'}){ |
140 |
my $borrowerdetails = C4::Members::GetMemberDetails($result->{'object'}); |
141 |
if ($borrowerdetails->{'firstname'}){ |
142 |
$result->{'borrowerfirstname'} = $borrowerdetails->{'firstname'}; |
143 |
} |
144 |
if ($borrowerdetails->{'surname'}){ |
145 |
$result->{'borrowersurname'} = $borrowerdetails->{'surname'}; |
146 |
} |
147 |
} |
148 |
} |
127 |
} |
149 |
} |
128 |
|
150 |
|
129 |
if ( $output eq "screen" ) { |
151 |
if ( $output eq "screen" ) { |
130 |
- |
|
|