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/ProCitePlug.pm

    r10218 r10254  
    3131use SplitPlug;
    3232
     33use strict;
     34no strict 'refs'; # allow filehandles to be variables and viceversa
    3335
    3436# ProCitePlug is a sub-class of SplitPlug
    3537sub BEGIN {
    36     @ISA = ('SplitPlug');
     38    @ProCitePlug::ISA = ('SplitPlug');
    3739}
    3840
     
    158160    my $outhandle = $self->{'outhandle'};
    159161    my $filename = &util::filename_cat($base_dir, $file);
    160 
     162    my $cursection = $doc_obj->get_top_section();
    161163    # Report that we're processing the file
    162164    print STDERR "<Processing n='$file' p='ProCitePlug'>\n" if ($gli);
     
    216218
    217219        # Multiple metadata values are separated with "//"
    218         foreach $field_value (split(/\/\//, $field_value_raw)) {
     220        foreach my $field_value (split(/\/\//, $field_value_raw)) {
    219221        my $meta_name = "pc.Field" . ($fieldnum + 1) . "Value";
    220222        $doc_obj->add_utf8_metadata($cursection, $meta_name, $field_value);
Note: See TracChangeset for help on using the changeset viewer.