Changeset 10424


Ignore:
Timestamp:
2005-08-05T15:11:26+12:00 (19 years ago)
Author:
chi
Message:

Modification of the way passing argument and options list for the seconardy plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/ExcelPlug.pm

    r10270 r10424  
    5757    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
    5858    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
    59 
     59   
    6060    my $self = (defined $hashArgOptLists)? new ConvertToPlug($pluginlist,$inputargs,$hashArgOptLists): new ConvertToPlug($pluginlist,$inputargs);
    6161
     62    my $secondary_plugin_options = $self->{'secondary_plugin_options'};
     63    if (!defined $secondary_plugin_options->{'HTMLPlug'}) {
     64    $secondary_plugin_options->{'HTMLPlug'} = [];
     65    }
     66    my $html_options = $secondary_plugin_options->{'HTMLPlug'};
     67   
     68    #$self->{'input_encoding'} = "utf8";
     69    #$self->{'extract_language'} = 1;
     70    push(@$html_options, "-input_encoding", "utf8");
     71    push(@$html_options,"-extract_language");
    6272    $self = bless $self, $class;
    63 
    64     my $secondary_plugin_options = $self->{'secondary_plugin_options'};
    65     $self->load_secondary_plugins($class,$secondary_plugin_options);
    66 
    67     return $self;
     73   
     74    $self->load_secondary_plugins($class,$secondary_plugin_options,$hashArgOptLists);
     75    return bless $self;   
    6876}
    6977
Note: See TracChangeset for help on using the changeset viewer.