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

(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 386-388 INSERT INTO systempreferences (variable,value,explanation,type) VALUES('OPACdidy Link Here
386
INSERT INTO systempreferences (variable,value,explanation,type) VALUES('INTRAdidyoumean',NULL,'Did you mean? configuration for the Intranet. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free');
386
INSERT INTO systempreferences (variable,value,explanation,type) VALUES('INTRAdidyoumean',NULL,'Did you mean? configuration for the Intranet. Do not change, as this is controlled by /cgi-bin/koha/admin/didyoumean.pl.','Free');
387
INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('BlockReturnOfWithdrawnItems', '1', '0', 'If enabled, items that are marked as withdrawn cannot be returned.', 'YesNo');
387
INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('BlockReturnOfWithdrawnItems', '1', '0', 'If enabled, items that are marked as withdrawn cannot be returned.', 'YesNo');
388
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HoldsToPullStartDate','2','Set the default start date for the Holds to pull list to this many days ago',NULL,'Integer');
388
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HoldsToPullStartDate','2','Set the default start date for the Holds to pull list to this many days ago',NULL,'Integer');
389
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserCSS', '', NULL, 'Add CSS to be included in the SCO module in an embedded <style> tag.', 'free');
390
INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES ('SCOUserJS', '', NULL, 'Define custom javascript for inclusion in the SCO module', 'free');
(-)a/installer/data/mysql/updatedatabase.pl (+8 lines)
Lines 6020-6025 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
6020
   SetVersion ($DBversion);
6020
   SetVersion ($DBversion);
6021
}
6021
}
6022
6022
6023
$DBversion = "3.09.00.XXX";
6024
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
6025
   $dbh->do("INSERT INTO systempreferences ( variable, value, explanation, type ) VALUES ( 'SCOUserCSS', '', 'Add CSS to be included in the SCO module in an embedded <style> tag.', 'free' )");
6026
   $dbh->do("INSERT INTO systempreferences ( variable, value, explanation, type ) VALUES ( 'SCOUserJS', '', 'Define custom javascript for inclusion in the SCO module', 'free' )");
6027
   print "Upgrade to $DBversion done (Disable obsolete NoZebra and QueryRemoveStopwords sysprefs)\n";
6028
   SetVersion ($DBversion);
6029
}
6030
6023
=head1 FUNCTIONS
6031
=head1 FUNCTIONS
6024
6032
6025
=head2 TableExists($table)
6033
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+10 lines)
Lines 454-459 Circulation: Link Here
454
            - fines (when <code>misc/cronjobs/fines.pl</code> is being run).
454
            - fines (when <code>misc/cronjobs/fines.pl</code> is being run).
455
    Self Checkout:
455
    Self Checkout:
456
        -
456
        -
457
            - "Include the following JavaScript on all pages in the web-based self checkout:"
458
            - pref: SCOUserJS
459
              type: textarea
460
              class: code
461
        -
462
            - "Include the following CSS on all pages in the web-based self checkout:"
463
            - pref: SCOUserCSS
464
              type: textarea
465
              class: code
466
        -
457
            - pref: ShowPatronImageInWebBasedSelfCheck
467
            - pref: ShowPatronImageInWebBasedSelfCheck
458
              choices:
468
              choices:
459
                  yes: Show
469
                  yes: Show
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/help.tt (+3 lines)
Lines 6-11 Link Here
6
<link rel="stylesheet" type="text/css" href="[% yuipath %]/reset-fonts-grids.css" />
6
<link rel="stylesheet" type="text/css" href="[% yuipath %]/reset-fonts-grids.css" />
7
<link rel="stylesheet" type="text/css" href="[% yuipath %]/skin.css" />
7
<link rel="stylesheet" type="text/css" href="[% yuipath %]/skin.css" />
8
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/sco.css" />
8
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/sco.css" />
9
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
10
11
[% IF ( SCOUserJS ) %]<script type="text/javascript">[% SCOUserJS %]</script>[% END %]
9
</head>
12
</head>
10
<body>
13
<body>
11
<div id="doc" class="yui-t7">
14
<div id="doc" class="yui-t7">
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/receipt.tt (+2 lines)
Lines 26-31 function closeNow() Link Here
26
}
26
}
27
</script> 
27
</script> 
28
28
29
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
30
[% IF ( SCOUserJS ) %]<script type="text/javascript">[% SCOUserJS %]</script>[% END %]
29
31
30
</head>
32
</head>
31
33
(-)a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt (-1 / +2 lines)
Lines 95-106 $(document).ready(function() { Link Here
95
95
96
</script>
96
</script>
97
[% IF ( opacuserjs ) %]<script type="text/javascript">[% opacuserjs %]</script>[% END %]
97
[% IF ( opacuserjs ) %]<script type="text/javascript">[% opacuserjs %]</script>[% END %]
98
98
[% IF ( SCOUserJS ) %]<script type="text/javascript">[% SCOUserJS %]</script>[% END %]
99
99
100
<link rel="stylesheet" type="text/css" href="[% yuipath %]/reset-fonts-grids.css" />
100
<link rel="stylesheet" type="text/css" href="[% yuipath %]/reset-fonts-grids.css" />
101
<link rel="stylesheet" type="text/css" href="[% yuipath %]/skin.css" />
101
<link rel="stylesheet" type="text/css" href="[% yuipath %]/skin.css" />
102
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/sco.css" />
102
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/sco.css" />
103
[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
103
[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
104
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
104
105
105
</head>
106
</head>
106
<body onload="dofocus();">
107
<body onload="dofocus();">
(-)a/opac/sco/help.pl (+5 lines)
Lines 52-56 if (C4::Context->preference('SelfCheckHelpMessage')) { Link Here
52
    $template->param(SelfCheckHelpMessage => C4::Context->preference('SelfCheckHelpMessage'));
52
    $template->param(SelfCheckHelpMessage => C4::Context->preference('SelfCheckHelpMessage'));
53
}
53
}
54
54
55
$template->param(
56
    SCOUserJS  => C4::Context->preference('SCOUserJS'),
57
    SCOUserCSS => C4::Context->preference('SCOUserCSS'),
58
);
59
55
output_html_with_http_headers $query, $cookie, $template->output;
60
output_html_with_http_headers $query, $cookie, $template->output;
56
61
(-)a/opac/sco/sco-main.pl (-1 / +5 lines)
Lines 263-266 if ($borrower->{cardnumber}) { Link Here
263
    );
263
    );
264
}
264
}
265
265
266
$template->param(
267
    SCOUserJS  => C4::Context->preference('SCOUserJS'),
268
    SCOUserCSS => C4::Context->preference('SCOUserCSS'),
269
);
270
266
output_html_with_http_headers $query, $cookie, $template->output;
271
output_html_with_http_headers $query, $cookie, $template->output;
267
- 

Return to bug 9009