Changeset 18893

Show
Ignore:
Timestamp:
06.04.2009 11:55:18 (10 years ago)
Author:
kjdon
Message:

check the metadataSet list for whether we support a format or not

Files:
1 modified

Legend:

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

    r18862 r18893  
    4141bool oaiaction::formatNotSupported(text_t &metaFormat) 
    4242{ 
    43   if (metaFormat == "oai_dc") return false; 
    44   if (metaFormat == "rfc1807") return false; 
    45   if (metaFormat == "gsdl_qdc") return false; 
    46   return true; 
     43  // is it in our list? 
     44  if (this->configuration->getMetadataSet().count(metaFormat) == 0) return true; 
     45  return false; 
    4746} 
    4847