Ignore:
Timestamp:
2010-09-03T17:44:59+12:00 (14 years ago)
Author:
ak19
Message:

Further changes to ticket 152 (movable collectdir. Both export.pl and exportcol.pl--for Export (to other formats) and Write To CD-Rom menu options, respectively--are now given a collectdir parameter so exporting can work for collections in non-standard collect directories.

File:
1 edited

Legend:

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

    r20924 r22848  
    451451    command_parts_list.add("-saveas");
    452452    command_parts_list.add(export_type);
     453    // we want to be able to export items from other collect directories too
     454    String collectDir = Gatherer.getCollectDirectoryPath();
     455    if(collectDir != Gatherer.getDefaultGSCollectDirectoryPath(true)) {
     456        command_parts_list.add("-collectdir");
     457        command_parts_list.add(collectDir);
     458    }   
    453459    command_parts_list.add("-exportdir");
    454460    String export_dir = LocalGreenstone.getTmpDirectoryPath();
Note: See TracChangeset for help on using the changeset viewer.