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_modification.firstname %] [% borrower_modification.surname %]</li> |
15 |
[% IF borrower_modification.cardnumber %]<li>Cardnumber: [% borrower_modification.cardnumber %]</li>[% END %] |
16 |
[% IF borrower_modification.email %]<li>Email: [% borrower_modification.email %]</li>[% END %] |
17 |
[% IF borrower_modification.phone %]<li>Phone: [% borrower_modification.phone %]</li>[% END %] |
18 |
[% IF borrower_modification.mobile %]<li>Mobile: [% borrower_modification.mobile %]</li>[% END %] |
19 |
[% IF borrower_modification.fax %]<li>Fax: [% borrower_modification.fax %]</li>[% END %] |
20 |
[% IF borrower_modification.emailpro %]<li>Secondary email: [% borrower_modification.emailpro %]</li>[% END %] |
21 |
[% IF borrower_modification.phonepro %]<li>Secondary phone: [% borrower_modification.phonepro %]</li>[% END %] |
22 |
[% IF borrower_modification.branchcode %]<li>Home library: [% borrower_modification.branchcode %]</li>[% END %] |
23 |
[% IF borrower_modification.categorycode %]<li>Temporary patron category: [% borrower_modification.categorycode %]</li>[% END %] |
24 |
</ul> |
25 |
</p> |
26 |
<p>Click this link to verify the account: <a href='[% Koha.Preference('OPACBaseURL') %]/cgi-bin/koha/opac-registration-verify.pl?token=[% borrower_modification.verification_token %]'>[% Koha.Preference('OPACBaseURL') %]/cgi-bin/koha/opac-registration-verify.pl?token=[% borrower_modification.verification_token %]</a></p>")}); |
27 |
|
28 |
say_success( $out, "Added notice 'OPAC_REG_VERIFY_LIB'" ); |
29 |
}, |
30 |
}; |