Ignore:
Timestamp:
2004-10-18T14:59:51+13:00 (20 years ago)
Author:
kjdon
Message:

renamed build option 'allclassifications' to 'remove_empty_classifications' - this means that empty classifications (classifiers and internal nodes) are displayed by default now. Note, if a collection has been built previously by the GLI, and allclassifications options used, then this will crap out building until that old option is deleted from collname.col file

File:
1 edited

Legend:

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

    r7950 r8361  
    5757
    5858my $arguments =
    59     [ { 'name' => "allclassifications",
    60     'desc' => "{buildcol.allclassifications}",
    61     'type' => "flag",
    62     'reqd' => "no",
    63     'modegli' => "2" },
     59    [ { 'name' => "remove_empty_classifications",
     60    'desc' => "{buildcol.remove_empty_classifications}",
     61    'type' => "flag",
     62    'reqd' => "no",
     63    'modegli' => "3" },
    6464      { 'name' => "archivedir",
    6565    'desc' => "{buildcol.archivedir}",
     
    164164{
    165165    my ($verbosity, $archivedir, $cachedir, $builddir, $maxdocs,
    166     $debug, $mode, $indexname, $keepold, $allclassifications,
     166    $debug, $mode, $indexname, $keepold, $remove_empty_classifications,
    167167    $create_images, $collectdir, $out, $buildtype, $textindex,
    168168    $no_strip_html, $no_text, $faillog, $gli);
     
    186186             'no_text', \$no_text,
    187187             'keepold', \$keepold,
    188              'allclassifications', \$allclassifications,
     188             'remove_empty_classifications', \$remove_empty_classifications,
    189189             'create_images', \$create_images,
    190190             'collectdir/.*/', \$collectdir,
     
    298298        }
    299299    }
    300     if (defined $collectcfg->{'allclassifications'} && $allclassifications == 0) {
    301         if ($collectcfg->{'allclassifications'} =~ /^true$/i) {
    302         $allclassifications = 1;
     300    if (defined $collectcfg->{'remove_empty_classifications'} && $remove_empty_classifications == 0) {
     301        if ($collectcfg->{'remove_empty_classifications'} =~ /^true$/i) {
     302        $remove_empty_classifications = 1;
    303303        }
    304304    }
     
    397397    eval("\$builder = new $buildertype(\$collection, " .
    398398     "\$realarchivedir, \$realbuilddir, \$verbosity, " .
    399      "\$maxdocs, \$debug, \$keepold, \$allclassifications, " .
     399     "\$maxdocs, \$debug, \$keepold, \$remove_empty_classifications, " .
    400400     "\$out, \$no_text, \$faillog, \$gli)");
    401401    die "$@" if $@;
Note: See TracChangeset for help on using the changeset viewer.