Changeset 635


Ignore:
Timestamp:
1999-09-28T13:46:55+12:00 (25 years ago)
Author:
rjmcnab
Message:

removed some unused stuff

File:
1 edited

Legend:

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

    r624 r635  
    2828/*
    2929   $Log$
     30   Revision 1.24  1999/09/28 01:46:55  rjmcnab
     31   removed some unused stuff
     32
    3033   Revision 1.23  1999/09/23 10:09:17  sjboddie
    3134   made some changes so AZLists within other classifications are
     
    350353                 outconvertclass &outconvert, ostream &textout);
    351354
    352 static void output_azlist (cgiargsclass &args, ResultDocInfo_tarray::const_iterator &here,
    353                ResultDocInfo_tarray::const_iterator &end, bool intable,
    354                displayclass &disp, format_t *formatlistptr,
    355                outconvertclass &outconvert, ostream &textout);
    356 
    357355static void output_datelist (cgiargsclass &args, ResultDocInfo_tarray::const_iterator &here,
    358356                 ResultDocInfo_tarray::const_iterator &end, bool intable,
     
    501499 
    502500    const text_t &doctype = (*thisparent).metadata[len-2].values.back();
    503     bool thissection = false;
     501    //    bool thissection = false;
    504502
    505503    if (!azlist) {
     
    657655}
    658656
    659 
    660 void output_azlist (cgiargsclass &args, ResultDocInfo_tarray::const_iterator &here,
    661             ResultDocInfo_tarray::const_iterator &end, bool intable,
    662             displayclass &disp, format_t *formatlistptr,
    663             outconvertclass &outconvert, ostream &textout) {
    664 
    665   int count = 1;
    666   int gt = args.getintarg("gt");
    667   text_t &arg_cl = args["cl"];
    668   text_t &arg_d = args["d"];
    669   text_t link;
    670 
    671   if (intable) textout << "<tr><td>";
    672 
    673   while (here != end) {
    674 
    675     bool thissec = false;
    676     int len = (*here).metadata.size();
    677     const text_t &doctype = (*here).metadata[len-2].values.back();
    678     const text_t &hastxt = (*here).metadata[len-4].values.back();
    679     // AZLists are assumed to use Title metadata
    680     const text_t &title = (*here).metadata[len-6].values.back();
    681 
    682     // bail on this document if it has no title
    683     if (title.empty()) continue;
    684 
    685     if (doctype == "classify") {
    686       if ((*here).OID == arg_cl) thissec = true;
    687     } else if ((*here).OID == arg_d) thissec = true;
    688    
    689     // set up link
    690     if (!thissec) {
    691       link = "<a href=\"_httpdocument_";
    692       if (doctype == "classify") link += "&cl=" + (*here).OID + "\">";
    693       else link += "&cl=" + arg_cl + "&d=" + (*here).OID + "\">";
    694       if (gt) {
    695     link = "<a href=\"#" + text_t(count) + "\">";
    696     count ++;
    697       }
    698     }
    699 
    700     if (thissec)
    701       textout << outconvert << disp << "<b>" << title << "</b>\n";
    702     else
    703       textout << outconvert << disp << link << title << "</a>\n";
    704    
    705     here ++;
    706   }
    707 
    708   if (intable) textout << "</td></tr>";
    709 }
    710657
    711658void output_datelist (cgiargsclass &args, ResultDocInfo_tarray::const_iterator &here,
Note: See TracChangeset for help on using the changeset viewer.