Ignore:
Timestamp:
2008-08-18T16:35:36+12:00 (16 years ago)
Author:
ak19
Message:

When GS is local, it will use library_url_gs3 or library_url_gs2 and similarly open_collection_gs3 or open_collection_gs2 properties from the config file. (It still uses the default library_url and open_collection when GS is remote or if GLI is used with Fedora.) Method Configuration.gliPropertyNameSuffix() is added to return either the empty string or _gs2 or _gs3 in order to work out the property name in the situation. This change helps when running local GS2 and GS3 alternatively with GLI, as it preserves the library url and last opened collection for each separately.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/GUIManager.java

    r16336 r16884  
    464464    // If we have a collection open remember it for next time, then save it and close it
    465465    if (Gatherer.c_man.ready()) {
    466         Configuration.setString("general.open_collection", true, CollectionManager.getLoadedCollectionColFilePath());
     466        Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(),
     467                    true, CollectionManager.getLoadedCollectionColFilePath());
    467468        saveThenCloseCurrentCollection();
    468469    }
    469470    else {
    470         Configuration.setString("general.open_collection", true, null);
     471        Configuration.setString("general.open_collection"+Configuration.gliPropertyNameSuffix(), true, null);
    471472    }
    472473
Note: See TracChangeset for help on using the changeset viewer.