#include "rfc1807.h" const text_t rfc1807::formatName() { return "rfc1807"; } const text_t rfc1807::formatPrefix() { return "rfc1807"; } bool rfc1807::output_record(ostream &output, recptproto *protocol, const text_t &collection, const text_t &record_OID) { return metaformat::output_record(output, protocol, collection, record_OID); } void rfc1807::output_metadata_header(ostream &output) { output << "\n"; if(this->oaiConfigure->getOAIVersion() <= 110){ // output rfc1807 wrapper for OAI v1.1 output << "" << endl; } else { // TODO: output rfc1807 wrapper for OAI v2.0 output << "" << endl; } } void rfc1807::output_metadata_footer(ostream &output) { // end rfc1807 wrapper output << "" << endl; output << "\n"; } bool rfc1807::output_formatdata(ostream &output) { // Both versions of the protocol use the same schema (yes?) output << " rfc1807" << endl; output << " http://www.openarchives.org/OAI/1.1/rfc1807.xsd" << endl; // N.B.: no namespace for this format output << " " << endl; return true; }