[Koha-devel] Cookie controlled CSS for J-OPAC

Jesse pianohacker at gmail.com
Tue Feb 9 21:59:22 CET 2010


2010/2/9 MJ Ray <mjr at phonecoop.coop>

> Darrell Ulm <darrellulm at smfpl.org>
> > If a button were made to set a cookie on the Opac labeled "Kid's OPAC"
> then
> > feasibly the CSS included could be switched on the fly with the user
> controlled
> > switch.
> >
> > This would allow all the existing code for the OPAC to work by just
> setting up a
> > new CSS (for Kid's for example) and then using javascript check the
> cookie to
> > determine if an alternate CSS is being used.
> [...]
> > Questions, Comments. Just an idea.
>
> Can't it be done by changing the View: Page Style menu item selection,
> rather than using yet more javascript (which will break on any
> half-secured browser)?
>
> Hope that helps,
> --
> MJ Ray (slef)  Webmaster and LMS developer at     | software
> www.software.coop http://mjr.towers.org.uk        |  .... co
> IMO only: see http://mjr.towers.org.uk/email.html |  .... op
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at nongnu.org
> http://lists.nongnu.org/mailman/listinfo/koha-devel
>

I think that the alternate stylesheets used by view->page style can also be
activated by JavaScript. We could have a nice, more user-friendly button
that does this with fallback to the browser mechanism.

-- 
Jesse Weaver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-devel/attachments/20100209/51fe39ea/attachment-0003.htm>
-------------- next part --------------
_______________________________________________
Koha-devel mailing list
Koha-devel at nongnu.org
http://lists.nongnu.org/mailman/listinfo/koha-devel


More information about the Koha-devel mailing list