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

(-)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/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 ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</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