Ignore:
Timestamp:
2005-10-14T15:19:36+13:00 (19 years ago)
Author:
mdewsnip
Message:

(MAJOR CHANGE) This is the remote Greenstone building functionality implemented for the West Yorkshire Fire and Rescue Service. It allows collections to be built without having a local version of Greenstone, using either a stand-alone version of the GLI or the applet.

The collections are stored on the server (allowing people to collaborate on collections -- but not at the same time), and only what is necessary to let the user edit the collection is downloaded. Any changes to the collection are uploaded to the server.

An access restriction mechanism is implemented which uses the standard Greenstone user database to control who has access to collections.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/collection/ScriptOptions.java

    r10577 r10726  
    1111import org.greenstone.gatherer.LocalGreenstone;
    1212import org.greenstone.gatherer.cdm.Argument;
     13import org.greenstone.gatherer.remote.RemoteGreenstoneServer;
    1314import org.greenstone.gatherer.util.ArrayTools;
    1415import org.greenstone.gatherer.util.Codec;
     
    291292        Document document;
    292293        if (Gatherer.isGsdlRemote) {
    293         String launch  = Gatherer.cgiBase + "launch";
    294         launch += "?cmd=" + filename;
    295         launch += "&xml=&language="+lang;
    296 
    297         System.err.println("*** launch = " + launch);
    298 
    299         URL launch_url = new URL(launch);
    300         URLConnection launch_connection = launch_url.openConnection();
    301         input_stream = launch_connection.getInputStream();
    302         document = XMLTools.parseXML(input_stream);
     294        String script_output = RemoteGreenstoneServer.getScriptOptions(filename, "");
     295        document = XMLTools.parseXML(new StringReader(script_output));
    303296        }
    304297        else {
Note: See TracChangeset for help on using the changeset viewer.