Changeset 12338 for trunk


Ignore:
Timestamp:
2006-07-28T15:18:49+12:00 (18 years ago)
Author:
kjdon
Message:

added the maxnumeric option to buildcol. so it can be set in GLI. values set in collect.cfg take precedence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/buildcol.pl

    r10472 r12338  
    139139    'reqd' => "no",
    140140        'hiddengli' => "yes" },
     141      { 'name' => "maxnumeric",
     142    'desc' => "{buildcol.maxnumeric}",
     143    'type' => "int",
     144    'reqd' => "no",
     145    'deft' => "4",
     146    'range' => "4,512" },
    141147      { 'name' => "mode",
    142148    'desc' => "{buildcol.mode}",
     
    213219    $create_images, $collectdir, $build, $type, $textindex,
    214220    $no_strip_html, $no_text, $faillog, $gli, $index, $language,
    215     $sections_index_document_metadata);
     221    $sections_index_document_metadata, $maxnumeric);
    216222
    217223    my $xml = 0;
     
    324330    }
    325331    }
     332    if (defined $collectcfg->{'maxnumeric'} && $collectcfg->{'maxnumeric'} =~ /\d+/) {
     333    $maxnumeric = $collectcfg->{'maxnumeric'};
     334    }
     335   
     336    if ($maxnumeric < 4 || $maxnumeric > 512) {
     337    $maxnumeric = 4;
     338    }
     339   
    326340    if (defined $collectcfg->{'debug'} && $collectcfg->{'debug'} =~ /^true$/i) {
    327341    $debug = 1;
     
    352366    }
    353367    }
     368   
    354369   
    355370    if (defined $collectcfg->{'create_images'} && $collectcfg->{'create_images'} =~ /^true$/i) {
     
    457472
    458473    $builder->init();
    459 
     474    $builder->set_maxnumeric($maxnumeric);
     475   
    460476    if (($buildertype eq "mgppbuilder") && $no_strip_html) {
    461477    $builder->set_strip_html(0);
     
    464480    $builder->set_sections_index_document_metadata($sections_index_document_metadata);
    465481    }
    466 
     482       
    467483    if ($mode =~ /^all$/i) {
    468484    $builder->compress_text($textindex);
Note: See TracChangeset for help on using the changeset viewer.