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

(-)a/installer/data/mysql/atomicupdate/bug27312-add-syspref-RedirectURLAfterPatronSelfReg.perl (+5 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( "INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('RedirectURLAfterPatronSelfReg', '', NULL, 'Redirect the patron to this URL after successfull self registration.', 'Free')" );
4
    NewVersion( $DBversion, 27312, "Add a syspref to redirect patron after self registration");
5
}
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 541-546 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
541
('RandomizeHoldsQueueWeight','0',NULL,'if ON, the holds queue in circulation will be randomized, either based on all location codes, or by the location codes specified in StaticHoldsQueueWeight','YesNo'),
541
('RandomizeHoldsQueueWeight','0',NULL,'if ON, the holds queue in circulation will be randomized, either based on all location codes, or by the location codes specified in StaticHoldsQueueWeight','YesNo'),
542
('RecordStaffUserOnCheckout','0',NULL,'If ON, when an item is checked out, the user who checked out the item is recorded','YesNo'),
542
('RecordStaffUserOnCheckout','0',NULL,'If ON, when an item is checked out, the user who checked out the item is recorded','YesNo'),
543
('RecordLocalUseOnReturn','0',NULL,'If ON, statistically record returns of unissued items as local use, instead of return','YesNo'),
543
('RecordLocalUseOnReturn','0',NULL,'If ON, statistically record returns of unissued items as local use, instead of return','YesNo'),
544
('RedirectURLAfterPatronSelfReg','',NULL,'Redirect the patron to this URL after successfull self registration.','Free'),
544
('RefundLostOnReturnControl','CheckinLibrary','CheckinLibrary|ItemHomeBranch|ItemHoldingBranch','If a lost item is returned, choose which branch to pick rules for refunding.','Choice'),
545
('RefundLostOnReturnControl','CheckinLibrary','CheckinLibrary|ItemHomeBranch|ItemHoldingBranch','If a lost item is returned, choose which branch to pick rules for refunding.','Choice'),
545
('RenewAccruingItemWhenPaid','0','','If enabled, when the fines on an item accruing is paid off, attempt to renew that item. If the syspref "RenewalPeriodBase" is set to "due date", renewed items may still be overdue','YesNo'),
546
('RenewAccruingItemWhenPaid','0','','If enabled, when the fines on an item accruing is paid off, attempt to renew that item. If the syspref "RenewalPeriodBase" is set to "due date", renewed items may still be overdue','YesNo'),
546
('RenewAccruingItemInOpac','0','','If enabled, when the fines on an item accruing is paid off in the OPAC via a payment plugin, attempt to renew that item. If the syspref "RenewalPeriodBase" is set to "due date", renewed items may still be overdue','YesNo'),
547
('RenewAccruingItemInOpac','0','','If enabled, when the fines on an item accruing is paid off in the OPAC via a payment plugin, attempt to renew that item. If the syspref "RenewalPeriodBase" is set to "due date", renewed items may still be overdue','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (+5 lines)
Lines 865-870 OPAC: Link Here
865
                  yes: Allow
865
                  yes: Allow
866
                  no: "Don't allow"
866
                  no: "Don't allow"
867
            - patrons to notify the library of changes to their contact information from the OPAC.
867
            - patrons to notify the library of changes to their contact information from the OPAC.
868
        -
869
            - "Redirect the patron to "
870
            - pref: RedirectURLAfterPatronSelfReg
871
              class: long
872
            - "after successfull self registration. This can be a full URL or a URL fragment, starting with /."
868
873
869
    Advanced search options:
874
    Advanced search options:
870
        -
875
        -
(-)a/opac/opac-memberentry.pl (-1 / +6 lines)
Lines 237-242 if ( $action eq 'create' ) { Link Here
237
                    );
237
                    );
238
                }
238
                }
239
239
240
                # Check if we should redirect the patron somewhere else, e.g. for authentication
241
                if ( C4::Context->preference('RedirectURLAfterPatronSelfReg') ) {
242
                    print $cgi->redirect( C4::Context->preference('RedirectURLAfterPatronSelfReg') );
243
                    exit;
244
                }
245
240
                $template->param( password_cleartext => $patron->plain_text_password );
246
                $template->param( password_cleartext => $patron->plain_text_password );
241
                $template->param( borrower => $patron->unblessed );
247
                $template->param( borrower => $patron->unblessed );
242
            } else {
248
            } else {
243
- 

Return to bug 27312