Ignore:
Timestamp:
2008-05-27T15:02:16+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding new DB support) Added $infodb_type as first argument to all the dbutil functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/basebuildproc.pm

    r15708 r15725  
    225225}
    226226
     227sub set_infodbtype
     228{
     229    my $self = shift(@_);
     230    my $infodbtype = shift(@_);
     231    $self->{'infodbtype'} = $infodbtype;
     232}
     233
    227234sub set_index {
    228235    my $self = shift (@_);
     
    429436        # special case for URL metadata
    430437        if ($field =~ /^URL$/i) {
    431             &dbutil::write_infodb_entry($infodb_handle, $value, { 'section' => [ $section_OID ] });
     438            &dbutil::write_infodb_entry($self->{'infodbtype'}, $infodb_handle, $value, { 'section' => [ $section_OID ] });
    432439        }
    433440
     
    506513    }
    507514   
    508     &dbutil::write_infodb_entry($infodb_handle, $section_OID, \%section_infodb);
     515    &dbutil::write_infodb_entry($self->{'infodbtype'}, $infodb_handle, $section_OID, \%section_infodb);
    509516   
    510517    # output a database entry for the document number
    511518    if ($self->{'db_level'} eq "document") {
    512         &dbutil::write_infodb_entry($infodb_handle, $self->{'num_docs'}, { 'section' => [ $doc_OID ] });
     519        &dbutil::write_infodb_entry($self->{'infodbtype'}, $infodb_handle, $self->{'num_docs'}, { 'section' => [ $doc_OID ] });
    513520    }
    514521    else {
    515         &dbutil::write_infodb_entry($infodb_handle, $self->{'num_sections'}, { 'section' => [ $section_OID ] });
     522        &dbutil::write_infodb_entry($self->{'infodbtype'}, $infodb_handle, $self->{'num_sections'}, { 'section' => [ $section_OID ] });
    516523    }
    517524
Note: See TracChangeset for help on using the changeset viewer.