Changeset 11662 for trunk


Ignore:
Timestamp:
2006-04-20T12:05:58+12:00 (18 years ago)
Author:
mdewsnip
Message:

Fixed a nasty bug where the gliserver URL setting is automatically set, but set incorrectly (making the Greenstone v2.70 applet unusable). Also disabled editing of the library URL and gliserver URL settings in the Preferences.

Location:
trunk/gli/src/org/greenstone/gatherer
Files:
2 edited

Legend:

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

    r10726 r11662  
    113113    Gatherer.isApplet = true;
    114114    String library_url_string = fullLibraryURL(getParameter("gwcgi"));
    115     String gliserver_url_string = library_url_string.substring(0, library_url_string.lastIndexOf('/') + 1) + "gliserver";
     115    String gliserver_url_string = library_url_string.substring(0, library_url_string.lastIndexOf('/') + 1) + "gliserver.pl";
    116116
    117117        // String debug_param = getParameter("debug");
  • trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java

    r10726 r11662  
    198198        Dictionary.registerTooltip(library_path_field, "Preferences.Connection.Library_Path_Tooltip");
    199199    }
     200    // Disable this field when using the applet, as it is automatically determined
     201    library_path_label.setEnabled(!Gatherer.isApplet);
     202    library_path_field.setEnabled(!Gatherer.isApplet);
    200203
    201204    JPanel gliserver_url_pane = null;
     
    214217        Dictionary.registerText(gliserver_url_label, "Preferences.Connection.GLIServer_URL");
    215218        Dictionary.registerTooltip(gliserver_url_field, "Preferences.Connection.GLIServer_URL_Tooltip");
     219
     220        // Disable this field when using the applet, as it is automatically determined
     221        gliserver_url_label.setEnabled(!Gatherer.isApplet);
     222        gliserver_url_field.setEnabled(!Gatherer.isApplet);
    216223    }
    217224
Note: See TracChangeset for help on using the changeset viewer.