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

(-)a/installer/data/mysql/sysprefs.sql (+2 lines)
Lines 400-402 INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES(' Link Here
400
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacSeparateHoldings', '0', 'Separate current branch holdings from other holdings (OPAC)', NULL, 'YesNo');
400
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacSeparateHoldings', '0', 'Separate current branch holdings from other holdings (OPAC)', NULL, 'YesNo');
401
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacSeparateHoldingsBranch', 'homebranch', 'Branch used to separate holdings (OPAC)', 'homebranch|holdingbranch', 'Choice');
401
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('OpacSeparateHoldingsBranch', 'homebranch', 'Branch used to separate holdings (OPAC)', 'homebranch|holdingbranch', 'Choice');
402
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('RenewalSendNotice','0', NULL, '', 'YesNo');
402
INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('RenewalSendNotice','0', NULL, '', 'YesNo');
403
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');
404
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 6309-6314 if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { Link Here
6309
    SetVersion($DBversion);
6309
    SetVersion($DBversion);
6310
}
6310
}
6311
6311
6312
$DBversion = "3.11.00.XXX";
6313
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
6314
   $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' )");
6315
   $dbh->do("INSERT INTO systempreferences ( variable, value, explanation, type ) VALUES ( 'SCOUserJS', '', 'Define custom javascript for inclusion in the SCO module', 'free' )");
6316
   print "Upgrade to $DBversion done (Add SCOUserCSS and SCOUserJS  sysprefs)\n";
6317
   SetVersion ($DBversion);
6318
}
6319
6312
=head1 FUNCTIONS
6320
=head1 FUNCTIONS
6313
6321
6314
=head2 TableExists($table)
6322
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+10 lines)
Lines 466-471 Circulation: Link Here
466
            - lost item fees charged to a borrower when the lost item is returned.
466
            - lost item fees charged to a borrower when the lost item is returned.
467
    Self Checkout:
467
    Self Checkout:
468
        -
468
        -
469
            - "Include the following JavaScript on all pages in the web-based self checkout:"
470
            - pref: SCOUserJS
471
              type: textarea
472
              class: code
473
        -
474
            - "Include the following CSS on all pages in the web-based self checkout:"
475
            - pref: SCOUserCSS
476
              type: textarea
477
              class: code
478
        -
469
            - pref: ShowPatronImageInWebBasedSelfCheck
479
            - pref: ShowPatronImageInWebBasedSelfCheck
470
              choices:
480
              choices:
471
                  yes: Show
481
                  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 98-109 $(document).ready(function(){ Link Here
98
});
98
});
99
</script>
99
</script>
100
[% IF ( opacuserjs ) %]<script type="text/javascript">[% opacuserjs %]</script>[% END %]
100
[% IF ( opacuserjs ) %]<script type="text/javascript">[% opacuserjs %]</script>[% END %]
101
101
[% IF ( SCOUserJS ) %]<script type="text/javascript">[% SCOUserJS %]</script>[% END %]
102
102
103
<link rel="stylesheet" type="text/css" href="[% yuipath %]/reset-fonts-grids.css" />
103
<link rel="stylesheet" type="text/css" href="[% yuipath %]/reset-fonts-grids.css" />
104
<link rel="stylesheet" type="text/css" href="[% yuipath %]/skin.css" />
104
<link rel="stylesheet" type="text/css" href="[% yuipath %]/skin.css" />
105
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/sco.css" />
105
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/sco.css" />
106
[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
106
[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
107
[% IF ( SCOUserCSS ) %]<style type="text/css">[% SCOUserCSS %]</style>[% END %]
107
108
108
</head>
109
</head>
109
<body onload="dofocus();">
110
<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