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 1635-1637 tables: Link Here
1635
            - "Callnumber: <<items.itemcallnumber>>"
1635
            - "Callnumber: <<items.itemcallnumber>>"
1636
            - "Waiting since: <<recalls.waitingdate>>"
1636
            - "Waiting since: <<recalls.waitingdate>>"
1637
            - "Notes: <<recalls.recallnotes>>"
1637
            - "Notes: <<recalls.recallnotes>>"
1638
1639
        - module: members
1640
          code: OPAC_REG
1641
          branchcode: ""
1642
          name: "New OPAC self-registration submitted"
1643
          is_html: 1
1644
          title: "New OPAC self-registration"
1645
          message_transport_type: email
1646
          lang: default
1647
          content:
1648
            - "<h3>New OPAC self-registration</h3>"
1649
            - "<p><h4>Self-registration made by</h4>"
1650
            - "<ul>"
1651
            - "<li><<borrower_modifications.firstname>> <<borrower_modifications.surname>></li>"
1652
            - "<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>"
1653
            - "<li>Email: <<borrower_modifications.email>></li>"
1654
            - "<li>Phone: <<borrower_modifications.phone>></li>"
1655
            - "<li>Mobile: <<borrower_modifications.mobile>></li>"
1656
            - "<li>Fax: <<borrower_modifications.fax>></li>"
1657
            - "<li>Secondary email: <<borrower_modifications.emailpro>></li>"
1658
            - "<li>Secondary phone:<<borrower_modifications.phonepro>></li>"
1659
            - "<li>Home library: <<borrower_modifications.branchcode>></li>"
1660
            - "<li>Temporary patron category: <<borrower_modifications.categorycode>></li>"
1661
            - "</ul>"
1662
            - "</p>"
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+2 lines)
Lines 191-199 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
191
('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL),
191
('ElasticsearchIndexStatus_biblios', '0', 'Biblios index status', NULL, NULL),
192
('ElasticsearchMARCFormat', 'ISO2709', 'ISO2709|ARRAY', 'Elasticsearch MARC format. ISO2709 format is recommended as it is faster and takes less space, whereas array is searchable.', 'Choice'),
192
('ElasticsearchMARCFormat', 'ISO2709', 'ISO2709|ARRAY', 'Elasticsearch MARC format. ISO2709 format is recommended as it is faster and takes less space, whereas array is searchable.', 'Choice'),
193
('ElasticsearchCrossFields', '1', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo'),
193
('ElasticsearchCrossFields', '1', '', 'Enable "cross_fields" option for searches using Elastic search.', 'YesNo'),
194
('EmailAddressForPatronRegistrations', '', '', ' If you choose EmailAddressForPatronRegistrations you have to enter a valid email address: ', 'free'),
194
('EmailAddressForSuggestions','','',' If you choose EmailAddressForSuggestions you have to enter a valid email address: ','free'),
195
('EmailAddressForSuggestions','','',' If you choose EmailAddressForSuggestions you have to enter a valid email address: ','free'),
195
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
196
('emailLibrarianWhenHoldIsPlaced','0',NULL,'If ON, emails the librarian whenever a hold is placed','YesNo'),
196
('EmailOverduesNoEmail','1',NULL,'Send send overdues of patrons without email address to staff','YesNo'),
197
('EmailOverduesNoEmail','1',NULL,'Send send overdues of patrons without email address to staff','YesNo'),
198
('EmailPatronRegistrations', '0', '0|EmailAddressForPatronRegistrations|BranchEmailAddress|KohaAdminEmailAddress', 'Choose email address that new patron registrations will be sent to: ', 'Choice'),
197
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
199
('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'),
198
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
200
('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'),
199
('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'),
201
('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 849-854 OPAC: Link Here
849
                  1: Allow
849
                  1: Allow
850
                  0: "Don't allow"
850
                  0: "Don't allow"
851
            - patrons to notify the library of changes to their contact information from the OPAC.
851
            - patrons to notify the library of changes to their contact information from the OPAC.
852
        -
853
            - "Choose email address that new patron self-registrations will be sent to: "
854
            - pref: EmailPatronRegistrations
855
              default: 0
856
              choices:
857
                  0: none
858
                  EmailAddressForPatronRegistrations: EmailAddressForPatronRegistrations
859
                  BranchEmailAddress: email address of branch
860
                  KohaAdminEmailAddress: KohaAdminEmailAddress
861
            - '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: '
862
        -
863
            - pref: EmailAddressForPatronRegistrations
864
              class: email
852
865
853
    Advanced search options:
866
    Advanced search options:
854
        -
867
        -
855
- 

Return to bug 23538