Changeset 10263


Ignore:
Timestamp:
2005-07-22T16:17:23+12:00 (19 years ago)
Author:
mdewsnip
Message:

Now downloads a collection from the remote Greenstone server if one is being used.

File:
1 edited

Legend:

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

    r10237 r10263  
    6464import org.greenstone.gatherer.metadata.MetadataXMLFileManager;
    6565import org.greenstone.gatherer.metadata.ProfileXMLFileManager;
     66import org.greenstone.gatherer.remote.RemoteGreenstoneServer;
    6667import org.greenstone.gatherer.shell.GShell;
    6768import org.greenstone.gatherer.shell.GShellEvent;
     
    755756    {
    756757    DebugStream.println("Loading collection " + location + "...");
     758
     759    if (Gatherer.isGsdlRemote) {
     760        String collection_name = location.substring(location.lastIndexOf(File.separator) + 1, location.length() - ".col".length());
     761        RemoteGreenstoneServer.downloadCollection(collection_name);
     762    }
     763
    757764    boolean non_gli_collection = false;
    758765
Note: See TracChangeset for help on using the changeset viewer.