Ignore:
Timestamp:
2005-07-19T16:27:51+12:00 (19 years ago)
Author:
kjdon
Message:

added 'use strict' to all plugins, and made modifications (mostly adding 'my') to make them compile

File:
1 edited

Legend:

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

    r10218 r10254  
    135135
    136136use XMLPlug;
     137use strict;
     138no strict 'refs'; # allow filehandles to be variables and viceversa
    137139
    138140sub BEGIN {
     
    282284    my $filehead = &util::get_tmp_filename();
    283285    $filename = $filehead . ".$converttotype";
    284     $n = 1;
     286    my $n = 1;
    285287    while (-e $filename) {
    286288        $filename = "$filehead$n\.$converttotype";
     
    527529
    528530sub read {
    529     $self = shift (@_);
     531    my $self = shift (@_);
    530532    my ($pluginfo, $base_dir, $file, $metadata, $processor, $maxdocs, $total_count, $gli) = @_;
    531533    my $outhandle   = $self->{'outhandle'};
     
    643645    $self->extra_metadata ($doc_obj, $section, $metadata);
    644646
    645     # do plugin specific processing of doc_obj
    646     unless (defined ($self->process(\$text, $pluginfo, $base_dir, $file, $metadata, $doc_obj))) {
    647     print STDERR "<ProcessingError n='$file'>\n" if ($gli);
    648     return -1;
    649     }
     647    # do plugin specific processing of doc_obj - don't need this unless
     648    # something inherits from PagedImgPlug
     649    #unless (defined ($self->process(\$text, $pluginfo, $base_dir, $file, $metadata, $doc_obj))) {
     650#   print STDERR "<ProcessingError n='$file'>\n" if ($gli);
     651#   return -1;
     652#    }
    650653
    651654    # do any automatic metadata extraction
     
    806809    if ($line =~ /^<([^>]*)>(.*?)\s*$/) {
    807810        $doc_obj->set_utf8_metadata_element ($topsection, $1, $2);
    808         $meta->{$1} = $2;
     811        #$meta->{$1} = $2;
    809812    } else {
    810813        $num++;
Note: See TracChangeset for help on using the changeset viewer.