Ignore:
Timestamp:
1999-08-03T15:29:47+12:00 (25 years ago)
Author:
sjboddie
Message:

added ability to set receptionist from collect.cfg

File:
1 edited

Legend:

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

    r421 r430  
    1212/*
    1313   $Log$
     14   Revision 1.9  1999/08/03 03:29:47  sjboddie
     15   added ability to set receptionist from collect.cfg
     16
    1417   Revision 1.8  1999/07/30 02:24:44  sjboddie
    1518   added collectinfo argument to some functions
     
    136139
    137140      while (collist_here != collist_end) {
    138         ColInfoResponse_t collectinfo;
    139         (*rprotolist_here).p->get_collectinfo (*collist_here, collectinfo, err, logout);
     141        ColInfoResponse_t cinfo;
     142        (*rprotolist_here).p->get_collectinfo (*collist_here, cinfo, err, logout);
    140143        if (err == noError) {
    141 
    142           homeextra += "<dt><a href=\"_httpquery_&c=" + *collist_here + "\">"
    143         + *collist_here + "</a></dt>\n";
     144          text_t link = "<a href=\"_gwcgi_?a=q&c=" + *collist_here + "\">";
     145          if (!cinfo.receptionist.empty())
     146        link = "<a href=\"" + cinfo.receptionist + "?a=q&c=" + *collist_here + "\">";
     147         
     148          homeextra += "<dt>" + link + *collist_here + "</a></dt>\n";
    144149          homeextra += "<dd>";
    145           if (collectinfo.numDocs != 0) homeextra += text_t(collectinfo.numDocs) + "_documents_";
    146           if (collectinfo.numWords != 0) homeextra += text_t(collectinfo.numWords) + "_words_";
    147           unsigned long last_update = (current_time - collectinfo.buildDate) / 86400;
     150          if (cinfo.numDocs != 0) homeextra += text_t(cinfo.numDocs) + "_documents_";
     151          if (cinfo.numWords != 0) homeextra += text_t(cinfo.numWords) + "_words_";
     152          unsigned long last_update = (current_time - cinfo.buildDate) / 86400;
    148153          homeextra += "_lastupdate_ " + text_t(last_update) + " _ago_</dd>\n";
    149154        }
Note: See TracChangeset for help on using the changeset viewer.