opac_css_override => $ENV{'OPAC_CSS_OVERRIDE'},
);
+ $template->param( SCO_login => 1 ) if ( $query->param('sco_user_login') );
$template->param( OpacPublic => C4::Context->preference("OpacPublic") );
$template->param( loginprompt => 1 ) unless $info{'nopermission'};
[% IF ( bidi ) %]
<link rel="stylesheet" type="text/css" href="[% interface %]/[% theme %]/css/right-to-left.css" />
[% END %]
-[% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
+[% IF SCO_login %]
+ [% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %]
+ [% IF SCOUserCSS %]
+ <style type="text/css">[% SCOUserCSS %]</style>
+ [% END %]
+[% ELSE %]
+ [% IF ( OPACUserCSS ) %]<style type="text/css">[% OPACUserCSS %]</style>[% END %]
+[% END %]
<link rel="unapi-server" type="application/xml" title="unAPI" href="[% OPACBaseURL %]/cgi-bin/koha/unapi" />
[% PROCESS cssinclude %]
<!-- Respond.js brings responsive layout behavior to IE < v.9 -->
});
</script>
[% PROCESS jsinclude %]
-
-[% IF ( OPACUserJS ) %]
- <script type="text/javascript">
- //<![CDATA[
- [% OPACUserJS %]
- //]]>
- </script>
+[% IF SCO_login %]
+ [% SET SCOUserJS = Koha.Preference('SCOUserJS') %]
+ [% IF ( SCOUserJS ) %]
+ <script type="text/javascript">
+ //<![CDATA[
+ [% SCOUserJS %]
+ //]]>
+ </script>
+ [% END %]
+[% ELSE %]
+ [% IF ( OPACUserJS ) %]
+ <script type="text/javascript">
+ //<![CDATA[
+ [% OPACUserJS %]
+ //]]>
+ </script>
+ [% END %]
[% END %]
</body>
</html>
<div class="alert">
<h3>Access denied</h3>
<p>Sorry, the system doesn't think you have permission to access this page. </p>
+ [% IF SCO_login %]
+ <p><a href="/cgi-bin/koha/sco/sco-main.pl?logout.x=1">Logout</a> and try again with a different user</p>
+ [% END %]
</div>
[% END %]
<p>If you do not have a Google account, but do have a local account, you can still log in: </p>
[% END %]
- <form action="/cgi-bin/koha/opac-user.pl" name="auth" id="auth" method="post">
+ [% IF SCO_login %]
+ <form action="/cgi-bin/koha/sco/sco-main.pl" name="auth" id="auth" method="post">
+ [% ELSE %]
+ <form action="/cgi-bin/koha/opac-user.pl" name="auth" id="auth" method="post">
+ [% END %]
<input type="hidden" name="koha_login_context" value="opac" />
<fieldset class="brief">
[% FOREACH INPUT IN INPUTS %]
$query->param(-name=>'password',-values=>[$AutoSelfCheckPass]);
$query->param(-name=>'koha_login_context',-values=>['sco']);
}
+$query->param(-name=>'sco_user_login',-values=>[1]);
my ($template, $loggedinuser, $cookie) = get_template_and_user({
template_name => "sco/sco-main.tt",
authnotrequired => 0,