Ignore:
Timestamp:
2006-10-16T12:27:53+13:00 (18 years ago)
Author:
kjdon
Message:

added [DocTopOID] which gives the top level document identifier

File:
1 edited

Legend:

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

    r13117 r13118  
    555555  else if (meta == "DocOID")
    556556     formatlistptr->command = comOID;
     557  else if (meta == "DocTopOID")
     558    formatlistptr->command = comTopOID;
    557559  else if (meta == "DocRank")
    558560    formatlistptr->command = comRank;
     
    14351437     case comOID:
    14361438    return docinfo.OID;
     1439  case comTopOID:
     1440    {
     1441      text_t top_id;
     1442      get_top(docinfo.OID, top_id);
     1443      return top_id;
     1444    }
    14371445  case comRank:
    14381446    return text_t(docinfo.ranking);
Note: See TracChangeset for help on using the changeset viewer.