Changeset 12459
- Timestamp:
- 2006-08-17T16:47:20+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugouts/BasPlugout.pm
r12363 r12459 30 30 use strict; 31 31 no strict 'subs'; 32 no strict 'refs'; 32 33 33 34 use gsprintf 'gsprintf'; … … 85 86 86 87 my ($plugoutlist,$args,$hashArgOptLists) = @_; 87 88 88 push(@$plugoutlist, $class); 89 89 … … 129 129 $self->{'gs_count'} = 0; 130 130 131 131 $self->{'keep_import_structure'} = 0; 132 132 133 133 return bless $self, $class; … … 362 362 my $self = shift (@_); 363 363 my ($doc_obj) = @_; 364 364 365 365 $doc_obj->set_lastmodified(); 366 366 367 367 if ($self->{'group_size'} > 1) { 368 $self->group_process ($doc_obj);368 $self->group_process ($doc_obj); 369 369 return; 370 370 } … … 433 433 434 434 # 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 437 437 # The directory the archive file (doc.xml) and all associated files 438 438 # should end up in … … 444 444 # only if opening new file 445 445 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; 448 447 my $doc_file = &util::filename_cat ($output_dir, $doc_dir, "doc.xml"); 449 448 my $short_doc_file = &util::filename_cat ($doc_dir, "doc.xml"); 450 449 451 450 if ($gs_count>0) 452 451 { … … 458 457 459 458 $self->{'gs_filename'} = $doc_file; 460 $self->{' gs_short_filename'} = $short_doc_file;459 $self->{'short_doc_file'} = $short_doc_file; 461 460 $self->{'gs_OID'} = $OID; 462 461 $self->{'gs_doc_dir'} = $doc_dir; 463 462 464 $self->output_xml_header( GROUPPROCESS,'Archive');463 $self->output_xml_header('BasPlugout::GROUPPROCESS','Archive'); 465 464 } 466 465 # Otherwise load the same archive document directory used last time … … 477 476 478 477 # 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()); 480 479 481 480 $self->{'gs_count'}++; … … 518 517 519 518 $doc_dir .= ".dir"; 520 519 &util::mk_all_dir (&util::filename_cat ($working_dir, $doc_dir)); 521 520 return $doc_dir; 522 521 }
Note:
See TracChangeset
for help on using the changeset viewer.