Changeset 11998 for trunk/gsdl/src/recpt/documentaction.cpp
- Timestamp:
- 2006-07-04T15:23:58+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/documentaction.cpp
r11771 r11998 619 619 if (get_info (inlink, args["c"], args["l"], metadata, false, collectproto, response, logout)) { 620 620 if (!response.docInfo[0].metadata["section"].values[0].empty()) { 621 #ifndef DOCHANDLE 621 622 outlink = "_httpdocument_&d=" + response.docInfo[0].metadata["section"].values[0]; 623 #else 624 outlink = "_httpdocumenthandle_("+args["c"]+","+response.docInfo[0].metadata["section"].values[0]+")"; 625 #endif 626 622 627 return true; 623 628 } … … 642 647 if (get_info (inlink, *col_here, args["l"], metadata, false, collectproto, response, logout)) { 643 648 if (!response.docInfo[0].metadata["section"].values[0].empty()) { 649 #ifndef DOCHANDLE 644 650 outlink = "_httpdocument_&c=" + *col_here + "&d=" + 645 651 response.docInfo[0].metadata["section"].values[0]; 652 #else 653 outlink = "_httpdocumenthandle_("+*col_here+","+response.docInfo[0].metadata["section"].values[0]+")"; 654 #endif 655 646 656 return true; 647 657 } … … 1003 1013 << "<frameset rows=\"68,*\" noresize border=0>\n" 1004 1014 << "<frame scrolling=no frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=p&p=nav\">\n" 1015 #ifndef DOCHANDLE 1005 1016 << "<frame name=\"documenttop\" frameborder=0 src=\"_gwcgi_?_optsite_e=_compressedoptions_&a=d&d=" 1006 1017 << args["d"] << "\">" 1018 #else 1019 << "<frame name=\"documenttop\" frameborder=0 src=\"_httpdocumenthandle_(" 1020 << args["c"] << "," << args["d"] << ")\">" 1021 #endif 1007 1022 << "<noframes>\n" 1008 1023 << "<p>You must have a frame enabled browser to view this.</p>\n" … … 1297 1312 // work out values for next link 1298 1313 if (haschildren) { 1314 #ifndef DOCHANLE 1299 1315 disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + args["cl"] + 1300 1316 "&d=" + arg_d + ".fc"); 1317 #else 1318 disp.setmacro ("httpnextarrow", "document", "_httpdocumenthandle_("+args["c"]+","+arg_d + ".fc)"; 1319 1320 #endif 1321 1301 1322 } else { 1302 1323 text_tarray::const_iterator h = next_siblings.begin(); … … 1304 1325 while (h != e) { 1305 1326 if (!(*h).empty()) { 1327 #ifndef DOCHANLE 1306 1328 disp.setmacro ("httpnextarrow", "document", "_httpdocument_&cl=" + args["cl"] + 1307 1329 "&d=" + *h); 1330 #else 1331 disp.setmacro ("httpnextarrow", "document", "_httpdocumenthandle_("+args["c"]+","+*h+")"; 1332 1333 #endif 1334 1308 1335 break; 1309 1336 } … … 1314 1341 // work out value for previous link 1315 1342 if (!previous_sibling.empty()) { 1343 #ifndef DOCHANDLE 1316 1344 disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + args["cl"] + 1317 1345 "&d=" + previous_sibling); 1346 #else 1347 disp.setmacro ("httpprevarrow", "document", "_httpdocumenthandle_("+args["c"]+","+ previous_sibling+")"); 1348 1349 #endif 1350 1318 1351 } else { 1319 1352 if (countchar(arg_d.begin(), arg_d.end(), '.')) { 1353 #ifndef DOCHANDLE 1320 1354 disp.setmacro ("httpprevarrow", "document", "_httpdocument_&cl=" + args["cl"] + 1321 1355 "&d=" + get_parent(arg_d)); 1356 #else 1357 disp.setmacro ("httpprevarrow", "document", "_httpdocumenthandle_("+args["c"]+","+get_parent(arg_d)+")"); 1358 1359 #endif 1360 1322 1361 } 1323 1362 }
Note:
See TracChangeset
for help on using the changeset viewer.