Changeset 6710


Ignore:
Timestamp:
2004-02-03T14:15:37+13:00 (20 years ago)
Author:
kjdon
Message:

added a [DocRank] format statement option that returns the rank of the document in the results list

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

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

    r6645 r6710  
    609609  else if (meta == "DocOID")
    610610     formatlistptr->command = comOID;
    611  
     611  else if (meta == "DocRank")
     612    formatlistptr->command = comRank;
    612613  else {
    613614    formatlistptr->command = comMeta;
     
    10851086     case comOID:
    10861087    return docinfo.OID;
     1088  case comRank:
     1089    return text_t(docinfo.ranking);
    10871090     case comText:
    10881091    return formatlistptr->text;
  • trunk/gsdl/src/recpt/formattools.h

    r6645 r6710  
    3636        comDoc, comHighlight, comEndHighlight, comRel, comHref, comSummary,
    3737        comTOC, comImage, comDocumentButtonDetach, comDocumentButtonHighlight,
    38         comDocumentButtonExpandContents, comDocumentButtonExpandText, comOID};
     38        comDocumentButtonExpandContents, comDocumentButtonExpandText, comOID, comRank};
    3939enum pcommand_t {pNone, pImmediate, pTop, pAll};
    4040enum dcommand_t {dMeta, dText};
Note: See TracChangeset for help on using the changeset viewer.