Changeset 411
- Timestamp:
- 1999-07-21T17:01:09+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r405 r411 12 12 /* 13 13 $Log$ 14 Revision 1.14 1999/07/21 05:01:09 sjboddie 15 fixed up wrapping of classificationlinks 16 14 17 Revision 1.13 1999/07/20 02:59:54 sjboddie 15 18 List and AZList classifications now use format strings … … 364 367 // set the _httpbrowseXXX_ macro for this classification 365 368 text_t link = (*dochere).OID; 366 if (classifytype == "AZList" || classifytype == "Date list") link += ".fc";369 if (classifytype == "AZList" || classifytype == "DateList") link += ".fc"; 367 370 disp.setmacro ("httpbrowse" + title, "Global", 368 371 "_httpdocument_&cl=" + link); … … 404 407 405 408 // _httpprevarrow_ these are set if next or previous arrows 406 // _httpnextarrow_ are to be used - (i.e. if it's an AZList or a Date list409 // _httpnextarrow_ are to be used - (i.e. if it's an AZList or a DateList 407 410 // classifytype at a top level or if it's a Book or a 408 411 // Hierarchy classifytype at document level … … 498 501 // (if they're required by the current classification type) 499 502 500 if ((classifytype == "AZList") || (classifytype == "Date list")) {503 if ((classifytype == "AZList") || (classifytype == "DateList")) { 501 504 502 505 text_t classificationlinks, navarrows; … … 519 522 ResultDocInfo_tarray::const_iterator secend = response.docInfo.end(); 520 523 524 int lenlinks = 0; 521 525 while (sechere != secend) { 522 526 if ((*sechere).metadata[1].values[0] == "classify") { 527 const text_t §ionheading = (*sechere).metadata[0].values[0]; 528 523 529 if (((*sechere).OID == arg_cl) || is_child_of((*sechere).OID, arg_cl)) { 524 530 … … 529 535 disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + (*(sechere+1)).OID); 530 536 531 classificationlinks += "\n<b>" + (*sechere).metadata[0].values[0] + "</b> "; 537 lenlinks += sectionheading.size(); 538 classificationlinks += "<b>" + sectionheading + "</b>"; 539 if (lenlinks > 50) { 540 classificationlinks += "<br>\n"; 541 lenlinks = 0; 542 } else { 543 if (sechere+1 != secend) classificationlinks += " \n"; 544 lenlinks += 3; 545 } 532 546 } else { 547 lenlinks += sectionheading.size(); 533 548 classificationlinks += link + (*sechere).OID + "\">"; 534 classificationlinks += (*sechere).metadata[0].values[0] + "</a>"; 535 if ((sechere + 1) != secend) classificationlinks += " "; 549 classificationlinks += sectionheading + "</a>"; 550 if (lenlinks > 50) { 551 classificationlinks += "<br>\n"; 552 lenlinks = 0; 553 } else { 554 if (sechere+1 != secend) classificationlinks += " \n"; 555 lenlinks += 3; 556 } 536 557 } 537 558 } … … 599 620 else 600 621 // Book is the default for a document level toc - AZList, List and 601 // Date list don't make sense for document level622 // DateList don't make sense for document level 602 623 book_toc (args, collectproto, disp, 603 624 outconvert, textout, logout); … … 616 637 hierarchy_toc (thistype, args, collectproto, 617 638 disp, outconvert, textout, logout); 618 else if (toptype == "Date list")619 datelist_toc (thistype, toptitle,formatstring, args, collectproto,639 else if (toptype == "DateList") 640 datelist_toc (thistype, formatstring, args, collectproto, 620 641 disp, outconvert, textout, logout); 621 642 else
Note:
See TracChangeset
for help on using the changeset viewer.