Changeset 10653

Show
Ignore:
Timestamp:
26.09.2005 17:24:45 (14 years ago)
Author:
kjdon
Message:

added indexStem element into service racks if needed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/bin/script/convert_coll_from_gs2.pl

    r10360 r10653  
    113113    } 
    114114     
     115    my $indexstem = undef; 
     116    if (defined $buildcfg->{'indexstem'}) { 
     117    $indexstem = $buildcfg->{'indexstem'}; 
     118    } 
     119 
    115120    my $buildoutput = new IO::File(">$buildoutfile"); 
    116121    my $buildwriter = new XML::Writer(OUTPUT => $buildoutput, NEWLINES => 1); 
     
    256261     
    257262    } 
     263    if (defined $indexstem) { 
     264    $buildwriter->emptyTag('indexStem', 'name'=>$indexstem); 
     265    }  
    258266    # close off the Retrieve service 
    259267    $buildwriter->endTag('serviceRack'); 
     
    295303        if (not $started_classifiers) { 
    296304        $buildwriter->startTag('serviceRack', 'name'=>'GS2Browse'); 
     305        if (defined $indexstem) { 
     306            $buildwriter->emptyTag('indexStem', 'name'=>$indexstem); 
     307        }  
     308 
    297309        $buildwriter->startTag('classifierList');        
    298310        $started_classifiers = 1; 
     
    407419    } 
    408420     
     421    if (defined $indexstem) { 
     422    $buildwriter->emptyTag('indexStem', 'name'=>$indexstem); 
     423    }  
    409424     
    410425    $buildwriter->emptyTag('defaultIndex', 'name'=>$defaultindex);