|
Lines 166-172
BEGIN {
Link Here
|
| 166 |
} |
166 |
} |
| 167 |
); |
167 |
); |
| 168 |
|
168 |
|
| 169 |
Adds reserve and generates HOLDPLACED message. |
169 |
Adds reserve and generates HOLDPLACED message and HOLDPLACED_PATRON message. |
| 170 |
|
170 |
|
| 171 |
The following tables are available witin the HOLDPLACED message: |
171 |
The following tables are available witin the HOLDPLACED message: |
| 172 |
|
172 |
|
|
Lines 177-182
The following tables are available witin the HOLDPLACED message:
Link Here
|
| 177 |
items |
177 |
items |
| 178 |
reserves |
178 |
reserves |
| 179 |
|
179 |
|
|
|
180 |
The following tables are available within the HOLDPLACED_PATRON message: |
| 181 |
|
| 182 |
borrowers |
| 183 |
reserves |
| 184 |
|
| 180 |
=cut |
185 |
=cut |
| 181 |
|
186 |
|
| 182 |
sub AddReserve { |
187 |
sub AddReserve { |
|
Lines 306-311
sub AddReserve {
Link Here
|
| 306 |
} |
311 |
} |
| 307 |
} |
312 |
} |
| 308 |
|
313 |
|
|
|
314 |
# Send email to patron if syspref is active |
| 315 |
if ( C4::Context->preference("EmailPatronWhenHoldIsPlaced") ) { |
| 316 |
my $patron = $hold->patron; |
| 317 |
if ( |
| 318 |
my $letter = C4::Letters::GetPreparedLetter( |
| 319 |
module => 'reserves', |
| 320 |
letter_code => 'HOLDPLACED_PATRON', |
| 321 |
branchcode => $branch, |
| 322 |
lang => $patron->lang, |
| 323 |
tables => { |
| 324 |
borrowers => $patron->unblessed, |
| 325 |
reserves => $hold->unblessed, |
| 326 |
}, |
| 327 |
) |
| 328 |
) |
| 329 |
{ |
| 330 |
C4::Letters::EnqueueLetter( |
| 331 |
{ |
| 332 |
letter => $letter, |
| 333 |
borrowernumber => $borrowernumber, |
| 334 |
message_transport_type => 'email', |
| 335 |
to_address => $patron->notice_email_address, |
| 336 |
} |
| 337 |
); |
| 338 |
} |
| 339 |
} |
| 340 |
|
| 309 |
Koha::Plugins->call('after_hold_create', $hold); |
341 |
Koha::Plugins->call('after_hold_create', $hold); |
| 310 |
Koha::Plugins->call( |
342 |
Koha::Plugins->call( |
| 311 |
'after_hold_action', |
343 |
'after_hold_action', |
| 312 |
- |
|
|