Changeset 1254


Ignore:
Timestamp:
2000-06-29T14:47:21+12:00 (24 years ago)
Author:
sjboddie
Message:

added browser info (i.e VList, HList etc.) to status pages

Location:
trunk/gsdl
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/status.dm

    r1129 r1254  
    7272<a href="_gwcgi_?e=_compressedoptions_&a=status&sp=argumentinfo" target=infoframe>_textarguments_</a><br>
    7373<a href="_gwcgi_?e=_compressedoptions_&a=status&sp=actioninfo" target=infoframe>_textactions_</a><br>
     74<a href="_gwcgi_?e=_compressedoptions_&a=status&sp=browserinfo" target=infoframe>_textbrowsers_</a><br>
    7475<a href="_gwcgi_?e=_compressedoptions_&a=status&sp=protocolinfo" target=infoframe>_textprotocols_</a>
    7576
     
    9697_textarguments_ {arguments}
    9798_textactions_ {actions}
     99_textbrowsers_ {browsers}
    98100_textprotocols_ {protocols}
    99101
  • trunk/gsdl/src/recpt/browserclass.cpp

    r765 r1254  
    2828/*
    2929   $Log$
     30   Revision 1.6  2000/06/29 02:47:19  sjboddie
     31   added browser info (i.e VList, HList etc.) to status pages
     32
    3033   Revision 1.5  1999/11/01 22:04:11  sjboddie
    3134   just a few small changes (that means I can't remember ;)
     
    8184
    8285text_t browserclass::get_default_formatstring () {
    83   return "<td>[link][icon][/link]</td><td>[highlight]{Or}{[Title],Untitled}[/highlight]</td>";
     86  return "";
    8487}
    8588
  • trunk/gsdl/src/recpt/pagedbrowserclass.cpp

    r1048 r1254  
    2828/*
    2929   $Log$
     30   Revision 1.10  2000/06/29 02:47:20  sjboddie
     31   added browser info (i.e VList, HList etc.) to status pages
     32
    3033   Revision 1.9  2000/03/31 03:04:32  nzdl
    3134   tidied up some of the browsing code - replaced DocumentImages,
     
    7780void pagedbrowserclass::load_metadata_defaults (text_tset &metadata) {
    7881  metadata.insert ("Title");
    79 }
    80 
    81 text_t pagedbrowserclass::get_default_formatstring () {
    82   return "";
    8382}
    8483
  • trunk/gsdl/src/recpt/pagedbrowserclass.h

    r928 r1254  
    4545  void load_metadata_defaults (text_tset &metadata);
    4646
    47   text_t get_default_formatstring ();
    48 
    4947  virtual void processOID (cgiargsclass &args, recptproto *collectproto,
    5048               ostream &logout);
  • trunk/gsdl/src/recpt/statusaction.cpp

    r1253 r1254  
    2828/*
    2929   $Log$
     30   Revision 1.29  2000/06/29 02:47:21  sjboddie
     31   added browser info (i.e VList, HList etc.) to status pages
     32
    3033   Revision 1.28  2000/06/29 00:22:59  sjboddie
    3134   added new numsections field to collection info and made the statusaction
     
    126129
    127130 */
    128 
    129131
    130132#include "statusaction.h"
     
    335337  }
    336338 
     339  // browsers
     340  browsermapclass *browsers = recpt->get_browsermap_ptr();
     341  if (browsers != NULL) {
     342    textout << outconvert << "<tr valign=top><th>browsers</th><td>";
     343   
     344    browserptrmap::iterator browsershere = browsers->begin ();
     345    browserptrmap::iterator browsersend = browsers->end ();
     346    bool browsersfirst = true;
     347    while (browsershere != browsersend) {
     348      if (!browsersfirst) textout << outconvert << ", ";
     349      browsersfirst = false;
     350      assert ((*browsershere).second.b != NULL);
     351      if ((*browsershere).second.b != NULL) {
     352    textout << outconvert << "\"" << (*browsershere).second.b->get_browser_name() << "\"";
     353      }
     354      browsershere++;
     355    }
     356   
     357    textout << outconvert << "</td></tr>\n";
     358  }
     359
    337360  // protocols
    338361  recptprotolistclass *protocols = recpt->get_recptprotolist_ptr ();
     
    472495      }
    473496      actionshere++;
     497    }
     498  }
     499 
     500  textout << outconvert << disp << "</table>\n_status:infofooter_\n";
     501}
     502
     503void statusaction::output_browserinfo (cgiargsclass &/*args*/, displayclass &disp,
     504                       outconvertclass &outconvert,
     505                       ostream &textout, ostream &/*logout*/) {
     506  if (recpt == NULL) return;
     507  browsermapclass *browsers = recpt->get_browsermap_ptr();
     508
     509  textout << outconvert << disp << "_status:infoheader_(Browser Information)\n";
     510  textout << outconvert
     511      << "<h2>Browser information</h2>\n"
     512      << "<table>";
     513
     514  // browser information
     515  if (browsers != NULL) {
     516    textout << outconvert
     517        << "<tr><th>browser name</th><th>default formatstring</th></tr>\n";
     518   
     519    browserptrmap::iterator browsershere = browsers->begin ();
     520    browserptrmap::iterator browsersend = browsers->end ();
     521    while (browsershere != browsersend) {
     522      assert ((*browsershere).second.b != NULL);
     523      if ((*browsershere).second.b != NULL) {
     524    textout << outconvert
     525        << "<tr><td>" << (*browsershere).second.b->get_browser_name()
     526        << "</td><td>" << html_safe ((*browsershere).second.b->get_default_formatstring())
     527        << "</td></tr>\n";
     528      }
     529      browsershere++;
    474530    }
    475531  }
     
    9951051  else if (arg_sp == "argumentinfo") output_argumentinfo (args, disp, outconvert, textout, logout);
    9961052  else if (arg_sp == "actioninfo") output_actioninfo (args, disp, outconvert, textout, logout);
     1053  else if (arg_sp == "browserinfo") output_browserinfo (args, disp, outconvert, textout, logout);
    9971054  else if (arg_sp == "protocolinfo") output_protocolinfo (args, disp, outconvert, textout, logout);
    9981055  else if (arg_sp == "collectioninfo") output_collectioninfo (args, disp, outconvert, textout, logout);
  • trunk/gsdl/src/recpt/statusaction.h

    r1129 r1254  
    6565              ostream &textout, ostream &logout);
    6666
     67  void output_browserinfo (cgiargsclass &args, displayclass &disp,
     68               outconvertclass &outconvert,
     69               ostream &textout, ostream &logout);
     70
    6771  void output_protocolinfo (cgiargsclass &args, displayclass &disp,
    6872                outconvertclass &outconvert,
Note: See TracChangeset for help on using the changeset viewer.