Ignore:
Timestamp:
2006-09-01T13:56:53+12:00 (18 years ago)
Author:
mdewsnip
Message:

The last of the new plugins and classifiers code: collection-specific plugins and classifiers with remote building.

File:
1 edited

Legend:

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

    r12646 r12647  
    132132        StringBuffer xml = null;
    133133        if (Gatherer.isGsdlRemote) {
    134         String pluginfo_output = RemoteGreenstoneServer.getScriptOptions("pluginfo.pl", "&plugin=" + plugin);
     134        String pluginfo_options = "&plugin=" + plugin;
     135        if (collection_specific) {
     136            pluginfo_options += "&collection=" + collection_name;
     137        }
     138        String pluginfo_output = RemoteGreenstoneServer.getScriptOptions("pluginfo.pl", pluginfo_options);
    135139        xml = new StringBuffer(pluginfo_output);
    136140        }
     
    186190        StringBuffer xml = null;
    187191        if (Gatherer.isGsdlRemote) {
    188         String pluginfo_output = RemoteGreenstoneServer.getScriptOptions("pluginfo.pl", "&listall");
     192        String pluginfo_options = "&listall";
     193        if (collection_name != null) {
     194            pluginfo_options += "&collection=" + collection_name;
     195        }
     196        String pluginfo_output = RemoteGreenstoneServer.getScriptOptions("pluginfo.pl", pluginfo_options);
    189197        xml = new StringBuffer(pluginfo_output);
    190198        }
Note: See TracChangeset for help on using the changeset viewer.