Ignore:
Timestamp:
2008-07-14T14:57:38+12:00 (16 years ago)
Author:
kjdon
Message:

global block pass: read_block is no more, use can_process_this_file to see whether a file is for us or not. extra arg (block_hash) to read, read_into_doc_obj, metadata_read etc

File:
1 edited

Legend:

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

    r16013 r16392  
    366366sub read_into_doc_obj {
    367367    my $self = shift (@_);
    368     my ($pluginfo, $base_dir, $file, $metadata, $processor, $maxdocs, $total_count, $gli) = @_;
     368    my ($pluginfo, $base_dir, $file, $block_hash, $metadata, $processor, $maxdocs, $total_count, $gli) = @_;
    369369
    370370    my $outhandle = $self->{'outhandle'};
    371371
    372     my ($filename_full_path, $filename_no_path) = $self->get_full_filenames($base_dir, $file);
     372    my ($filename_full_path, $filename_no_path) = &util::get_full_filenames($base_dir, $file);
    373373
    374374    my $output_ext = $self->{'convert_to_ext'};
     
    411411
    412412    # note: metadata is not carried on to the next level
     413## **** I just replaced $metadata with {} in following
    413414    my ($rv,$doc_obj)
    414     = $secondary_plugin->read_into_doc_obj ($pluginfo,"", $conv_filename, $metadata, $processor, $maxdocs, $total_count, $gli);
     415    = $secondary_plugin->read_into_doc_obj ($pluginfo,"", $conv_filename, $block_hash, {}, $processor, $maxdocs, $total_count, $gli);
    415416
    416417    if ((!defined $rv) || ($rv<1)) {
     
    438439    my $topsection = $doc_obj->get_top_section();
    439440    $self->add_associated_files($doc_obj, $filename_full_path);
     441
     442    # extra_metadata is already called by sec plugin in process??
    440443    $self->extra_metadata($doc_obj, $topsection, $metadata); # do we need this here??
    441444    # do any automatic metadata extraction
Note: See TracChangeset for help on using the changeset viewer.