We are using the following in the opacuserjs field:
$(document).ready(function(){
    // For selfcheck login page. Cleans up non-essentials and changes
    // Text.
    var url = window.location.href;
    var host = window.location.host;
    if(url.indexOf('http://' + host + '/cgi-bin/koha/sco') != -1) {
        $('#header-region').remove();
        $('#opac-main-search').remove();
        $('.breadcrumb').remove();
        $('#auth fieldset').remove();
        $( '.btn' ).attr('value', 'Start');
        $( '#opac-auth h3' ).replaceWith("<h1>Click here to begin!</h1>");
    }
 });

Some explanation:
We use the selfcheck module on touchscreen kiosks so we remove anything
clickable other
than the start button. You may only be interested in the button and text
replacement as well as removing the username password fields -- though you
need to make sure the browser has the credentials "remembered" otherwise
you won't be able to log in:

$(document).ready(function(){
        var url = window.location.href;
        var host = window.location.host;
        if(url.indexOf('http://' + host + '/cgi-bin/koha/sco') != -1) {
             $('#auth fieldset').remove();
             $( '.btn' ).attr('value', 'Start');
             $( '#opac-auth h3' ).replaceWith("<h1>Click here to
begin!</h1>");
        }
 });

3.14 and 3.16 have the self-check login page as part of the OPAC [ a bug, I
believe ] so you have to point the code at the specific page.

A better way might make the username/password fields invisible and move
them so you can still use them --- or, activate them by clicking on a
certain word.

Hope that is helpful to you!

Chad


On Tue, Aug 12, 2014 at 7:01 PM, Riley Childs <rchi...@cucawarriors.com>
wrote:

>  Do you have sample code? I am not a JavaScript guy
>
> Sent from my Windows Phone
>  ------------------------------
> From: Chad Roseburg <croseb...@ncrl.org>
> Sent: ‎8/‎12/‎2014 12:36 PM
> To: Riley Childs <rchi...@cucawarriors.com>
> Subject: Re: [Koha] Self checkout
>
>  We resolved this by having the browser store/remember the username and
> password, then used jquery to hide pretty much everything except the login
> button.
> Change button text to read "Start" -- then add a message like, "Click
> start to begin".
>
>  This has worked pretty well for us.
>
>  Chad
>
>
> On Sat, Aug 9, 2014 at 7:34 PM, Riley Childs <rchi...@cucawarriors.com>
> wrote:
>
>> We are using the built in koha self checkout, the only issue is logging
>> in, how do we make sure the sco stays logged in without auto login (which
>> would allow anyone access)? Or is there a way to control access by IP? I
>> can modify the apache config, but would prefer a koha based solution.
>> Thanks for the help
>> //Riley
>>
>> Sent from my Windows Phone
>> _______________________________________________
>> Koha mailing list  http://koha-community.org
>> Koha@lists.katipo.co.nz
>> http://lists.katipo.co.nz/mailman/listinfo/koha
>>
>
>
>
>  --
> Chad Roseburg
> Automation Dept.
> North Central Regional Library
>



-- 
Chad Roseburg
Automation Dept.
North Central Regional Library
_______________________________________________
Koha mailing list  http://koha-community.org
Koha@lists.katipo.co.nz
http://lists.katipo.co.nz/mailman/listinfo/koha

Reply via email to