Changeset 3087 for trunk/gsdl/src


Ignore:
Timestamp:
2002-04-22T15:26:19+12:00 (22 years ago)
Author:
sjboddie
Message:

Fixed a couple of bugs in the way the "Expand Text" function worked

Location:
trunk/gsdl/src/recpt
Files:
2 edited

Legend:

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

    r2805 r3087  
    767767
    768768    // output the document text
    769     textout << "<p>\n";
    770     output_document (OID, args, collectproto, disp, outconvert, textout, logout);
     769    if (!args["d"].empty()) {
     770      textout << "<p>\n";
     771      output_document (OID, args, collectproto, disp, outconvert, textout, logout);
     772    }
    771773
    772774    textout << outconvert << disp << "_document:footer_\n";
     
    928930    int count = 0;
    929931    while (sechere != secend) {
    930       textout << outconvert << disp << "\n<p><a name=" << count << "></a>\n";
     932      textout << outconvert << disp << "\n<p><a name=" << (*sechere).OID << "></a>\n";
    931933
    932934      int shastxt = (*sechere).metadata["hastxt"].values[0].getint();
  • trunk/gsdl/src/recpt/vlistbrowserclass.cpp

    r3065 r3087  
    213213    link += "&cl=" + arg_cl + "&d=" + section.OID + "\">";
    214214      }
    215     } else link += "&cl=" + arg_cl + "&d=" + section.OID + "\">";
     215    } else {
     216      if (args["gt"] == "0") {
     217    link += "&cl=" + arg_cl + "&d=" + section.OID + "\">";
     218      } else {
     219    link += "&cl=" + arg_cl + "&d=" + section.OID + "#" + section.OID + "\">";
     220      }
     221    }
    216222
    217223  } else {
Note: See TracChangeset for help on using the changeset viewer.