Ignore:
Timestamp:
2009-04-01T15:24:07+13:00 (15 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

File:
1 edited

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"
Note: See TracChangeset for help on using the changeset viewer.