Changeset 13835


Ignore:
Timestamp:
2007-01-31T11:37:52+13:00 (17 years ago)
Author:
kjdon
Message:

a hack while we are still using gs2 config files for gs3 colls - when the preview button is pressed, we re-run the conversion in case the formatting has changed

File:
1 edited

Legend:

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

    r13595 r13835  
    3838import org.greenstone.gatherer.collection.CollectionManager;
    3939import org.greenstone.gatherer.greenstone.LocalLibraryServer;
     40import org.greenstone.gatherer.greenstone3.ServletConfiguration;
    4041import org.greenstone.gatherer.util.StaticStrings;
    4142
     
    125126        // !! Don't like this here
    126127        LocalLibraryServer.checkServerRunning();
    127        
     128        if (Gatherer.GS3) {
     129        // we need to rerun the convert in case the format stuff has changed
     130        Gatherer.c_man.convertToGS3Collection();
     131        Gatherer.configGS3Server(Configuration.site_name, ServletConfiguration.ADD_COMMAND + Gatherer.c_man.getLoadedCollectionName());
     132        }
    128133        Gatherer.spawnBrowser(preview_address);
    129134
Note: See TracChangeset for help on using the changeset viewer.