Changeset 21783

Show
Ignore:
Timestamp:
15.03.2010 11:53:59 (10 years ago)
Author:
kjdon
Message:

don't write out OAI servicerack here. do it in collectionConfig as it doesn't depend on building. so don't need to rebuild to turn it off

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/buildConfigxml.pm

    r21439 r21783  
    256256    &write_line('COLCFG', ["<metadata name=\"numDocs\">", $numdocs, "</metadata>"]); 
    257257    &write_line('COLCFG', ["<metadata name=\"buildType\">", $buildtype, "</metadata>"]); 
     258    if (defined $buildcfg->{'indexstem'}) { 
     259    &write_line('COLCFG', ["<metadata name=\"indexStem\">", $buildcfg->{"indexstem"}, "</metadata>"]); 
     260    } 
     261    if (defined $buildcfg->{'infodbtype'}) { 
     262    &write_line('COLCFG', ["<metadata name=\"infodbType\">", $buildcfg->{"infodbtype"}, "</metadata>"]); 
     263    } 
    258264    &write_line('COLCFG', ["</metadataList>"]); 
    259265 
     
    268274    &write_line('COLCFG', ["<serviceRackList>"]); 
    269275 
    270     # This serviceRack enables the collection to provide the oai metadata retrieve service, which is served by the OAIPMH.java class 
    271     # For each collection, we write the following serviceRack in the collection's buildConfig.xml file if the 'disable_OAI' argument is not checked in the GLI (or equivalently, a 'disable_OAI' flag is not specified on the command line). There are also other configurations in the OAIConfig.xml. 
    272     if ($disable_OAI == 0) { 
    273       &write_line('COLCFG', ["<serviceRack name=\"OAIPMH\">"]); 
    274       if (defined $buildcfg->{'indexstem'}) { 
    275         my $indexstem = $buildcfg->{'indexstem'}; 
    276         &write_line('COLCFG', ["<indexStem name=\"", $indexstem, "\" />"]);      
    277       } 
    278       if (defined $buildcfg->{'infodbtype'}) { 
    279       my $infodbtype = $buildcfg->{'infodbtype'}; 
    280       &write_line('COLCFG', ["<databaseType name=\"", $infodbtype, "\" />"]);      
    281       } 
    282       &write_line('COLCFG', ["</serviceRack>"]); 
    283     }     
    284276    # do the search service  
    285277    &write_line('COLCFG', ["<serviceRack name=\"GS2", $service_type, "Search\">"]); 
     
    394386    } 
    395387    #for each level in levelList, write them out 
    396     if ($buildtype ne "mg") { 
     388    if ($buildtype ne "mg") { 
    397389    &write_line('COLCFG', ["<levelList>"]); 
    398390    foreach my $lv (@levellist) {