Changeset 14105
- Timestamp:
- 2007-05-28T14:39:56+12:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/cfgread4gs3.pm
r14101 r14105 30 30 no strict 'refs'; 31 31 no strict 'subs'; 32 33 32 # Wrapper that ensures the right version of XML::Parser is loaded given 34 33 # the version of Perl being used. Need to distinguish between Perl 5.6 and 35 34 # Perl 5.8 35 36 36 37 sub BEGIN { 37 38 my $perl_dir; … … 58 59 } 59 60 60 use XML::Parser;61 61 #use XML::Parser; 62 62 63 # A mapping hash to resolve name descrepency between gs2 and gs3. 63 64 my $nameMap = {"key" => "value", … … 349 350 } 350 351 351 # Create the buildConfig.xml file for a specific collection352 352 sub write_cfg_file { 353 # information needed from $collectcfg include: defaultindex, defaultlevel, classifiers,353 # information needed from $collectcfg: defaultindex, defaultlevel, classifiers, 354 354 # the rest is from $buildcfg 355 355 my ($buildoutfile, $buildcfg, $collectcfg) = @_; … … 389 389 &write_line('COLCFG', ["<serviceRackList>"]); 390 390 391 # This serviceRack enables the collection to provide the oai metadata retrieve service, which is served by the OAIMetadataRetrieve.java class392 # For each collection, we write the following serviceRack in the collection's buildConfig.xml file as follows and also specify the metadata format this oai service provides in the rack. But whether this service is going to be put in use depends on its name appearing in the OAIConfig.xml.393 &write_line('COLCFG', ["<serviceRack name=\"OAIPMH\">"]);394 395 # What metadata sets to support is collection specific and is specified in each collection's buildConfig.xml file. To support other metadata schema, simply add an OAIMetadataFormat element here.396 # The support of unqualified Dublin Core metadata set is mendatory in the oai specification.397 &write_line('COLCFG', ["<OAIMetadataFormat name=\"Dublin Core\">"]);398 &write_line('COLCFG', ["<metadataPrefix>oai_dc</metadataPrefix>"]);399 &write_line('COLCFG', ["<metadataNamespace>dc</metadataNamespace>"]);400 &write_line('COLCFG', ["</OAIMetadataFormat>"]);401 402 &write_line('COLCFG', ["</serviceRack>"]);403 404 391 # do the search service 405 392 &write_line('COLCFG', ["<serviceRack name=\"GS2", $service_type, "Search\">"]);
Note:
See TracChangeset
for help on using the changeset viewer.