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

(-)a/installer/data/mysql/atomicupdate/bug_17381_SCOMainUserBlock.perl (+9 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
4
    $dbh->do("INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type` ) VALUES ('SCOMainUserBlock','','70|10','Add a block of HTML that will display on the self checkout screen','Textarea')" );
5
6
    # Always end with this (adjust the bug info)
7
    SetVersion( $DBversion );
8
    print "Upgrade to $DBversion done (Bug 17381 - Add system preference SCOMainUserBlock)\n";
9
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 467-472 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
467
('RoutingListAddReserves','1','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
467
('RoutingListAddReserves','1','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
468
('RoutingListNote','To change this note edit <a href=\"/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=RoutingListNote#jumped\">RoutingListNote</a> system preference.','70|10','Define a note to be shown on all routing lists','Textarea'),
468
('RoutingListNote','To change this note edit <a href=\"/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=RoutingListNote#jumped\">RoutingListNote</a> system preference.','70|10','Define a note to be shown on all routing lists','Textarea'),
469
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
469
('RoutingSerials','1',NULL,'If ON, serials routing is enabled','YesNo'),
470
('SCOMainUserBlock','','70|10','Add a block of HTML that will display on the self checkout screen','Textarea'),
470
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
471
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
471
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
472
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
472
('SearchEngine','Zebra','Elasticsearch|Zebra','Search Engine','Choice'),
473
('SearchEngine','Zebra','Elasticsearch|Zebra','Search Engine','Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+5 lines)
Lines 759-764 Circulation: Link Here
759
              type: textarea
759
              type: textarea
760
              class: code
760
              class: code
761
        -
761
        -
762
            - "Include the following HTML on the the web-based self checkout screen:"
763
            - pref: SCOMainUserBlock
764
              type: textarea
765
              class: code
766
        -
762
            - "Include the following CSS on all pages in the web-based self checkout:"
767
            - "Include the following CSS on all pages in the web-based self checkout:"
763
            - pref: SCOUserCSS
768
            - pref: SCOUserCSS
764
              type: textarea
769
              type: textarea
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt (-2 / +1 lines)
Lines 320-326 Link Here
320
                            </div> <!-- / .sco_entry -->
320
                            </div> <!-- / .sco_entry -->
321
                        [% END # / IF validuser %]
321
                        [% END # / IF validuser %]
322
                    [% END # / UNLESS ( hide_main %]
322
                    [% END # / UNLESS ( hide_main %]
323
323
                    [% IF ( Koha.Preference('SCOMainUserBlock' ) ) %]<div id="scomainuserblock">[% Koha.Preference('SCOMainUserBlock' ) %]</div>[% END %]
324
                </div> <!-- / .span12 -->
324
                </div> <!-- / .span12 -->
325
            </div> <!-- / .row-fluid -->
325
            </div> <!-- / .row-fluid -->
326
        </div> <!-- / .container-fluid -->
326
        </div> <!-- / .container-fluid -->
327
- 

Return to bug 17381