Changeset 15685 for gsdl/trunk/perllib/basebuildproc.pm
- Timestamp:
- 2008-05-23T15:33:58+12:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/basebuildproc.pm
r14934 r15685 120 120 $self->{'store_text'} = 1; 121 121 122 # what level (section/document) the gdbmdatabase - indexer intersection is123 $self->{' gdbm_level'} = "section";122 # what level (section/document) the database - indexer intersection is 123 $self->{'db_level'} = "section"; 124 124 #used by browse interface 125 125 $self->{'doclist'} = []; … … 276 276 } 277 277 278 # the standard gdbmlevel is section, but you may want to change it to document279 sub set_ gdbm_level {278 # the standard database level is section, but you may want to change it to document 279 sub set_db_level { 280 280 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; 284 284 } 285 285 … … 491 491 492 492 493 if ($self->{' gdbm_level'} eq "document") {493 if ($self->{'db_level'} eq "document") { 494 494 # doc num is num_docs not num_sections 495 495 # output the matching document number … … 526 526 527 527 # output a database entry for the document number 528 if ($self->{' gdbm_level'} eq "document") {528 if ($self->{'db_level'} eq "document") { 529 529 print $handle "[$self->{'num_docs'}]\n"; 530 530 print $handle "<section>$doc_OID\n"; … … 544 544 $first = 0; 545 545 $section = $doc_obj->get_next_section($section); 546 last if ($self->{' gdbm_level'} eq "document"); # if no sections wanted, only gdbmthe docs546 last if ($self->{'db_level'} eq "document"); # if no sections wanted, only add the docs 547 547 } 548 548
Note:
See TracChangeset
for help on using the changeset viewer.