Ignore:
Timestamp:
2010-07-15T22:10:59+12:00 (14 years ago)
Author:
ak19
Message:

Getting collectgroup to work for a remote Greenstone server. Need to update gliserver.pl still to work with the collectgroup changes. 1. GLI side changes: no longer does the collectdir parameter to import and build include the colgroup at the end, it is now back to being everything upto the GS collect dir. Instead, the loaded collection is colgroup/subcolname. 2. Changed CollectionManager.getLoadedCollectionName() to return (colgroup/)subcolname instead of the subcolname excluding groupname. 3. This required changes in other classes, including replacing unnecessary explicit calls to getLoadedGroupQualifiedCollectionName(). 4. Added another variant: getLoadedCollectionName(boolean). If the parameter is true, it will put a url style slash between colgroup and subcolname, otherwise use the OS dependent FileSeparator. 5. Changes to RemoteGreenstoneServer to pass the group/subcol as the collectionname to gliserver.pl, with a vertical bar separator. 6. Minor changes like: WorkspaceTreeNode now knows not to load a collection group if it's already in the loaded collection (previously handed only sub collection name), removed old debugging statements and unused import statements.

Location:
main/trunk/gli/src/org/greenstone/gatherer/cdm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/cdm/ClassifierManager.java

    r18571 r22410  
    4444import org.greenstone.gatherer.gui.GComboBox;
    4545import org.greenstone.gatherer.gui.GLIButton;
    46 import org.greenstone.gatherer.remote.RemoteGreenstoneServer;
    4746import org.greenstone.gatherer.util.JarTools;
    4847import org.greenstone.gatherer.util.StaticStrings;
  • main/trunk/gli/src/org/greenstone/gatherer/cdm/GeneralManager.java

    r19225 r22410  
    441441        // Set the title
    442442        String collection_title = name_textfield.getText();
    443         String collection_name = CollectionManager.getLoadedGroupQualifiedCollectionName(true);
     443        String collection_name = CollectionManager.getLoadedCollectionName(true);
    444444        Gatherer.g_man.setTitle(collection_title, collection_name);
    445445                collection_name_collectionmeta.setValue(collection_title);
  • main/trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r18588 r22410  
    4949import org.greenstone.gatherer.gui.ModalDialog;
    5050import org.greenstone.gatherer.gui.WarningDialog;
    51 import org.greenstone.gatherer.remote.RemoteGreenstoneServer;
    5251import org.greenstone.gatherer.util.JarTools;
    5352import org.greenstone.gatherer.util.StaticStrings;
  • main/trunk/gli/src/org/greenstone/gatherer/cdm/SuperCollectionManager.java

    r19224 r22410  
    210210      {
    211211    collection_checklist_model = new ArrayList();
    212     current_coll_name = CollectionManager.getLoadedGroupQualifiedCollectionName(true);
     212    current_coll_name = CollectionManager.getLoadedCollectionName(true);
    213213    File collect_directory = new File(Gatherer.getCollectDirectoryPath());
    214214    add_collections_to_model(collect_directory);
Note: See TracChangeset for help on using the changeset viewer.