Re: [greenstone-devel] CSS for GS interface

From Gordon Paynter
DateSat, 10 May 2003 11:18:09 -0700 (PDT)
Subject Re: [greenstone-devel] CSS for GS interface
In-Reply-To (OF9EC45104-DE4DF343-ON69256D21-000B7B83-69256D21-000B7B95-ntu-edu-au)
Stephen De Gabrielle wrote:
> I am also working on using CSS to replace the rollover menus, with the
> goal of making pages with less images, that also 'degrade gracefully' on
> older browsers. This would also remove the need for javascript to create
> rollovers, and the need for the less attractive text mode. How does the
> development team feel about this? I am getting close and would like to
> submit the changes as a patch (a CSS file and changes to some macro
> files).

Disc: not really actively developing anymore.

This sounds like a great idea (No Javascript? I'm sold!) and something
I've often wantesd to do myself, but I've always been hestitant about
making big changes to the interface like this. Greenstone runs on a lot
of platforms, some of which are very old and need that text mode, and we
don't want to have to debug all of them.

One way around this that I have thought about though is extending the
text/graphics mode flag in the macro files. From memory, macros can be
marked [v=0] for text and [v=1] for graphics, and this can be set in
preferences or as a default in the main.cfg file.

Can anyone say how difficult it would be to set it up so that [v=2]
indicated a "modern web browser" interface, where we could develop a CSS
version. This would let us include a new interface without sacrificing
the old one, yet anyone who wanted to use the new one could simply switch
over by updating their main.cfg.


Does anyone know if the [v=N] flag can be given any value, or is it only 0
or 1? Is there any other reason this scheme wouldn't work?

Gordon