Changeset 31700


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

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

Location:
main/trunk/greenstone2
Files:
2 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'};
  • main/trunk/greenstone2/perllib/inexport.pm

    r31409 r31700  
    671671    my $plugout_name = $plugout->[0];
    672672
    673     if ($inexport_mode eq "export" && defined $saveas_options) {
     673    if (defined $saveas_options) {
    674674    my @user_plugout_options = split(" ", $saveas_options);
    675675    push @$plugout, @user_plugout_options;
Note: See TracChangeset for help on using the changeset viewer.