Ignore:
Timestamp:
2002-01-30T14:23:31+13:00 (22 years ago)
Author:
sjboddie
Message:

Altered the format of the GreenstoneArchive and GreenstoneDirectoryMetadata
XML files slightly (they're now called Archive and DirectoryMetadata
respectively).

File:
1 edited

Legend:

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

    r2812 r2925  
    2424###########################################################################
    2525
    26 # Processes GreenstoneArchive XML documents. Note that this plugin does no
    27 # syntax checking (though the XML::Parser module tests for
    28 # well-formedness). It's assumed that the GreenstoneArchive files conform
    29 # to their DTD.
     26# Processes Greenstone Archive XML documents. Note that this plugin does no
     27# syntax checking (though the XML::Parser module tests for well-formedness).
     28# It's assumed that the Archive files conform to their DTD.
    3029
    3130package GAPlug;
     
    6059    my ($expat, $name, $sysid, $pubid, $internal) = @_;
    6160
    62     die "" if ($name ne "GreenstoneArchive");
     61    # allow the short-lived and badly named "GreenstoneArchive" files to be processed
     62    # as well as the "Archive" files which should now be created by import.pl
     63    die "" if ($name !~ /^(Greenstone)?Archive$/);
     64
    6365    my $outhandle = $self->{'outhandle'};
    6466    print $outhandle "GAPLug: processing $self->{'file'}\n";
Note: See TracChangeset for help on using the changeset viewer.