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

(-)a/installer/data/mysql/atomicupdate/bug_37118.pl (+21 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "37118",
6
    description => "Adds new system preference 'OPACVirtualCard'",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(q{
13
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
14
            ('OPACVirtualCard', '0', NULL,'Enable virtual library cards for patrons on the OPAC.', 'YesNo')
15
        });
16
17
        # sysprefs
18
        say $out "Added new system preference 'OPACVirtualCard'";
19
20
    },
21
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 565-570 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
565
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
565
('opacuserlogin','1',NULL,'Enable or disable display of user login features','YesNo'),
566
('OPACUserSummary', 1, NULL, "Show the summary of a logged in user's checkouts, overdues, holds and fines on the mainpage", 'YesNo'),
566
('OPACUserSummary', 1, NULL, "Show the summary of a logged in user's checkouts, overdues, holds and fines on the mainpage", 'YesNo'),
567
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
567
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
568
('OPACVirtualCard','0',NULL,'If ON, the patron virtual library card tab in the OPAC will be enabled','YesNo'),
568
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),
569
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),
569
('OPACXSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on OPAC','Free'),
570
('OPACXSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on OPAC','Free'),
570
('OPACXSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on OPAC','Free'),
571
('OPACXSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on OPAC','Free'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/opac.pref (-1 / +6 lines)
Lines 892-897 OPAC: Link Here
892
                  1: Show
892
                  1: Show
893
                  0: "Don't show"
893
                  0: "Don't show"
894
            - purchase suggestions from other patrons on the OPAC.
894
            - purchase suggestions from other patrons on the OPAC.
895
        -
896
            - pref: OPACVirtualCard
897
              choices:
898
                  1: Allow
899
                  0: "Don't allow"
900
            - patrons to access the 'My Virtual Card' tab on their account page on the OPAC.
895
        -
901
        -
896
            - "Fields that should be mandatory for patron purchase suggestions:"
902
            - "Fields that should be mandatory for patron purchase suggestions:"
897
            - pref: OPACSuggestionMandatoryFields
903
            - pref: OPACSuggestionMandatoryFields
898
- 

Return to bug 26777