Re: [greenstone-devel] Preview button

From Michael Dewsnip
DateMon, 16 May 2005 11:08:50 +1200
Subject Re: [greenstone-devel] Preview button
In-Reply-To (20050513044131-61341-qmail-web54209-mail-yahoo-com)
Hi,

> 1. To implement Preview_Collection button, after running server.exe, I
> can go directly to a specific collection (e.g demo) by calling
> iexplore.exe with argument is
> "http://localhost:1027/gsdl?a=q&q=about&c=demo
> <http://localhost:1027/gsdl?a=q&q=about&c=demo>"
>
> But what happens if our users use another webbrowser like Opera or
> Netscape? Do I have to ask my users which webbrowser they're using
> and write it to an ini file ? Is it the way that GLI does? I couldn't
> find it in GLI's source code. Is there another way to pass these CGi
> arguments ("q=...&c=...") I'm using Local Library.

You tell the GLI which browser to use by specifying it in the
Preferences (Connection -> Preview Command).

If you're using the Local Library you need to be careful when refreshing
a collection. You need to send a special command to the Local Library so
it releases the collection, then you can replace the collection "index"
directory, then you must send another special command to add the
collection again. Have a look at src/recpt/configaction.cpp, and
gli/src/org/greenstone/gatherer/LocalLibraryServer.java.

> 2. In Windows, I can't load a collection that has created in another
> place rather than GSHomeCollect. It's also impractical to copy that
> collection directory to GShomecollect (although just with etc and
> index directory.) Could you help me solve this problem?

I'm not aware of any way to get around this on Windows.

Regards,

Michael