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

(-)a/installer/data/mysql/atomicupdate/bug_30979.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "30979",
5
    description => "Add OPACTrustedCheckout system preference",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        $dbh->do(
10
            q{
11
                INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
12
	            ('OpacTrustedCheckout', '0', NULL, 'Allow logged in OPAC users to check out to themselves', 'YesNo')
13
	        }
14
        );
15
    },
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 523-528 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
523
('OpacSuppressionRedirect','1','Redirect the opac detail page for suppressed records to an explanatory page (otherwise redirect to 404 error page)','','YesNo'),
523
('OpacSuppressionRedirect','1','Redirect the opac detail page for suppressed records to an explanatory page (otherwise redirect to 404 error page)','','YesNo'),
524
('opacthemes','bootstrap','','Define the current theme for the OPAC interface.','Themes'),
524
('opacthemes','bootstrap','','Define the current theme for the OPAC interface.','Themes'),
525
('OpacTopissue','0',NULL,'If ON, enables the \'most popular items\' link on OPAC. Warning, this is an EXPERIMENTAL feature, turning ON may overload your server','YesNo'),
525
('OpacTopissue','0',NULL,'If ON, enables the \'most popular items\' link on OPAC. Warning, this is an EXPERIMENTAL feature, turning ON may overload your server','YesNo'),
526
('OpacTrustedCheckout', '0', NULL, 'Allow logged in OPAC users to check out to themselves', 'YesNo'),
526
('OPACURLOpenInNewWindow','0',NULL,'If ON, URLs in the OPAC open in a new window','YesNo'),
527
('OPACURLOpenInNewWindow','0',NULL,'If ON, URLs in the OPAC open in a new window','YesNo'),
527
('OPACUserCSS','',NULL,'Add CSS to be included in the OPAC in an embedded <style> tag.','free'),
528
('OPACUserCSS','',NULL,'Add CSS to be included in the OPAC in an embedded <style> tag.','free'),
528
('OPACUserJS','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
529
('OPACUserJS','','70|10','Define custom javascript for inclusion in OPAC','Textarea'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-2 / +7 lines)
Lines 651-657 OPAC: Link Here
651
                1: "Block"
651
                1: "Block"
652
                0: "Don't block"
652
                0: "Don't block"
653
            - expired patrons from OPAC actions such as placing a hold or renewing. Note that the setting for a patron category takes priority over this system preference.
653
            - expired patrons from OPAC actions such as placing a hold or renewing. Note that the setting for a patron category takes priority over this system preference.
654
654
        -
655
            - pref: OpacTrustedCheckout
656
              default: 0
657
              choices:
658
                  0: "Don't allow"
659
                  1: Allow
660
            - "OPAC users to checkout to themselves."
655
    Privacy:
661
    Privacy:
656
        -
662
        -
657
            - pref: opacreadinghistory
663
            - pref: opacreadinghistory
658
- 

Return to bug 30979