Lines 164-177
sub add_recall {
Link Here
|
164 |
|
164 |
|
165 |
$item = Koha::Items->find( $itemnumber ); |
165 |
$item = Koha::Items->find( $itemnumber ); |
166 |
# add to statistics table |
166 |
# add to statistics table |
167 |
C4::Stats::UpdateStats({ |
167 |
C4::Stats::UpdateStats( |
168 |
branch => C4::Context->userenv->{'branch'}, |
168 |
{ |
169 |
type => 'recall', |
169 |
branch => C4::Context->userenv->{'branch'}, |
170 |
itemnumber => $itemnumber, |
170 |
type => 'recall', |
171 |
borrowernumber => $recall->patron_id, |
171 |
itemnumber => $itemnumber, |
172 |
itemtype => $item->effective_itemtype, |
172 |
borrowernumber => $recall->patron_id, |
173 |
ccode => $item->ccode, |
173 |
itemtype => $item->effective_itemtype, |
174 |
}); |
174 |
ccode => $item->ccode, |
|
|
175 |
categorycode => $checkout->patron->categorycode |
176 |
} |
177 |
); |
175 |
|
178 |
|
176 |
# add action log |
179 |
# add action log |
177 |
C4::Log::logaction( 'RECALLS', 'CREATE', $recall->id, "Recall requested by borrower #" . $recall->patron_id, $interface ) if ( C4::Context->preference('RecallsLog') ); |
180 |
C4::Log::logaction( 'RECALLS', 'CREATE', $recall->id, "Recall requested by borrower #" . $recall->patron_id, $interface ) if ( C4::Context->preference('RecallsLog') ); |
178 |
- |
|
|