Show
Ignore:
Timestamp:
17.02.2000 15:35:48 (20 years ago)
Author:
sjboddie
Message:

tidied up a bit

Files:
1 modified

Legend:

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

    r928 r937  
    2828/* 
    2929   $Log$ 
     30   Revision 1.7  2000/02/17 02:35:48  sjboddie 
     31   tidied up a bit 
     32 
    3033   Revision 1.6  2000/02/15 22:53:51  kjm18 
    3134   search history stuff added. 
     
    7578// if the "gp" (go to page) argument is set we need to set 
    7679// the "d" argument to the corresponding page 
     80// also want to set "d" argument to first child if we're at 
     81// an 'Invisible' top level 
    7782void pagedbrowserclass::processOID (cgiargsclass &args, recptproto *collectproto, 
    7883                                    ostream &logout) { 
     
    101106  } else if (!arg_d.empty() && is_top(arg_d)) { // if top level doc, check if not invisible 
    102107    metadata.insert("thistype"); 
    103     if(get_info(arg_d, args["c"], metadata, getParents, collectproto, response, logout)) { 
     108    if (get_info(arg_d, args["c"], metadata, getParents, collectproto, response, logout)) { 
    104109      text_t type = response.docInfo[0].metadata["thistype"].values[0]; 
    105110      if (type=="Invisible") { // display first child 
    106         arg_d = arg_d + ".1"; 
     111        arg_d = arg_d + ".fc"; 
    107112      } 
    108113    }