Changeset 10531


Ignore:
Timestamp:
2005-08-19T11:38:10+12:00 (19 years ago)
Author:
kjdon
Message:

changed the preview args for lucene collections

File:
1 edited

Legend:

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

    r10517 r10531  
    472472     */
    473473    public synchronized void message(GShellEvent event) {
    474     // Ignore the messages from RecPlug with 'show_progress' set (used for progress bars)
     474    // Ignore the messages from RecPlug (used for progress bars)
    475475    if (event.getMessage().startsWith("import.pl> RecPlug - ")) {
    476476        return;
     
    638638    String extra_args = "";
    639639    SearchTypeManager st_man = current_collection.cdm.searchtype_manager;
    640     if (!Gatherer.GS3 && st_man.isMGPPEnabled()) {
     640    if (!Gatherer.GS3 && st_man.isSearchTypeEnabled()) {
     641        if (st_man.isMGPP()) {
     642        extra_args = "&ct=1";
     643        } else if (st_man.isLucene()) {
     644        extra_args = "&ct=2";
     645        }
    641646        // we need some more args on the url
    642647        String search_types = st_man.getSearchTypes();
    643648        if (search_types.equals("")) {
    644         extra_args = "&ct=1&qt=0&qto=3";
     649        extra_args += "&qt=0&qto=3";
    645650        } else if (search_types.equals("plain")) {
    646         extra_args = "&ct=1&qt=0&qto=1";
     651        extra_args += "&qt=0&qto=1";
    647652        } else if (search_types.equals("form")) {
    648         extra_args = "&ct=1&qt=1&qto=2";
     653        extra_args += "&qt=1&qto=2";
    649654        } else if (search_types.equals("plain,form")) {
    650         extra_args = "&ct=1&qt=0&qto=3";
     655        extra_args += "&qt=0&qto=3";
    651656        } else if (search_types.equals("form,plain")) {
    652         extra_args = "&ct=1&qt=1&qto=3";
     657        extra_args += "&qt=1&qto=3";
    653658        }
    654659    }
     
    681686        //Only design options have changes, and we want to be smart in the way we handle them.
    682687        int rebuildTypeRequired = CollectionDesignManager.getRebuildTypeRequired();
    683 
    684688        if(rebuildTypeRequired == CollectionDesignManager.UPDATE_COLLECT_CFG && Gatherer.isGsdlRemote) {
    685689            //Special case when the GLI is an applet: Upload the collect.cfg to server
     
    688692        }
    689693        else if(rebuildTypeRequired == CollectionDesignManager.BUILDCOL) {
     694
    690695            //Just run the buildcol command.
    691696            DebugStream.println("Just want to run buildcol.pl");
Note: See TracChangeset for help on using the changeset viewer.