Line 0
Link Here
|
|
|
1 |
use Modern::Perl; |
2 |
use Koha::Installer::Output qw(say_warning say_failure say_success say_info); |
3 |
|
4 |
return { |
5 |
bug_number => "25090", |
6 |
description => "Redirect self-registration verification email to the library", |
7 |
up => sub { |
8 |
my ($args) = @_; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
10 |
|
11 |
$dbh->do(q{INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, message_transport_type, lang, content) VALUES ("members", "OPAC_REG_VERIFY_LIB", "", "New OPAC self-registration submitted for verification", 1, "Verify new OPAC self-registration", "email", "default", "<h3>New OPAC self-registration submitted for verification</h3> |
12 |
<p><h4>Self-registration made:</h4> |
13 |
<ul> |
14 |
<li><<borrower_modifications.firstname>> <<borrower_modifications.surname>></li> |
15 |
<li>Cardnumber: <<borrower_modifications.cardnumber>></li> |
16 |
<li>Email: <<borrower_modifications.email>></li> |
17 |
<li>Phone: <<borrower_modifications.phone>></li> |
18 |
<li>Mobile: <<borrower_modifications.mobile>></li> |
19 |
<li>Fax: <<borrower_modifications.fax>></li> |
20 |
<li>Secondary email: <<borrower_modifications.emailpro>></li> |
21 |
<li>Secondary phone: <<borrower_modifications.phonepro>></li> |
22 |
<li>Home library: <<borrower_modifications.branchcode>></li> |
23 |
<li>Temporary patron category: <<borrower_modifications.categorycode>></li> |
24 |
</ul> |
25 |
</p> |
26 |
<p>Use this link to verify the account: <<OPACBaseURL>>/cgi-bin/koha/opac-registration-verify.pl?token=<<borrower_modifications.verification_token>></p>")}); |
27 |
|
28 |
say_success( $out, "Added notice 'OPAC_REG_VERIFY_LIB'" ); |
29 |
}, |
30 |
}; |