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

(-)a/installer/data/mysql/atomicupdate/bug_26777.pl (+32 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  => "26777",
6
    description => "Adds new system preferences 'OPACVirtualCard and 'OPACVirtualCardBarcode'",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(
13
            q{
14
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
15
            ('OPACVirtualCard', '0', NULL,'Enable virtual library cards for patrons on the OPAC.', 'YesNo')
16
            }
17
        );
18
19
        $dbh->do(
20
            q{
21
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
22
            ('OPACVirtualCardBarcode', 'code39', 'code39|code128|ean13|upca|upce|ean8|itf14|qrcode|matrix2of5|industrial2of5|iata2of5|coop2of5','Specify the type of barcode to be used in the patron virtual library card tab in the OPAC.', 'Choice')
23
            }
24
        );
25
26
27
        # sysprefs
28
        say $out "Added new system preference 'OPACVirtualCard'";
29
        say $out "Added new system preference 'OPACVirtualCardBarcode'";
30
31
    },
32
};
(-)a/installer/data/mysql/atomicupdate/bug_37118.pl (-23 lines)
Lines 1-23 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(
13
            q{
14
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
15
            ('OPACVirtualCard', '0', NULL,'Enable virtual library cards for patrons on the OPAC.', 'YesNo')
16
        }
17
        );
18
19
        # sysprefs
20
        say $out "Added new system preference 'OPACVirtualCard'";
21
22
    },
23
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 569-574 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
569
('OPACUserSummary', 1, NULL, "Show the summary of a logged in user's checkouts, overdues, holds and fines on the mainpage", 'YesNo'),
569
('OPACUserSummary', 1, NULL, "Show the summary of a logged in user's checkouts, overdues, holds and fines on the mainpage", 'YesNo'),
570
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
570
('OPACViewOthersSuggestions','0',NULL,'If ON, allows all suggestions to be displayed in the OPAC','YesNo'),
571
('OPACVirtualCard','0',NULL,'If ON, the patron virtual library card tab in the OPAC will be enabled','YesNo'),
571
('OPACVirtualCard','0',NULL,'If ON, the patron virtual library card tab in the OPAC will be enabled','YesNo'),
572
('OPACVirtualCardBarcode','code39','code39|code128|ean13|upca|upce|ean8|itf14|qrcode|matrix2of5|industrial2of5|iata2of5|coop2of5','Specify the type of barcode to be used in the patron virtual library card tab in the OPAC','Choice'),
572
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),
573
('OPACXSLTDetailsDisplay','default','','Enable XSL stylesheet control over details page display on OPAC','Free'),
573
('OPACXSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on OPAC','Free'),
574
('OPACXSLTListsDisplay','default','','Enable XSLT stylesheet control over lists pages display on OPAC','Free'),
574
('OPACXSLTResultsDisplay','default','','Enable XSL stylesheet control over results page display on OPAC','Free'),
575
('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 / +17 lines)
Lines 914-919 OPAC: Link Here
914
                  1: Allow
914
                  1: Allow
915
                  0: "Don't allow"
915
                  0: "Don't allow"
916
            - patrons to access the 'My Virtual Card' tab on their account page on the OPAC.
916
            - patrons to access the 'My Virtual Card' tab on their account page on the OPAC.
917
            - "If set to allow, show a "
918
            - pref: OPACVirtualCardBarcode
919
              default: code39
920
              choices:
921
                  code39: "CODE39"
922
                  code128: "CODE128"
923
                  ean13: "EAN-13"
924
                  upca: "UPC-A"
925
                  upce: "UPC-E"
926
                  ean8: "EAN-8"
927
                  itf14: "ITF-14"
928
                  qrcode: "QR Code"
929
                  matrix2of5: "Matrix 2 of 5"
930
                  industrial2of5: "Industrial 2 of 5"
931
                  iata2of5: "IATA 2 of 5"
932
                  coop2of5: "COOP 2 of 5"
933
            - " barcode in the patron's virtual card."
917
        -
934
        -
918
            - "Fields that should be mandatory for patron purchase suggestions:"
935
            - "Fields that should be mandatory for patron purchase suggestions:"
919
            - pref: OPACSuggestionMandatoryFields
936
            - pref: OPACSuggestionMandatoryFields
920
- 

Return to bug 26777