Changeset 14244
- Timestamp:
- 2007-07-12T10:42:42+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/cfgread4gs3.pm
r14200 r14244 337 337 } 338 338 339 print "*** collectionConfig.xml internal ***\n";340 &Display;339 #print "*** collectionConfig.xml internal ***\n"; 340 #&Display; 341 341 return $data; 342 342 } … … 350 350 # Create the buildConfig.xml file for a specific collection 351 351 sub write_cfg_file { 352 # this sub is called make_auxiliary_files() in basebuilder.pm352 # this sub is called in make_auxiliary_files() in basebuilder.pm 353 353 # the received args: $buildoutfile - destination file: buildConfig.xml 354 354 # $buildcfg - all build options, eg, disable_OAI 355 355 # $collectcfg - contents of collectionConfig.xml read in by read_cfg_file sub in cfgread4gs3.pm. 356 my ($buildoutfile, $buildcfg, $collectcfg ) = @_;356 my ($buildoutfile, $buildcfg, $collectcfg, $disable_OAI) = @_; 357 357 my $line = []; 358 358 359 359 if (!open (COLCFG, ">$buildoutfile")) { 360 print STDERR "cfgread ::write_cfg_file couldn't write the cfg file $buildoutfile\n";360 print STDERR "cfgread4gs3::write_cfg_file couldn't write the build config file $buildoutfile\n"; 361 361 die; 362 362 } … … 391 391 392 392 # This serviceRack enables the collection to provide the oai metadata retrieve service, which is served by the OAIPMH.java class 393 # For each collection, we write the following serviceRack in the collection's buildConfig.xml file as follows if the 'disable_OAI' argument is not ticked inGLI (or equivalently, a 'disable_OAI' flag is not specified on the command line). There are also other configurations in the OAIConfig.xml.394 if ($ buildcfg->{'disable_OAI'}== 0) {393 # 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. 394 if ($disable_OAI == 0) { 395 395 &write_line('COLCFG', ["<serviceRack name=\"OAIPMH\">"]); 396 396 if (defined $buildcfg->{'indexstem'}) {
Note:
See TracChangeset
for help on using the changeset viewer.