5 description => "Add new system preferences EmailPatronRegistrations and EmailAddressForPatronRegistrations and new OPAC_REG letter",
8 my ($dbh, $out) = @$args{qw(dbh out)};
10 $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'), ('EmailAddressForPatronRegistrations', '', '', ' If you choose EmailAddressForPatronRegistrations you have to enter a valid email address: ', 'free') });
12 $dbh->do(q{INSERT IGNORE INTO letter (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES ( 'members', 'OPAC_REG', '', 'New OPAC self-registration submitted', 1, 'New OPAC self-registration',
13 '<h3>New OPAC self-registration</h3>
14 <p><h4>Self-registration made:</h4>
16 <li>[% borrower.firstname %] [% borrower.surname %]</li>
17 [% IF borrower.cardnumber %]<li>Cardnumber: [% borrower.cardnumber %]</li>[% END %]
18 [% IF borrower.email %]<li>Email: [% borrower.email %]</li>[% END %]
19 [% IF borrower.phone %]<li>Phone: [% borrower.phone %]</li>[% END %]
20 [% IF borrower.mobile %]<li>Mobile: [% borrower.mobile %]</li>[% END %]
21 [% IF borrower.fax %]<li>Fax: [% borrower.fax %]</li>[% END %]
22 [% IF borrower.emailpro %]<li>Secondary email: [% borrower.emailpro %]</li>[% END %]
23 [% IF borrower.phonepro %]<li>Secondary phone:[% borrower.phonepro %]</li>[% END %]
24 [% IF borrower.branchcode %]<li>Home library: [% borrower.branchcode %]</li>[% END %]
25 [% IF borrower.categorycode %]<li>Patron category: [% borrower.categorycode %]</li>[% END %]
27 </p>', 'email', 'default') });