Ignore:
Timestamp:
2010-10-15T20:33:43+13:00 (14 years ago)
Author:
ak19
Message:

More changes to making collectdir movable: 1. When not working with a remote GS or server.exe: if the collecthome set in GLI is not the same as the one in gsdlsite.cfg used by the apache web server, then a dialog pops up on exiting GLI allowing the user to set the collecthome value for both GLI (in the user's GLI config.xml) and the server (in gsdlsite.cfg). 2. Collecthome line in gsdlsite.cfg is removed if it is the default GS collect folder. (Just as a recent commit stores an empty string for the open_collection element in the GLI config.xml file if no collection is left open on exiting GLI and the collect folder is the default GS collect directory.) 3. Some bug fixes.

File:
1 edited

Legend:

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

    r23015 r23143  
    15581558    public void openCollectionFromLastTime() {
    15591559      // If there was an open collection last session, reopen it.
    1560       // Skip if there was none or only a collect folder instead of any previously-opened collection     
    1561       if (Gatherer.open_collection_file_path != null
    1562             && !(new File(Gatherer.open_collection_file_path).isDirectory())) {
    1563          // Load the collection now
    1564          loadCollection(Gatherer.open_collection_file_path);
    1565       }
     1560      // (this method doesn't get called if there was no open collection or only a collect folder
     1561      // instead of any previously-opened collection)
     1562     
     1563        // Load the collection now
     1564        loadCollection(Gatherer.open_collection_file_path);     
    15661565    }
    15671566
Note: See TracChangeset for help on using the changeset viewer.