Changeset 21772

Show
Ignore:
Timestamp:
08.03.2010 20:06:21 (10 years ago)
Author:
ak19
Message:

Removing the Doc and Sec opening and closing tags, since they interfere with the validity of the html pages output (greenstone3 also fixed).

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/runtime-src/src/colservr/source.cpp

    r16310 r21772  
    208208 
    209209 
    210 // get_metadata fills out the metadata if possible, if it is not responsable 
     210// get_metadata fills out the metadata if possible, if it is not responsible 
    211211// for the given OID then it will return false. 
    212212bool sourceclass::get_metadata (const text_t &requestParams, const text_t &refParams,  
     
    407407    // get the text 
    408408    textsearchptr->docTargetDocument(defaultindex, defaultsubcollection, 
    409                    defaultlanguage, collection, docnum, doc); 
     409                   defaultlanguage, collection, docnum, doc);     
     410 
     411    // remove the <Doc></Doc> and <Sec></Sec> tags 
     412    doc.replace("<Doc>", ""); 
     413    doc.replace("</Doc>", ""); 
     414    doc.replace("<Sec>", ""); 
     415    doc.replace("</Sec>", ""); 
    410416  } 
    411417