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

(-)a/installer/data/mysql/atomicupdate/bug23538-add_EmailPatronRegistrations_and_EmailAddressForPatronRegistrations_sysprefs.pl (+29 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "23538",
5
    description => "Add new system preferences EmailPatronRegistrations and EmailAddressForPatronRegistrations and new OPAC_REG letter",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
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') });
11
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 by</h4>
15
            <ul>
16
            <li><<borrower_modifications.firstname>> <<borrower_modifications.surname>></li>
17
            <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>
18
            <li>Email: <<borrower_modifications.email>></li>
19
            <li>Phone: <<borrower_modifications.phone>></li>
20
            <li>Mobile: <<borrower_modifications.mobile>></li>
21
            <li>Fax: <<borrower_modifications.fax>></li>
22
            <li>Secondary email: <<borrower_modifications.emailpro>></li>
23
            <li>Secondary phone:<<borrower_modifications.phonepro>></li>
24
            <li>Home library: <<borrower_modifications.branchcode>></li>
25
            <li>Temporary patron category: <<borrower_modifications.categorycode>></li>
26
            </ul>
27
            </p>', 'email', 'default') });
28
    },
29
};
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (+25 lines)
Lines 1731-1733 tables: Link Here
1731
            - "<p>This is to confirm that someone enabled two factor authentication on your account.</p>"
1731
            - "<p>This is to confirm that someone enabled two factor authentication on your account.</p>"
1732
            - "<p>If you did not do this, someone else may be using your account. Please contact technical support.</p>"
1732
            - "<p>If you did not do this, someone else may be using your account. Please contact technical support.</p>"
1733
            - "<p>Your library</p>"
1733
            - "<p>Your library</p>"
1734
1735
        - module: members
1736
          code: OPAC_REG
1737
          branchcode: ""
1738
          name: "New OPAC self-registration submitted"
1739
          is_html: 1
1740
          title: "New OPAC self-registration"
1741
          message_transport_type: email
1742
          lang: default
1743
          content:
1744
            - "<h3>New OPAC self-registration</h3>"
1745
            - "<p><h4>Self-registration made by</h4>"
1746
            - "<ul>"
1747
            - "<li><<borrower_modifications.firstname>> <<borrower_modifications.surname>></li>"
1748
            - "<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>"
1749
            - "<li>Email: <<borrower_modifications.email>></li>"
1750
            - "<li>Phone: <<borrower_modifications.phone>></li>"
1751
            - "<li>Mobile: <<borrower_modifications.mobile>></li>"
1752
            - "<li>Fax: <<borrower_modifications.fax>></li>"
1753
            - "<li>Secondary email: <<borrower_modifications.emailpro>></li>"
1754
            - "<li>Secondary phone:<<borrower_modifications.phonepro>></li>"
1755
            - "<li>Home library: <<borrower_modifications.branchcode>></li>"
1756
            - "<li>Temporary patron category: <<borrower_modifications.categorycode>></li>"
1757
            - "</ul>"
1758
            - "</p>"
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+2 lines)
Lines 201-209 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
201
('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL),
201
('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL),
202
('ElasticsearchMARCFormat', 'ISO2709', 'ISO2709|ARRAY', 'Elasticsearch MARC format. ISO2709 format is recommended as it is faster and takes less space, whereas array is searchable.', 'Choice'),
202
('ElasticsearchMARCFormat', 'ISO2709', 'ISO2709|ARRAY', 'Elasticsearch MARC format. ISO2709 format is recommended as it is faster and takes less space, whereas array is searchable.', 'Choice'),
203
('ElasticsearchCrossFields', '1', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo'),
203
('ElasticsearchCrossFields', '1', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo'),
204
('EmailAddressForPatronRegistrations', '', '', ' If you choose EmailAddressForPatronRegistrations you have to enter a valid email address: ', 'free'),
204
('EmailAddressForSuggestions','','',' If you choose EmailAddressForSuggestions you have to enter a valid email address: ','free'),
205
('EmailAddressForSuggestions','','',' If you choose EmailAddressForSuggestions you have to enter a valid email address: ','free'),
205
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
206
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
206
('EmailOverduesNoEmail','1',NULL,'Send send overdues of patrons without email address to staff','YesNo'),
207
('EmailOverduesNoEmail','1',NULL,'Send send overdues of patrons without email address to staff','YesNo'),
208
('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'),
207
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
209
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
208
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
210
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
209
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
211
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +13 lines)
Lines 856-861 OPAC: Link Here
856
                  1: Allow
856
                  1: Allow
857
                  0: "Don't allow"
857
                  0: "Don't allow"
858
            - patrons to notify the library of changes to their contact information from the OPAC.
858
            - patrons to notify the library of changes to their contact information from the OPAC.
859
        -
860
            - "Choose email address that new patron self-registrations will be sent to: "
861
            - pref: EmailPatronRegistrations
862
              default: 0
863
              choices:
864
                  0: none
865
                  EmailAddressForPatronRegistrations: EmailAddressForPatronRegistrations
866
                  BranchEmailAddress: email address of branch
867
                  KohaAdminEmailAddress: KohaAdminEmailAddress
868
            - 'If you chooose <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=EmailAddressForPatronRegistrations">EmailAddressForPatronRegistrations</a> you have to enter a valid email address: '
869
        -
870
            - pref: EmailAddressForPatronRegistrations
871
              class: email
859
872
860
    Advanced search options:
873
    Advanced search options:
861
        -
874
        -
862
- 

Return to bug 23538