Changeset 9888


Ignore:
Timestamp:
2005-05-16T20:31:35+12:00 (19 years ago)
Author:
davidb
Message:

Support added for running remote commands (GLI applet) that specify multiple
collections, for instance when exporting to CD-ROM

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

Legend:

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

    r9755 r9888  
    266266    }
    267267
     268    if (Gatherer.isGsdlRemote) {
     269        command_parts_list.add("-nonetscape");
     270    }
     271
    268272    for (int i = 0; i < num_collections; i++) {
    269273        command_parts_list.add(((BasicCollectionConfiguration) selected_collections.get(i)).getShortName());
  • trunk/gli/src/org/greenstone/gatherer/shell/GShell.java

    r9885 r9888  
    309309        perl_cmd = perl_cmd_cut;
    310310        }
    311        
     311
     312        String cols_concat = null;
     313
    312314        String launch  = Gatherer.cgiBase + "launch";
    313315        launch = launch + "?cmd=" + perl_cmd;
     
    338340        }
    339341        else {
    340             launch = launch + "c=" + arg;
    341         }
    342         }
    343        
     342            if (cols_concat==null) {
     343            cols_concat = arg;
     344            }
     345            else {
     346            cols_concat = cols_concat + ":" + arg;
     347            }
     348        }
     349        }
     350
     351        if (cols_concat!=null) {
     352        launch = launch + "c=" + cols_concat;
     353        }
     354
    344355        System.err.println("**** launch url = " + launch);
    345356        // fireMessage(type, Dictionary.get("GShell.Command") + ": " + launch, status, null); // ****
Note: See TracChangeset for help on using the changeset viewer.