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_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
};
(-)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_modification.firstname %] [% borrower_modification.surname %]</li>"
2666
            - "[% IF borrower_modification.cardnumber %]<li>Cardnumber: [% borrower_modification.cardnumber %]</li>[% END %]"
2667
            - "[% IF borrower_modification.email %]<li>Email: [% borrower_modification.email %]</li>[% END %]"
2668
            - "[% IF borrower_modification.phone %]<li>Phone: [% borrower_modification.phone %]</li>[% END %]"
2669
            - "[% IF borrower_modification.mobile %]<li>Mobile: [% borrower_modification.mobile %]</li>[% END %]"
2670
            - "[% IF borrower_modification.fax %]<li>Fax: [% borrower_modification.fax %]</li>[% END %]"
2671
            - "[% IF borrower_modification.emailpro %]<li>Secondary email: [% borrower_modification.emailpro %]</li>[% END %]"
2672
            - "[% IF borrower_modification.phonepro %]<li>Secondary phone: [% borrower_modification.phonepro %]</li>[% END %]"
2673
            - "[% IF borrower_modification.branchcode %]<li>Home library: [% borrower_modification.branchcode %]</li>[% END %]"
2674
            - "[% IF borrower_modification.categorycode %]<li>Temporary patron category: [% borrower_modification.categorycode %]</li>[% END %]"
2675
            - "</ul>"
2676
            - "</p>"
2677
            - "<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>"

Return to bug 25090