Lines 169-179
sub notify_owner {
Link Here
|
169 |
my $toaddr = C4::Members::GetNoticeEmailAddress( $param->{owner} ); |
169 |
my $toaddr = C4::Members::GetNoticeEmailAddress( $param->{owner} ); |
170 |
return if !$toaddr; |
170 |
return if !$toaddr; |
171 |
|
171 |
|
|
|
172 |
my $patron = Koha::Patrons->find( $param->{owner} ); |
173 |
|
172 |
#prepare letter |
174 |
#prepare letter |
173 |
my $letter = C4::Letters::GetPreparedLetter( |
175 |
my $letter = C4::Letters::GetPreparedLetter( |
174 |
module => 'members', |
176 |
module => 'members', |
175 |
letter_code => 'SHARE_ACCEPT', |
177 |
letter_code => 'SHARE_ACCEPT', |
176 |
branchcode => C4::Context->userenv->{"branch"}, |
178 |
branchcode => C4::Context->userenv->{"branch"}, |
|
|
179 |
lang => $patron->lang, |
177 |
tables => { borrowers => $param->{loggedinuser}, }, |
180 |
tables => { borrowers => $param->{loggedinuser}, }, |
178 |
substitute => { listname => $param->{shelfname}, }, |
181 |
substitute => { listname => $param->{shelfname}, }, |
179 |
); |
182 |
); |
Lines 239-244
sub send_invitekey {
Link Here
|
239 |
module => 'members', |
242 |
module => 'members', |
240 |
letter_code => 'SHARE_INVITE', |
243 |
letter_code => 'SHARE_INVITE', |
241 |
branchcode => C4::Context->userenv->{"branch"}, |
244 |
branchcode => C4::Context->userenv->{"branch"}, |
|
|
245 |
lang => 'default', # Not sure how we could use something more useful else here |
242 |
tables => { borrowers => $param->{loggedinuser}, }, |
246 |
tables => { borrowers => $param->{loggedinuser}, }, |
243 |
substitute => { |
247 |
substitute => { |
244 |
listname => $param->{shelfname}, |
248 |
listname => $param->{shelfname}, |
245 |
- |
|
|