Ignore:
Timestamp:
2010-01-26T17:23:28+13:00 (14 years ago)
Author:
mdewsnip
Message:

Changed IncrementalBuildUtils::setDocumentMetadata() to take the infodbtype type as a parameter, instead of assuming GDBM. Part of making the code less GDBM-specific.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/IncrementalBuildUtils.pm

    r21643 r21644  
    9090        if ($key eq "docnum")
    9191          {
    92             &setDocumentMetadata($collection, $doc_obj->get_OID() . "$section", $key, "", $value, $updateindex);
     92            &setDocumentMetadata($collection, $infodbtype, $doc_obj->get_OID() . "$section", $key, "", $value, $updateindex);
    9393            $found_docnum = 1;
    9494          }
     
    119119              }
    120120            # Go ahead and set the metadata
    121             &setDocumentMetadata($collection, $doc_obj->get_OID() . "$section", $key, "", $value, $updateindex);
     121            &setDocumentMetadata($collection, $infodbtype, $doc_obj->get_OID() . "$section", $key, "", $value, $updateindex);
    122122          }
    123123      }
     
    195195sub setDocumentMetadata()
    196196  {
    197     my ($collection, $oid, $key, $old_value, $new_value, $updateindex) = @_;
    198     print STDERR "IncrementalBuildUtils::setDocumentMetadata('$collection','$oid','$key','$old_value','$new_value',$updateindex)\n" unless !$debug;
     197    my ($collection, $infodbtype, $oid, $key, $old_value, $new_value, $updateindex) = @_;
     198    print STDERR "IncrementalBuildUtils::setDocumentMetadata('$collection',$infodbtype,'$oid','$key','$old_value','$new_value',$updateindex)\n" unless !$debug;
    199199    # A. Establish connection to Lucene
    200200    #    This isn't required at the moment, but might be later if we implement
Note: See TracChangeset for help on using the changeset viewer.