Changeset 288 for trunk/gsdl/perllib


Ignore:
Timestamp:
1999-06-25T11:16:56+12:00 (25 years ago)
Author:
sjboddie
Message:

Fixed up a few things to allow collections to be built directly (without
importing first).

File:
1 edited

Legend:

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

    r286 r288  
    33package HBPlug;
    44
     5use plugin;
    56use html;
    67use BasPlug;
    78use util;
     9use lang;
     10use doc;
     11use cfgread;
     12
    813
    914sub BEGIN {
     
    128133    my ($pluginfo, $base_dir, $file, $metadata, $processor) = @_;
    129134
    130     # get the html filename and see if this is a HTML Book...
    131     my ($jobnumber);
     135    # get the html filename and see if this is an HTML Book...
     136    my $jobnumber = $file;
    132137    if ($file =~ /[\\\/]/) {
    133138    ($jobnumber) = $file =~ /[\\\/]([^\\\/]+)$/;
    134     } else {
    135     ($jobnumber) = $file =~ /^([^\\\/]+)$/;
    136139    }
    137140    return 0 unless defined $jobnumber;
     
    232235
    233236    # process the document
    234     $processor->process($doc_obj);
     237    $processor->process($doc_obj, &util::filename_cat($file, "$jobnumber.htm"));
    235238       
    236239    return 1; # processed the file
Note: See TracChangeset for help on using the changeset viewer.