Changeset 22206

Show
Ignore:
Timestamp:
01.06.2010 11:30:55 (9 years ago)
Author:
kjdon
Message:

qualified_dublin_core now inherits from dublin_core so that it can use add_custom_metadata for the identifier URL

Location:
main/trunk/greenstone2/runtime-src/src/oaiservr
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/oaiservr/qualified_dublincore.cpp

    r18895 r22206  
    22#include "qualified_dublincore.h" 
    33 
    4 qualified_dublin_core::qualified_dublin_core() : metaformat() { 
     4qualified_dublin_core::qualified_dublin_core() : dublin_core() { 
    55  // These element names taken from the schema 
    66  //http://www.greenstone.org/namespace/gsdl_qdc/1.0/gsdl_qdc.xsd 
    77 
    8   elementSet.insert("title"); 
     8  // We have the following elements already by inheriting from dublin_core 
     9  /*   elementSet.insert("title"); 
    910   elementSet.insert("creator"); 
    1011   elementSet.insert("subject"); 
     
    2122   elementSet.insert("coverage"); 
    2223   elementSet.insert("rights"); 
     24  */ 
    2325   elementSet.insert("alternative"); 
    2426   elementSet.insert("tableOfContents"); 
     
    7072} 
    7173 
    72 bool qualified_dublin_core::output_record(ostream &output, recptproto *protocol, const text_t &collection,  
    73                 const text_t &record_OID)  
    74 { 
    75   return metaformat::output_record(output, protocol, collection, record_OID); 
    76 } 
    7774 
    7875void qualified_dublin_core::output_metadata_header(ostream &output) 
  • main/trunk/greenstone2/runtime-src/src/oaiservr/qualified_dublincore.h

    r18895 r22206  
    1 #include "metaformat.h" 
     1#include "dublincore.h" 
    22 
    3 class qualified_dublin_core : public metaformat 
     3class qualified_dublin_core : public dublin_core 
    44{ 
    55 protected: 
     
    1010  virtual const text_t formatName(); 
    1111  virtual const text_t formatPrefix(); 
    12   virtual bool output_record(ostream &output, recptproto *protocol, const text_t &collection,  
    13                  const text_t &record_OID); 
    1412  virtual bool output_formatdata(ostream &output); 
    1513  virtual ~qualified_dublin_core() {}