View | Details | Raw Unified | Return to bug 25090
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_25090_-_add_OPAC_REG_VERIFY_LIB_notice.pl (+30 lines)
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
};
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-1 / +26 lines)
Lines 2649-2651 tables: Link Here
2649
            - "[% skipped %] records skipped"
2649
            - "[% skipped %] records skipped"
2650
            - "[% in_error %] records in error"
2650
            - "[% in_error %] records in error"
2651
            - "[% total %] total"
2651
            - "[% total %] total"
2652
- 
2652
2653
        - module: members
2654
          code: OPAC_REG_VERIFY_LIB
2655
          branchcode: ""
2656
          name: "New OPAC self-registration submitted for verification"
2657
          is_html: 1
2658
          title: "Verify new OPAC self-registration"
2659
          message_transport_type: email
2660
          lang: default
2661
          content:
2662
            - "<h3>New OPAC self-registration submitted for verification</h3>"
2663
            - "<p><h4>Self-registration made:</h4>"
2664
            - "<ul>"
2665
            - "<li><<borrower_modifications.firstname>> <<borrower_modifications.surname>></li>"
2666
            - "<li>Cardnumber: <<borrower_modifications.cardnumber>></li>"
2667
            - "<li>Email: <<borrower_modifications.email>></li>"
2668
            - "<li>Phone: <<borrower_modifications.phone>></li>"
2669
            - "<li>Mobile: <<borrower_modifications.mobile>></li>"
2670
            - "<li>Fax: <<borrower_modifications.fax>></li>"
2671
            - "<li>Secondary email: <<borrower_modifications.emailpro>></li>"
2672
            - "<li>Secondary phone: <<borrower_modifications.phonepro>></li>"
2673
            - "<li>Home library: <<borrower_modifications.branchcode>></li>"
2674
            - "<li>Temporary patron category: <<borrower_modifications.categorycode>></li>"
2675
            - "</ul>"
2676
            - "</p>"
2677
            - "<p>Use this link to verify the account: <<OPACBaseURL>>/cgi-bin/koha/opac-registration-verify.pl?token=<<borrower_modifications.verification_token>></p>"

Return to bug 25090