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

(-)a/installer/data/mysql/mandatory/sysprefs.sql (-2 / +2 lines)
Lines 616-625 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
616
('PatronSelfRegistrationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when registering a new patron via the OPAC.','free'),
616
('PatronSelfRegistrationBorrowerUnwantedField','',NULL,'Name the fields you don\'t want to display when registering a new patron via the OPAC.','free'),
617
('PatronSelfRegistrationConfirmEmail', '0', NULL, 'Require users to confirm their email address by entering it twice.', 'YesNo'),
617
('PatronSelfRegistrationConfirmEmail', '0', NULL, 'Require users to confirm their email address by entering it twice.', 'YesNo'),
618
('PatronSelfRegistrationDefaultCategory','','','A patron registered via the OPAC will receive a borrower category code set in this system preference.','free'),
618
('PatronSelfRegistrationDefaultCategory','','','A patron registered via the OPAC will receive a borrower category code set in this system preference.','free'),
619
('PatronSelfRegistrationEmailMustBeUnique', '0', 'If set, the field borrowers.email will be considered as a unique field on self registering', NULL, 'YesNo'),
619
('PatronSelfRegistrationEmailMustBeUnique', '0', 'If set, the field borrowers.email will be considered as a unique field on self-registering', NULL, 'YesNo'),
620
('PatronSelfRegistrationExpireTemporaryAccountsDelay','0',NULL,'If PatronSelfRegistrationDefaultCategory is enabled, this system preference controls how long a patron can have a temporary status before the account is deleted automatically. It is an integer value representing a number of days to wait before deleting a temporary patron account. Setting it to 0 disables the deleting of temporary accounts.','Integer'),
620
('PatronSelfRegistrationExpireTemporaryAccountsDelay','0',NULL,'If PatronSelfRegistrationDefaultCategory is enabled, this system preference controls how long a patron can have a temporary status before the account is deleted automatically. It is an integer value representing a number of days to wait before deleting a temporary patron account. Setting it to 0 disables the deleting of temporary accounts.','Integer'),
621
('PatronSelfRegistrationLibraryList','',NULL,'Only display libraries listed. If empty, all libraries are displayed.','Free'),
621
('PatronSelfRegistrationLibraryList','',NULL,'Only display libraries listed. If empty, all libraries are displayed.','Free'),
622
('PatronSelfRegistrationPrefillForm','1',NULL,'Display password and prefill login form after a patron has self registered','YesNo'),
622
('PatronSelfRegistrationPrefillForm','1',NULL,'Display password and prefill login form after a patron has self-registered','YesNo'),
623
('PatronSelfRegistrationVerifyByEmail','0',NULL,'If enabled, any patron attempting to register themselves via the OPAC will be required to verify themselves via email to activate their account.','YesNo'),
623
('PatronSelfRegistrationVerifyByEmail','0',NULL,'If enabled, any patron attempting to register themselves via the OPAC will be required to verify themselves via email to activate their account.','YesNo'),
624
('PatronsPerPage','20','20','Number of Patrons Per Page displayed by default','Integer'),
624
('PatronsPerPage','20','20','Number of Patrons Per Page displayed by default','Integer'),
625
('PhoneNotification','0',NULL,'If ON, enables generation of phone notifications to be sent by plugins','YesNo'),
625
('PhoneNotification','0',NULL,'If ON, enables generation of phone notifications to be sent by plugins','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-6 / +6 lines)
Lines 792-798 OPAC: Link Here
792
                  0: "Don't use"
792
                  0: "Don't use"
793
            - "the item collection code when finding items for the shelf browser."      
793
            - "the item collection code when finding items for the shelf browser."      
794
794
795
    Self registration and modification:
795
    Self-registration and modification:
796
        -
796
        -
797
            - pref: PatronSelfRegistration
797
            - pref: PatronSelfRegistration
798
              choices:
798
              choices:
Lines 812-819 OPAC: Link Here
812
            - pref: PatronSelfRegistrationDefaultCategory
812
            - pref: PatronSelfRegistrationDefaultCategory
813
              choices: patron-categories
813
              choices: patron-categories
814
            - "as the default patron category for patrons registered via the OPAC."
814
            - "as the default patron category for patrons registered via the OPAC."
815
            - "<br><strong>WARNING: Do not use a regular patron category for self registration.</strong>"
815
            - "<br><strong>WARNING: Do not use a regular patron category for self-registration.</strong>"
816
            - "<br>If the <code>misc/cronjobs/cleanup_database.pl</code> cronjob is setup to delete unverified and unfinished OPAC self registrations, it will permanently and unrecoverably delete all patrons that have registered more than <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationExpireTemporaryAccountsDelay'>PatronSelfRegistrationExpireTemporaryAccountsDelay</a> days ago (unless that delay is empty or zero)."
816
            - "<br>If the <code>misc/cronjobs/cleanup_database.pl</code> cronjob is setup to delete unverified and unfinished OPAC self-registrations, it will permanently and unrecoverably delete all patrons that have registered more than <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationExpireTemporaryAccountsDelay'>PatronSelfRegistrationExpireTemporaryAccountsDelay</a> days ago (unless that delay is empty or zero)."
817
        -
817
        -
818
            - Delete patrons still in the category indicated by <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationDefaultCategory">PatronSelfRegistrationDefaultCategory</a>
818
            - Delete patrons still in the category indicated by <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=PatronSelfRegistrationDefaultCategory">PatronSelfRegistrationDefaultCategory</a>
819
            - pref: PatronSelfRegistrationExpireTemporaryAccountsDelay
819
            - pref: PatronSelfRegistrationExpireTemporaryAccountsDelay
Lines 852-860 OPAC: Link Here
852
              choices:
852
              choices:
853
                  1: "Consider"
853
                  1: "Consider"
854
                  0: "Don't consider"
854
                  0: "Don't consider"
855
            - "patron's email (borrowers.email) as unique on self registering. An email won't be accepted if it already exists in the database."
855
            - "patron's email (borrowers.email) as unique on self-registering. An email won't be accepted if it already exists in the database."
856
        -
856
        -
857
            - "Enable the self registration for the following libraries:"
857
            - "Enable the self-registration for the following libraries:"
858
            - pref: PatronSelfRegistrationLibraryList
858
            - pref: PatronSelfRegistrationLibraryList
859
            - (separate branchcode with |).
859
            - (separate branchcode with |).
860
            - If empty, all libraries will be listed.
860
            - If empty, all libraries will be listed.
Lines 863-869 OPAC: Link Here
863
              choices:
863
              choices:
864
                  1: "Show and prefill"
864
                  1: "Show and prefill"
865
                  0: "Don't show and prefill"
865
                  0: "Don't show and prefill"
866
            - "password and login form after a patron has self registered."
866
            - "password and login form after a patron has self-registered."
867
        -
867
        -
868
            - pref: PatronSelfRegistrationConfirmEmail
868
            - pref: PatronSelfRegistrationConfirmEmail
869
              choices:
869
              choices:
(-)a/misc/cronjobs/cleanup_database.pl (-2 / +2 lines)
Lines 98-105 Usage: $0 [-h|--help] [--confirm] [--sessions] [--sessdays DAYS] [-v|--verbose] Link Here
98
   --restrictions DAYS   purge patrons restrictions expired since more than DAYS days.
98
   --restrictions DAYS   purge patrons restrictions expired since more than DAYS days.
99
                         Defaults to 30 days if no days specified.
99
                         Defaults to 30 days if no days specified.
100
   --all-restrictions   purge all expired patrons restrictions.
100
   --all-restrictions   purge all expired patrons restrictions.
101
   --del-exp-selfreg  Delete expired self registration accounts
101
   --del-exp-selfreg  Delete expired self-registration accounts
102
   --del-unv-selfreg  DAYS  Delete unverified self registrations older than DAYS
102
   --del-unv-selfreg  DAYS  Delete unverified self-registrations older than DAYS
103
   --unique-holidays DAYS  Delete all unique holidays older than DAYS
103
   --unique-holidays DAYS  Delete all unique holidays older than DAYS
104
   --temp-uploads     Delete temporary uploads.
104
   --temp-uploads     Delete temporary uploads.
105
   --temp-uploads-days DAYS Override the corresponding preference value.
105
   --temp-uploads-days DAYS Override the corresponding preference value.
(-)a/t/db_dependent/Koha/Patron.t (-2 / +1 lines)
Lines 1593-1599 subtest 'force_password_reset_when_set_by_staff tests' => sub { Link Here
1593
    $patron->delete()->store()->discard_changes();
1593
    $patron->delete()->store()->discard_changes();
1594
    is(
1594
    is(
1595
        $patron->password_expired, 0,
1595
        $patron->password_expired, 0,
1596
        "Patron forced into changing password but patron is self registered, password not expired."
1596
        "Patron forced into changing password but patron is self-registered, password not expired."
1597
    );
1597
    );
1598
1598
1599
    $schema->storage->txn_rollback;
1599
    $schema->storage->txn_rollback;
1600
- 

Return to bug 31270