Changeset 38741 for main


Ignore:
Timestamp:
2024-02-13T17:14:35+13:00 (3 months ago)
Author:
davidb
Message:

Splicing in of $self->post_process_doc_obj() so new mapping_metadata_file rule-table works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/ConvertBinaryFile.pm

    r35173 r38741  
    129129    my $arglist = $input_args->{$plugin_class};
    130130
     131# The following turns out not to be needed, as the primary plugin will actually
     132# get called to apply the metadata_mapping_file if set in its plugin options
     133# via post_process_doc_obj()
     134#   if ($self->{'metadata_mapping_file'}) {
     135#       # If this plugin option has been set in the primary plugin, then
     136#       # we always want to pass this on to the secondary plugin
     137#       my $metadata_mapping_file = $self->{'metadata_mapping_file'};
     138#       push(@$arglist, "-metadata_mapping_file", $metadata_mapping_file);
     139#   }
     140   
    131141    my ($secondary_plugin);
    132142    eval("\$secondary_plugin = new $plugin_class([],\$arglist)");
     
    469479    $self->add_OID($doc_obj, 1);
    470480
     481    $self->post_process_doc_obj($pluginfo, $base_dir, $file, $metadata, $doc_obj, $gli);   
    471482    return (1, $doc_obj);
    472483
Note: See TracChangeset for help on using the changeset viewer.