Line 0
Link Here
|
|
|
1 |
$DBversion = 'XXX'; # will be replaced by the RM |
2 |
if( CheckVersion( $DBversion ) ) { |
3 |
$dbh->do(q{ |
4 |
INSERT IGNORE INTO `letter` (module, code, name, title, content, is_html, message_transport_type) VALUES ('members', 'STAFF_VER_OPAC_REG', 'New patron Opac Self-Registration to verify', 'Verify new Opac patron self registration', '<h3>Opac self registration pending verification</h3> |
5 |
<p><h4>Submitted Opac patron self registration:<h4> |
6 |
<ul> |
7 |
<li><<borrower_modifications.cardnumber>></li> |
8 |
<li><<borrower_modifications.title>> <<borrower_modifications.firstname>> <<borrower_modifications.surname>></li> |
9 |
<li>Physical address: <<borrower_modifications.streetnumber>> <<borrower_modifications.streettype>> <<borrower_modifications.address>> <<borrower_modifications.address2>>, <<borrower_modifications.city>>, <<borrower_modifications.state>> <<borrower_modifications.zipcode>>, <<borrower_modifications.country>></li> |
10 |
<li>Email: <<borrower_modifications.email>></li> |
11 |
<li>Phone: <<borrower_modifications.phone>></li> |
12 |
<li>Mobile: <<borrower_modifications.mobile>></li> |
13 |
<li>Fax: <<borrower_modifications.fax>></li> |
14 |
<li>Secondary email: <<borrower_modifications.emailpro>></li> |
15 |
<li>Secondary phone:<<borrower_modifications.phonepro>></li> |
16 |
<li>Home library: <<borrower_modifications.branchcode>></li> |
17 |
<li>Temporary patron category: <<borrower_modifications.categorycode>></li> |
18 |
</ul> |
19 |
</p> |
20 |
<p> |
21 |
If you wish to create a Koha patron account thereby giving this patron Opac access please click on this verification link: |
22 |
</p> |
23 |
<p> |
24 |
<<OPACBaseURL>>/cgi-bin/koha/opac-registration-verify.pl?token=<<borrower_modifications.verification_token>>&approved=1 |
25 |
</p> |
26 |
<p> |
27 |
If you did not initiate this request, you may safely ignore this one-time message. The request will expire shortly. |
28 |
</p> |
29 |
</p>', 1, 'email') |
30 |
}); |
31 |
|
32 |
$dbh->do(q{ |
33 |
INSERT IGNORE INTO `letter` (module, code, name, title, content, is_html, message_transport_type) VALUES ('members', 'PATRON_AND_LIB_VER', 'Opac Self-Registration Verify Your Email', 'Verify your entered OPAC Self registration email address', 'Hello! |
34 |
<p>Before we can create your library account two things need to happen: |
35 |
<br>1. You verify your email address - To do this please click this link:<br> |
36 |
<<OPACBaseURL>>/cgi-bin/koha/opac-registration-verify.pl?token=<<borrower_modifications.verification_token>> |
37 |
<br>2. A librarian will review your registration and if approved you will receive an email containing a link to the Koha password reset page where you can set a Koha password. |
38 |
</p> |
39 |
<p>If you did not initiate this request, you may safely ignore this one-time message the request will expire shortly.</p>', 1, 'email') |
40 |
}); |
41 |
|
42 |
$dbh->do(q{ |
43 |
INSERT IGNORE INTO `letter` (module, code, name, title, content, is_html, message_transport_type) VALUES ('members', 'SELF_REG_APPROVED', 'Self registration approved', 'Your self registration has been approved', '<h3>Please click the password reset link below to reset your Koha password then you will be able to login to the OPAC:</h3> |
44 |
<p> |
45 |
<<OPACBaseURL>>/cgi-bin/koha/opac-password-recovery.pl?borrowernumber=<<borrowers.borrowernumber>> |
46 |
</p>', 1, 'email') |
47 |
}); |
48 |
|
49 |
SetVersion( $DBversion ); |
50 |
print "Upgrade to $DBversion done (Bug 25090 - Choose to send OPAC self registration verification emails to the library and/or patron allowing libraries to moderate which registrations get Koha accounts)\n"; |
51 |
} |