Changeset 18399


Ignore:
Timestamp:
2009-01-15T19:27:32+13:00 (15 years ago)
Author:
ak19
Message:

Now creates a new doc by passing the file_rename_method obtained from the active pluginobject.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/bin/script/explode_metadata_database.pl

    r18301 r18399  
    240240                     \$documents_directory);
    241241        # Use the plugin's process function to avoid duplicating code
    242         my $doc_obj = new doc($filename, "nonindexed_doc");
     242        my $doc_obj = new doc($filename, "nonindexed_doc", $plugobj->get_file_rename_method());
    243243        $plugobj->process(\$record_text, undef, undef, $filename, undef, $doc_obj, 0);
    244244       
     
    282282        # Attach metadata to object
    283283        # => use the plugin's extra_metadata function to avoid duplicating code
    284         my $doc_obj = new doc($filename, "nonindexed_doc");
     284        my $doc_obj = new doc($filename, "nonindexed_doc", $plugobj->get_file_rename_method());
    285285        # all the metadata has been extracted into extrametadata
    286286        $plugobj->extra_metadata ($doc_obj, $doc_obj->get_top_section(), $extrametadata->{$record});
Note: See TracChangeset for help on using the changeset viewer.