Changeset 12459


Ignore:
Timestamp:
2006-08-17T16:47:20+12:00 (18 years ago)
Author:
kjdon
Message:

fixed up groupsize handling, so it should work now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugouts/BasPlugout.pm

    r12363 r12459  
    3030use strict;
    3131no strict 'subs';
     32no strict 'refs';
    3233
    3334use gsprintf 'gsprintf';
     
    8586
    8687    my ($plugoutlist,$args,$hashArgOptLists) = @_;
    87 
    8888    push(@$plugoutlist, $class);
    8989
     
    129129    $self->{'gs_count'} = 0;   
    130130
    131      $self->{'keep_import_structure'} = 0;
     131    $self->{'keep_import_structure'} = 0;
    132132
    133133    return bless $self, $class;
     
    362362    my $self = shift (@_);
    363363    my ($doc_obj) = @_;
    364 
     364   
    365365    $doc_obj->set_lastmodified();
    366366
    367367     if ($self->{'group_size'} > 1) {
    368     $self->group_process ($doc_obj);
     368     $self->group_process ($doc_obj);
    369369    return;
    370370    }
     
    433433
    434434    # opening a new file, or document has assoicated files => directory needed
    435     if (($open_new_file) || (scalar(@{$doc_obj->get_assoc_files()})>0))
    436       {
     435    if (($open_new_file) || (scalar(@{$doc_obj->get_assoc_files()})>0)) {
     436         
    437437        # The directory the archive file (doc.xml) and all associated files
    438438        # should end up in
     
    444444            # only if opening new file
    445445        my $output_dir = $self->get_output_dir();
    446              &util::mk_all_dir ($output_dir) unless -e $output_dir;
    447 
     446        &util::mk_all_dir ($output_dir) unless -e $output_dir;
    448447        my $doc_file = &util::filename_cat ($output_dir, $doc_dir, "doc.xml");
    449448        my $short_doc_file = &util::filename_cat ($doc_dir, "doc.xml");
    450 
     449       
    451450        if ($gs_count>0)
    452451        {
     
    458457
    459458        $self->{'gs_filename'} = $doc_file;
    460         $self->{'gs_short_filename'} = $short_doc_file;
     459        $self->{'short_doc_file'} = $short_doc_file;
    461460        $self->{'gs_OID'} = $OID;
    462461            $self->{'gs_doc_dir'} = $doc_dir;
    463462
    464         $self->output_xml_header(GROUPPROCESS,'Archive');
     463        $self->output_xml_header('BasPlugout::GROUPPROCESS','Archive');
    465464    }
    466465        # Otherwise load the same archive document directory used last time
     
    477476
    478477    # save this document
    479     $doc_obj->output_section(GROUPPROCESS, $doc_obj->get_top_section());
     478    $doc_obj->output_section('BasPlugout::GROUPPROCESS', $doc_obj->get_top_section());
    480479
    481480    $self->{'gs_count'}++;
     
    518517
    519518    $doc_dir .= ".dir";
    520 
     519    &util::mk_all_dir (&util::filename_cat ($working_dir, $doc_dir));
    521520    return $doc_dir;
    522521}
Note: See TracChangeset for help on using the changeset viewer.