Changeset 2506


Ignore:
Timestamp:
2001-06-07T13:30:50+12:00 (23 years ago)
Author:
dmm9
Message:

added writing of collection document list to db (OID browselist)

File:
1 edited

Legend:

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

    r2336 r2506  
    644644    # init all the classifiers
    645645    &classify::init_classifiers ($self->{'classifiers'});
     646   
    646647
    647648    # set up the document processor
     
    655656    $handle = mgbuilder::PIPEOUT;
    656657    }
    657 
     658   
    658659    $self->{'buildproc'}->set_output_handle ($handle);
    659660    $self->{'buildproc'}->set_mode ('infodb');
     
    664665    $self->{'buildproc'}->set_store_text(1);
    665666    $self->{'buildproc'}->reset();
    666 
     667   
    667668    if (defined $self->{'collect_cfg'}->{'collectionmeta'}) {
    668669   
     
    691692    }
    692693
     694   
    693695    &plugin::read ($self->{'pluginfo'}, $self->{'source_dir'},
    694696           "", {}, $self->{'buildproc'}, $self->{'maxdocs'});
    695 
     697   
    696698    # output classification information
    697699    &classify::output_classify_info ($self->{'classifiers'}, $handle,
    698700                     $self->{'allclassifications'});
     701
     702
     703
     704    #output doclist
     705    my @doclist = $self->{'buildproc'}->get_doc_list();
     706    my $docs = join (";",@doclist);
     707    print $handle "[browselist]\n";
     708    print $handle "<hastxt>0\n";
     709    print $handle "<childtype>VList\n";
     710    print $handle "<numleafdocs>" . ($#doclist+1) . "\n";
     711    print $handle "<thistype>Invisible\n";
     712    print $handle "<contains>$docs";
     713    print $handle "\n" . ('-' x 70) . "\n";
    699714
    700715    close ($handle) if !$self->{'debug'};
Note: See TracChangeset for help on using the changeset viewer.