@@ -, +, @@ login page --- C4/Auth.pm | 1 + .../bootstrap/en/includes/doc-head-close.inc | 9 +++++++- .../bootstrap/en/includes/opac-bottom.inc | 24 +++++++++++++++------- .../opac-tmpl/bootstrap/en/modules/opac-auth.tt | 9 +++++++- opac/sco/sco-main.pl | 1 + 5 files changed, 35 insertions(+), 9 deletions(-) --- a/C4/Auth.pm +++ a/C4/Auth.pm @@ -1247,6 +1247,7 @@ sub checkauth { 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'}; --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/doc-head-close.inc @@ -51,7 +51,14 @@ [% IF ( bidi ) %] [% END %] -[% IF ( OPACUserCSS ) %][% END %] +[% IF SCO_login %] + [% SET SCOUserCSS = Koha.Preference('SCOUserCSS') %] + [% IF SCOUserCSS %] + + [% END %] +[% ELSE %] + [% IF ( OPACUserCSS ) %][% END %] +[% END %] [% PROCESS cssinclude %] --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -266,13 +266,23 @@ $(document).ready(function() { }); [% PROCESS jsinclude %] - -[% IF ( OPACUserJS ) %] - +[% IF SCO_login %] + [% SET SCOUserJS = Koha.Preference('SCOUserJS') %] + [% IF ( SCOUserJS ) %] + + [% END %] +[% ELSE %] + [% IF ( OPACUserJS ) %] + + [% END %] [% END %] --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt +++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt @@ -29,6 +29,9 @@

Access denied

Sorry, the system doesn't think you have permission to access this page.

+ [% IF SCO_login %] +

Logout and try again with a different user

+ [% END %]
[% END %] @@ -149,7 +152,11 @@

If you do not have a Google account, but do have a local account, you can still log in:

[% END %] -
+ [% IF SCO_login %] + + [% ELSE %] + + [% END %]
[% FOREACH INPUT IN INPUTS %] --- a/opac/sco/sco-main.pl +++ a/opac/sco/sco-main.pl @@ -64,6 +64,7 @@ if (C4::Context->preference('AutoSelfCheckAllowed')) $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, --