Changeset 635
- Timestamp:
- 1999-09-28T13:46:55+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/browsetools.cpp
r624 r635 28 28 /* 29 29 $Log$ 30 Revision 1.24 1999/09/28 01:46:55 rjmcnab 31 removed some unused stuff 32 30 33 Revision 1.23 1999/09/23 10:09:17 sjboddie 31 34 made some changes so AZLists within other classifications are … … 350 353 outconvertclass &outconvert, ostream &textout); 351 354 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 357 355 static void output_datelist (cgiargsclass &args, ResultDocInfo_tarray::const_iterator &here, 358 356 ResultDocInfo_tarray::const_iterator &end, bool intable, … … 501 499 502 500 const text_t &doctype = (*thisparent).metadata[len-2].values.back(); 503 bool thissection = false;501 // bool thissection = false; 504 502 505 503 if (!azlist) { … … 657 655 } 658 656 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 metadata680 const text_t &title = (*here).metadata[len-6].values.back();681 682 // bail on this document if it has no title683 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 link690 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 else703 textout << outconvert << disp << link << title << "</a>\n";704 705 here ++;706 }707 708 if (intable) textout << "</td></tr>";709 }710 657 711 658 void output_datelist (cgiargsclass &args, ResultDocInfo_tarray::const_iterator &here,
Note:
See TracChangeset
for help on using the changeset viewer.