Changeset 18862

Show
Ignore:
Timestamp:
01.04.2009 15:24:07 (10 years ago)
Author:
kjdon
Message:

add gsdl_qdc to list of acceptable meta formats. Output xml-stylesheet line to use the oai2.xsl file to display reponses nicely in browser

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/oaiservr/oaiaction.cpp

    r15428 r18862  
    4242{ 
    4343  if (metaFormat == "oai_dc") return false; 
    44   else if (metaFormat == "rfc1807") return false; 
    45  
     44  if (metaFormat == "rfc1807") return false; 
     45  if (metaFormat == "gsdl_qdc") return false; 
    4646  return true; 
    4747} 
     
    307307  } 
    308308  else {  
     309    text_t baseDocRoot = this->configuration->getCollectionConfig("", "baseDocRoot"); 
     310    output << "<?xml-stylesheet type=\"text/xsl\" href=\""<<baseDocRoot<<"/images/oai2.xsl\" ?>\n"; 
    309311    // output OAI v2.0 action header tag 
    310312    output << "<OAI-PMH xmlns=\"http://www.openarchives.org/OAI/2.0/\"\n"