Lines 44-49
use C4::Reserves;
Link Here
|
44 |
use C4::Biblio; |
44 |
use C4::Biblio; |
45 |
use C4::Items; |
45 |
use C4::Items; |
46 |
use C4::Members; |
46 |
use C4::Members; |
|
|
47 |
use C4::Members::Messaging; |
47 |
use C4::Branch; # GetBranches GetBranchName |
48 |
use C4::Branch; # GetBranches GetBranchName |
48 |
use C4::Koha; # FIXME : is it still useful ? |
49 |
use C4::Koha; # FIXME : is it still useful ? |
49 |
use C4::RotatingCollections; |
50 |
use C4::RotatingCollections; |
Lines 429-435
if ( $messages->{'ResFound'}) {
Link Here
|
429 |
my $reserve = $messages->{'ResFound'}; |
430 |
my $reserve = $messages->{'ResFound'}; |
430 |
my $branchname = $branches->{ $reserve->{'branchcode'} }->{'branchname'}; |
431 |
my $branchname = $branches->{ $reserve->{'branchcode'} }->{'branchname'}; |
431 |
my $borr = C4::Members::GetMember( borrowernumber => $reserve->{'borrowernumber'} ); |
432 |
my $borr = C4::Members::GetMember( borrowernumber => $reserve->{'borrowernumber'} ); |
432 |
|
433 |
my $holdmsgpreferences = C4::Members::Messaging::GetMessagingPreferences( { borrowernumber => $reserve->{'borrowernumber'}, message_name => 'Hold_Filled' } ); |
433 |
if ( $reserve->{'ResFound'} eq "Waiting" or $reserve->{'ResFound'} eq "Reserved" ) { |
434 |
if ( $reserve->{'ResFound'} eq "Waiting" or $reserve->{'ResFound'} eq "Reserved" ) { |
434 |
if ( $reserve->{'ResFound'} eq "Waiting" ) { |
435 |
if ( $reserve->{'ResFound'} eq "Waiting" ) { |
435 |
$template->param( |
436 |
$template->param( |
Lines 468-473
if ( $messages->{'ResFound'}) {
Link Here
|
468 |
borrowernumber => $reserve->{'borrowernumber'}, |
469 |
borrowernumber => $reserve->{'borrowernumber'}, |
469 |
itemnumber => $reserve->{'itemnumber'}, |
470 |
itemnumber => $reserve->{'itemnumber'}, |
470 |
reservenotes => $reserve->{'reservenotes'}, |
471 |
reservenotes => $reserve->{'reservenotes'}, |
|
|
472 |
bormessagepref => $holdmsgpreferences->{'transports'}, |
471 |
); |
473 |
); |
472 |
} # else { ; } # error? |
474 |
} # else { ; } # error? |
473 |
} |
475 |
} |