Changeset 14105


Ignore:
Timestamp:
2007-05-28T14:39:56+12:00 (17 years ago)
Author:
qq6
Message:

fixed a mistake

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/cfgread4gs3.pm

    r14101 r14105  
    3030no strict 'refs';
    3131no strict 'subs';
    32 
    3332# Wrapper that ensures the right version of XML::Parser is loaded given
    3433# the version of Perl being used.  Need to distinguish between Perl 5.6 and
    3534# Perl 5.8
     35
     36
    3637sub BEGIN {
    3738    my $perl_dir;
     
    5859}
    5960
    60 use XML::Parser;
    61 
     61#use XML::Parser;
     62 
    6263# A mapping hash to resolve name descrepency between gs2 and gs3.
    6364my $nameMap = {"key" => "value",
     
    349350}
    350351
    351 # Create the buildConfig.xml file for a specific collection
    352352sub write_cfg_file {
    353     # information needed from $collectcfg include: defaultindex, defaultlevel, classifiers,
     353    # information needed from $collectcfg: defaultindex, defaultlevel, classifiers,
    354354    # the rest is from $buildcfg
    355355    my ($buildoutfile, $buildcfg, $collectcfg) = @_;
     
    389389    &write_line('COLCFG', ["<serviceRackList>"]);
    390390
    391     # This serviceRack enables the collection to provide the oai metadata retrieve service, which is served by the OAIMetadataRetrieve.java class
    392     # 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        
    404391    # do the search service
    405392    &write_line('COLCFG', ["<serviceRack name=\"GS2", $service_type, "Search\">"]);
Note: See TracChangeset for help on using the changeset viewer.