Ignore:
Timestamp:
2008-05-23T15:33:58+12:00 (16 years ago)
Author:
mdewsnip
Message:

(Adding new DB support) Changed all the "gdbm_level"s to "db_level".

File:
1 edited

Legend:

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

    r14934 r15685  
    120120    $self->{'store_text'} = 1;
    121121
    122     # what level (section/document) the gdbm database - indexer intersection is
    123     $self->{'gdbm_level'} = "section";
     122    # what level (section/document) the database - indexer intersection is
     123    $self->{'db_level'} = "section";
    124124    #used by browse interface
    125125    $self->{'doclist'} = [];
     
    276276}
    277277
    278 # the standard gdbm level is section, but you may want to change it to document
    279 sub set_gdbm_level {
     278# the standard database level is section, but you may want to change it to document
     279sub set_db_level {
    280280    my $self= shift (@_);
    281     my ($gdbm_level) = @_;
    282 
    283     $self->{'gdbm_level'} = $gdbm_level;
     281    my ($db_level) = @_;
     282
     283    $self->{'db_level'} = $db_level;
    284284}
    285285
     
    491491
    492492
    493     if ($self->{'gdbm_level'} eq "document") {
     493    if ($self->{'db_level'} eq "document") {
    494494        # doc num is num_docs not num_sections
    495495        # output the matching document number
     
    526526   
    527527    # output a database entry for the document number
    528     if ($self->{'gdbm_level'} eq "document") {
     528    if ($self->{'db_level'} eq "document") {
    529529        print $handle "[$self->{'num_docs'}]\n";
    530530        print $handle "<section>$doc_OID\n";
     
    544544    $first = 0;
    545545    $section = $doc_obj->get_next_section($section);
    546     last if ($self->{'gdbm_level'} eq "document"); # if no sections wanted, only gdbm the docs
     546    last if ($self->{'db_level'} eq "document"); # if no sections wanted, only add the docs
    547547    }
    548548
Note: See TracChangeset for help on using the changeset viewer.