[Koha-devel] Hiding search from users who haven't logged in
Chris Cormack
chris at bigballofwax.co.nz
Wed Sep 16 08:46:57 CEST 2009
2009/9/16 Michael <mhogwood at gmail.com>:
> Hi,
>
> I'm trying to make an adjustment on an OPAC. Is there a way to hide the
> 'search' form/buttons from users who have not logged in yet? Also, can it be
> done without editing the templates? Using jscript is fine or via any other
> method that can be done through System Preferences.
>
Hi Michael
What I would do is use
http://plugins.jquery.com/project/cookie
Then you can do something like
var cookie = $.cookie("CGISESSID");
if (!cookie){
hide the search
}
Hope this helps
Chris
> Thanks! http://plugins.jquery.com/project/cookie
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-devel
>
More information about the Koha-devel
mailing list