Ignore:
Timestamp:
2000-06-27T17:10:07+12:00 (24 years ago)
Author:
sjboddie
Message:

Caught up most general plugins (that's the ones in gsdlhome/perllib/plugins)
with changes to BasPlug so that they can all now use the new general plugin
options. Those I didn't do were FoxPlug (as it's not actually used anywhere
and I don't know what it does) and WebPlug (as it's kind of a work in
progress and doesn't really work anyway). All plugins will still work
(including all the collection specific ones that are laying around), some
of them just won't have access to the general options.
I also wrote a short perl script (pluginfo.pl) that prints out all the
options available to a given plugin.

File:
1 edited

Legend:

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

    r809 r1244  
    3939}
    4040
     41use strict;
     42
    4143sub new {
    4244    my ($class) = @_;
    43     my $self = new BasPlug ();
     45    my $self = new BasPlug ("ArcPlug", @_);
    4446
    4547    return bless $self, $class;
     
    5860sub read {
    5961    my $self = shift (@_);
    60     ($pluginfo, $base_dir, $file, $metadata, $processor, $maxdocs) = @_;
     62    my ($pluginfo, $base_dir, $file, $metadata, $processor, $maxdocs) = @_;
    6163
    6264    my $count = 0;
    6365
    6466    # see if this has a archives information file within it
    65     $archive_info_filename = &util::filename_cat($base_dir,$file,"archives.inf");
     67    my $archive_info_filename = &util::filename_cat($base_dir,$file,"archives.inf");
    6668
    6769    if (-e $archive_info_filename) {
     
    7779
    7880    # process each file
    79     foreach $subfile (@$file_list) {
     81    foreach my $subfile (@$file_list) {
    8082        last if ($maxdocs != -1 && $count >= $maxdocs);
    8183
Note: See TracChangeset for help on using the changeset viewer.