Ignore:
Timestamp:
2000-03-31T15:04:32+12:00 (24 years ago)
Author:
nzdl
Message:

tidied up some of the browsing code - replaced DocumentImages,
DocumentTitles and DocumentHeading with DocumentIcon

File:
1 edited

Legend:

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

    r979 r1048  
    2929/*
    3030   $Log$
     31   Revision 1.40  2000/03/31 03:04:30  nzdl
     32   tidied up some of the browsing code - replaced DocumentImages,
     33   DocumentTitles and DocumentHeading with DocumentIcon
     34
    3135   Revision 1.39  2000/02/25 02:28:43  sjboddie
    3236   caught up with assoc directory changes for displaying cover images
     
    258262
    259263  format_t *formatlistptr = new format_t();
    260   parse_formatstring (formatinfo.DocumentHeading, formatlistptr, metadata, getParents);
     264  parse_formatstring (formatinfo.DocumentIcon, formatlistptr, metadata, getParents);
    261265
    262266  if (!get_info (args["d"], args["c"], metadata, getParents, collectproto, response, logout))
     
    665669  // if we're inside a book
    666670  if ((!fulltoc) && (!args["d"].empty())) {
    667     textout << "<p><table cellpadding=0 cellspacing=0><tr>\n";
    668     textout << "<td valign=top";
     671    textout << outconvert << disp
     672        << "<p><center><table width=_pagewidth_><tr>\n"
     673        << "<td valign=top";
    669674    if (formatinfo.DocumentContents) textout << " width=200>\n";
    670675    else textout << " width=100%>\n";
    671     if (formatinfo.DocumentImages)
     676    if (formatinfo.DocumentIcon == "true")
    672677      output_cover_image (args, collectproto, disp, outconvert, textout, logout);
    673     else if (formatinfo.DocumentTitles)
     678    else if (formatinfo.DocumentIcon != "false")
    674679      output_titles (args, collectproto, formatinfo, disp, outconvert, textout, logout);
    675680    output_controls (args, formatinfo.DocumentButtons, collectproto, disp,
     
    693698  }
    694699
    695   if (havecontrols) textout << "</td></tr></table>\n";
    696 }
    697 
    698 
    699 
     700  if (havecontrols) textout << "</td></tr></table></center>\n";
     701}
     702
     703
     704
Note: See TracChangeset for help on using the changeset viewer.