Changeset 19047

Show
Ignore:
Timestamp:
19.04.2009 17:42:24 (10 years ago)
Author:
davidb
Message:

Additional macros set to assist in more advanced use of a PageImageDoc?'s table of contents and goto-form

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/runtime-src/src/recpt/pagedbrowserclass.cpp

    r15418 r19047  
    6767 
    6868  if (!arg_d.empty() && !arg_gp.empty()) { 
    69     text_t top; 
    70     get_top (arg_d, top); 
    71     metadata.insert ("Title"); 
    72     get_children (top, args["c"], args["l"], metadata, getParents, collectproto, response, logout); 
     69    text_t immediate_parent = get_parent (arg_d); 
     70 
     71    metadata.insert("Title"); 
     72    get_children (immediate_parent, args["c"], args["l"], metadata, 
     73          getParents, collectproto, response, logout); 
    7374    ResultDocInfo_tarray::iterator dochere = response.docInfo.begin(); 
    7475    ResultDocInfo_tarray::iterator docend = response.docInfo.end(); 
     
    196197  if (!nextarrow.empty()) disp.setmacro ("nextarrow", "document", nextarrow); 
    197198 
     199  if (!previoustitle.empty()) disp.setmacro ("prevtitle", "document", previoustitle); 
     200  if (!nexttitle.empty())     disp.setmacro ("nexttitle", "document", nexttitle); 
     201 
    198202 
    199203  textout << outconvert << disp << "<tr valign=middle>\n"