Changeset 2515


Ignore:
Timestamp:
2001-06-11T12:15:21+12:00 (23 years ago)
Author:
sjboddie
Message:

Fixed a couple of bugs/inconsistencies in word and pdf plugins that
affected their behaviour under the collector

Location:
trunk/gsdl/perllib/plugins
Files:
3 edited

Legend:

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

    r2432 r2515  
    143143    my ($output_ext, $input_filename, $textref) = @_;
    144144
     145    my $outhandle = $self->{'outhandle'};
    145146    my $convert_to = $self->{'convert_to'};
    146147
    147148    # softlink to collection tmp dir
    148     my $colname = &util::use_collection();
    149149    my $tmp_dirname
    150     = &util::filename_cat($ENV{'GSDLHOME'}, "collect", $colname, "tmp");
     150    = &util::filename_cat($ENV{'GSDLCOLLECTDIR'}, "tmp");
    151151    &util::mk_dir($tmp_dirname) if (!-e $tmp_dirname);
    152152
     
    165165    my $verbosity = $self->{'verbosity'};
    166166    if ($verbosity > 0) {
    167     print STDERR "Converting $tailname$suffix to $convert_to format\n";
     167    print $outhandle "Converting $tailname$suffix to $convert_to format\n";
    168168    }
    169169   
     
    180180    chomp $output_type;
    181181    if ($output_type eq "fail") {
    182     print STDERR "Could not convert $tailname$suffix to $convert_to format\n";
     182    print $outhandle "Could not convert $tailname$suffix to $convert_to format\n";
    183183    return "";
    184184    }
     
    199199    my $self = shift (@_);
    200200
    201     my $colname = &util::use_collection();
    202201    my $tmp_dirname
    203     = &util::filename_cat($ENV{'GSDLHOME'}, "collect", $colname, "tmp");
     202    = &util::filename_cat($ENV{'GSDLCOLLECTDIR'}, "tmp");
    204203    &util::rm_r($tmp_dirname);
    205204    &util::mk_dir($tmp_dirname);
  • trunk/gsdl/perllib/plugins/PDFPlug.pm

    r2452 r2515  
    3232}
    3333
    34 use strict;
    35 
    36 
    3734sub new {
    3835    my $class = shift (@_);
     
    6562    my $self = shift (@_);
    6663
    67     print STDERR "PDFPlug: passing $_[3] onto $self->{'convert_to'} Plug\n"
     64    my $outhandle = $self->{'outhandle'};
     65    print $outhandle "PDFPlug: passing $_[3] onto $self->{'convert_to'} Plug\n"
    6866    if $self->{'verbosity'} > 1;
    6967   
  • trunk/gsdl/perllib/plugins/WordPlug.pm

    r1415 r2515  
    3232}
    3333
    34 use strict;
    35 
    36 
    3734sub get_default_process_exp {
    3835    my $self = shift (@_);
     
    4643sub process {
    4744    my $self = shift (@_);
    48    
    49     print STDERR "WordPlug: passing $_[3] onto $self->{'convert_to'} Plug\n"
     45
     46    my $outhandle = $self->{'outhandle'};   
     47    print $outhandle "WordPlug: passing $_[3] onto $self->{'convert_to'} Plug\n"
    5048    if $self->{'verbosity'} > 1;
    5149   
Note: See TracChangeset for help on using the changeset viewer.