Changeset 3673


Ignore:
Timestamp:
2003-01-17T00:39:30+13:00 (21 years ago)
Author:
cs025
Message:

Fixed format_summary to lookup the "Summary" metadata on documents, when
that exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/formattools.cpp

    r2967 r3673  
    10991099              const text_t &text, bool highlight,
    11001100              ostream& logout) {
     1101
     1102  // GRB: added code here to ensure that the cstr (and other collections)
     1103  //      uses the document metadata item Summary, rather than compressing
     1104  //      the text of the document, processed via the methods in
     1105  //      summarise.cpp
     1106  if (docinfo.metadata.count("Summary") > 0 &&
     1107      docinfo.metadata["Summary"].values.size() > 0) {
     1108    return docinfo.metadata["Summary"].values[0];
     1109  }
     1110
    11011111  text_t textToSummarise, query;
    11021112  if(text.empty()) { // get document text
Note: See TracChangeset for help on using the changeset viewer.