Changeset 450 for trunk/gsdl/src/recpt/documentaction.cpp
- Timestamp:
- 1999-08-12T11:28:03+12:00 (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r448 r450 12 12 /* 13 13 $Log$ 14 Revision 1.21 1999/08/11 23:28:03 sjboddie 15 -added support for html classifier 16 - removed _random_ macro - now use _blank for detach page 17 14 18 Revision 1.20 1999/08/10 23:16:39 sjboddie 15 19 a couple of small changes to get format options DocumentArrowsBottom … … 341 345 342 346 // set the _httpbrowseXXX_ macro for this classification 343 text_t link = (*dochere).OID; 347 text_t link; 348 if (classifytype == "HTML") 349 link = "_httppagex_(html)&hp=" + (*dochere).OID + ".fc"; 350 else 351 link = "_httpdocument_&cl=" + (*dochere).OID; 352 344 353 if (classifytype == "AZList" || classifytype == "DateList") link += ".fc"; 345 disp.setmacro ("httpbrowse" + title, "Global", 346 "_httpdocument_&cl=" + link); 354 disp.setmacro ("httpbrowse" + title, "Global", link); 355 347 356 } 348 357 javaimagesnavbar += "_java" + title + "_"; … … 372 381 373 382 // define_internal_macros sets the following macros: 374 375 // _random_ a random number - used for setting target tags to display376 // a random page when you hit the 'detach' button377 383 378 384 // _pagetitle_ the title to be displayed at the top of the browser window … … 441 447 text_t &collection = args["c"]; 442 448 443 disp.setmacro("random", "document", rand());444 445 449 if (!formatinfo.DocumentArrowsBottom) 446 450 disp.setmacro("navarrows", "document", ""); … … 504 508 javaimagescontent += "_javaexpandtext_"; 505 509 } else if (*button_here == "Expand Contents") { 506 if (classifytype == "Hierarchy")507 510 if (arg_gc == 1) 508 511 javaimagescontent += "_javacontractcontents_"; … … 568 571 569 572 // set the _httpprevarrow_, _httpnextarrow_ macros while we're here 570 if (sechere != response.docInfo.begin()) 571 disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + (*(sechere-1)).OID); 572 if ((sechere + 1) != secend) 573 disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + (*(sechere+1)).OID); 573 if (formatinfo.DocumentArrowsBottom) { 574 if (sechere != response.docInfo.begin()) 575 disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + (*(sechere-1)).OID); 576 if ((sechere + 1) != secend) 577 disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + (*(sechere+1)).OID); 578 } 574 579 575 580 lenlinks += sectionheading.size(); … … 674 679 675 680 // output the document text 681 textout << "<p>\n"; 676 682 output_document (OID, args, collectproto, disp, outconvert, textout, logout); 677 683
Note:
See TracChangeset
for help on using the changeset viewer.