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

(-)a/C4/Auth.pm (+1 lines)
Lines 1248-1253 sub checkauth { Link Here
1248
        opac_css_override                     => $ENV{'OPAC_CSS_OVERRIDE'},
1248
        opac_css_override                     => $ENV{'OPAC_CSS_OVERRIDE'},
1249
    );
1249
    );
1250
1250
1251
    $template->param( SCO_login => 1 ) if ( $query->param('koha_login_context') eq 'sco' );
1251
    $template->param( OpacPublic => C4::Context->preference("OpacPublic") );
1252
    $template->param( OpacPublic => C4::Context->preference("OpacPublic") );
1252
    $template->param( loginprompt => 1 ) unless $info{'nopermission'};
1253
    $template->param( loginprompt => 1 ) unless $info{'nopermission'};
1253
1254
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc (-1 / +8 lines)
Lines 37-43 Link Here
37
[% IF ( bidi ) %]
37
[% IF ( bidi ) %]
38
    <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />
38
    <link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />
39
[% END %]
39
[% END %]
40
[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
40
[% IF SCO_login %]
41
    [% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %]
42
    [% IF SCOUserCSS %]
43
        <style type="text/css">[% SCOUserCSS %]</style>
44
    [% END %]
45
[% ELSE %]
46
    [% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
47
[% END %]
41
<link rel="unapi-server" type="application/xml" title="unAPI" href="[% OPACBaseURL %]/cgi-bin/koha/unapi" />
48
<link rel="unapi-server" type="application/xml" title="unAPI" href="[% OPACBaseURL %]/cgi-bin/koha/unapi" />
42
[% PROCESS cssinclude %]
49
[% PROCESS cssinclude %]
43
<!-- Respond.js brings responsive layout behavior to IE < v.9 -->
50
<!-- Respond.js brings responsive layout behavior to IE < v.9 -->
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc (-7 / +17 lines)
Lines 266-278 $(document).ready(function() { Link Here
266
});
266
});
267
</script>
267
</script>
268
[% PROCESS jsinclude %]
268
[% PROCESS jsinclude %]
269
269
[% IF SCO_login %]
270
[% IF ( OPACUserJS ) %]
270
    [% SET SCOUserJS = Koha.Preference('SCOUserJS') %]
271
    <script type="text/javascript">
271
    [% IF ( SCOUserJS ) %]
272
        //<![CDATA[
272
        <script type="text/javascript">
273
        [% OPACUserJS %]
273
            //<![CDATA[
274
        //]]>
274
            [% SCOUserJS %]
275
    </script>
275
            //]]>
276
        </script>
277
    [% END %]
278
[% ELSE %]
279
    [% IF ( OPACUserJS ) %]
280
        <script type="text/javascript">
281
            //<![CDATA[
282
            [% OPACUserJS %]
283
            //]]>
284
        </script>
285
    [% END %]
276
[% END %]
286
[% END %]
277
</body>
287
</body>
278
</html>
288
</html>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt (-2 / +5 lines)
Lines 137-144 Link Here
137
                                [% END %]
137
                                [% END %]
138
138
139
                            [% END # / IF casAuthentication %]
139
                            [% END # / IF casAuthentication %]
140
140
                            [% IF SCO_login %]
141
                            <form action="/cgi-bin/koha/opac-user.pl" name="auth" id="auth" method="post">
141
                                <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post">
142
                            [% ELSE %]
143
                                <form action="/cgi-bin/koha/opac-user.pl" name="auth" id="auth" method="post">
144
                            [% END %]
142
                                <input type="hidden" name="koha_login_context" value="opac" />
145
                                <input type="hidden" name="koha_login_context" value="opac" />
143
                                <fieldset class="brief">
146
                                <fieldset class="brief">
144
                                    [% FOREACH INPUT IN INPUTS %]
147
                                    [% FOREACH INPUT IN INPUTS %]
(-)a/opac/sco/sco-main.pl (-2 / +1 lines)
Lines 62-69 if (C4::Context->preference('AutoSelfCheckAllowed')) Link Here
62
    my $AutoSelfCheckPass = C4::Context->preference('AutoSelfCheckPass');
62
    my $AutoSelfCheckPass = C4::Context->preference('AutoSelfCheckPass');
63
    $query->param(-name=>'userid',-values=>[$AutoSelfCheckID]);
63
    $query->param(-name=>'userid',-values=>[$AutoSelfCheckID]);
64
    $query->param(-name=>'password',-values=>[$AutoSelfCheckPass]);
64
    $query->param(-name=>'password',-values=>[$AutoSelfCheckPass]);
65
    $query->param(-name=>'koha_login_context',-values=>['sco']);
66
}
65
}
66
$query->param(-name=>'koha_login_context',-values=>['sco']);
67
my ($template, $loggedinuser, $cookie) = get_template_and_user({
67
my ($template, $loggedinuser, $cookie) = get_template_and_user({
68
    template_name   => "sco/sco-main.tt",
68
    template_name   => "sco/sco-main.tt",
69
    authnotrequired => 0,
69
    authnotrequired => 0,
70
- 

Return to bug 12663