Ignore:
Timestamp:
2010-03-08T20:06:21+13:00 (14 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).

File:
1 edited

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