Ignore:
Timestamp:
2017-05-25T13:21:02+12:00 (7 years ago)
Author:
kjdon
Message:

export.pl has -saveas_options so you can pass in plugout options. added it to import.pl too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/import.pl

    r31132 r31700  
    112112    [
    113113      $saveas_argument,
     114      { 'name' => "saveas_options",
     115    'desc' => "{import.saveas_options}",
     116    'type' => "string",
     117    'reqd' => "no" },
    114118    { 'name' => "sortmeta",
    115119    'desc' => "{import.sortmeta}",
     
    320324    }
    321325    }
     326    if (!defined $inexport->{'saveas_options'} || $inexport->{'saveas_options'} eq "") {
     327    if (defined $collectcfg->{'saveas_options'} ){
     328        $inexport->{'saveas_options'} = $collectcfg->{'saveas_options'};
     329    }
     330    }
    322331   
    323332    my $sortmeta = $inexport->{'sortmeta'};
Note: See TracChangeset for help on using the changeset viewer.