Changeset 730 for trunk/gsdl


Ignore:
Timestamp:
1999-10-20T16:54:21+13:00 (25 years ago)
Author:
sjboddie
Message:

problem with expanded contents

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

Legend:

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

    r728 r730  
    2929/*
    3030   $Log$
     31   Revision 1.31  1999/10/20 03:54:20  sjboddie
     32   problem with expanded contents
     33
    3134   Revision 1.30  1999/10/19 21:36:59  sjboddie
    3235   fixed bug in DocumentContents
     
    289292  int haschildren = section.metadata["haschildren"].values[0].getint();
    290293  const text_t &doctype = section.metadata["doctype"].values[0];
    291   text_t classifytype = section.metadata["classifytype"].values[0];
     294  text_t classifytype = section.metadata["childtype"].values[0];
    292295  // HLists are displayed as VLists when contents are expanded,
    293296  // Paged documents are displayed as HLists
     
    383386
    384387  // HLists are displayed as VLists when contents are expanded,
    385   // Books are displayed as HLists
     388  // Paged documents are displayed as HLists
    386389  if (classifytype == "HList") classifytype = "VList";
    387   if (classifytype == "Book") classifytype = "HList";
     390  if (classifytype == "Paged") classifytype = "HList";
    388391
    389392  metadata.erase (metadata.begin(), metadata.end());
    390393         
    391394  // metadata elements needed by recurse_contents
    392   metadata.insert ("classifytype");
     395  metadata.insert ("childtype");
    393396  metadata.insert ("doctype");
    394397  metadata.insert ("haschildren");
  • trunk/gsdl/src/recpt/hlistbrowserclass.cpp

    r668 r730  
    2828/*
    2929   $Log$
     30   Revision 1.3  1999/10/20 03:54:21  sjboddie
     31   problem with expanded contents
     32
    3033   Revision 1.2  1999/10/14 22:59:34  sjboddie
    3134   finished off browser classes
     
    98101                         outconvertclass &outconvert, ostream &textout, ostream &logout) {
    99102
     103  // expanded contents are going to cause some nasty recursions
     104  // so we'll only continue if being passed the current section
     105  if ((args["gc"] == 1) && (section.OID != args["d"])) return 0;
     106
    100107  // get all siblings
    101108  FilterResponse_t response;
Note: See TracChangeset for help on using the changeset viewer.