Ignore:
Timestamp:
1999-10-31T11:16:37+13:00 (25 years ago)
Author:
sjboddie
Message:

added a collection argument

File:
1 edited

Legend:

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

    r727 r747  
    2828/*
    2929   $Log$
     30   Revision 1.4  1999/10/30 22:14:44  sjboddie
     31   added a collection argument
     32
    3033   Revision 1.3  1999/10/19 08:40:13  sjboddie
    3134   fixed some stupid compiler warnings on windows
     
    6770
    6871int vlistbrowserclass::output_section_group (ResultDocInfo_t &section, cgiargsclass &args,
    69                          int colnumber, format_t *formatlistptr,
     72                         const text_t collection, int colnumber, format_t *formatlistptr,
    7073                         bool use_table, text_tset &/*metadata*/, bool &/*getParents*/,
    7174                         recptproto * /*collectproto*/, displayclass &disp,
     
    7376
    7477  text_t link, icon;
    75   get_link_icon (section, args, link, icon);
     78
     79  text_t collink = collection;
     80  if (!collink.empty()) collink = "&c=" + collink;
     81
     82  get_link_icon (section, args, collink, link, icon);
    7683  bool highlight = false;
    7784  if (!args["d"].empty()) {
     
    101108
    102109int vlistbrowserclass::output_section_group (FilterResponse_t &sections, cgiargsclass &args,
    103                          int colnumber, format_t *formatlistptr,
     110                         const text_t collection, int colnumber, format_t *formatlistptr,
    104111                         bool use_table, text_tset &/*metadata*/, bool &/*getParents*/,
    105112                         recptproto * /*collectproto*/, displayclass &disp,
     
    109116  text_t &arg_d = args["d"];
    110117  text_t &arg_cl = args["cl"];
     118
     119  text_t collink = collection;
     120  if (!collink.empty()) collink = "&c=" + collink;
    111121
    112122  if (colnumber > 0) {
     
    128138  while (thissection != endsection) {
    129139
    130     get_link_icon (*thissection, args, link, icon);
     140    get_link_icon (*thissection, args, collink, link, icon);
    131141    bool highlight = false;
    132142    if (!arg_d.empty()) {
     
    153163// the given section and what it should link to.
    154164void vlistbrowserclass::get_link_icon (ResultDocInfo_t &section, cgiargsclass &args,
    155                        text_t &link, text_t &icon) {
    156 
    157   link = "<a href=\"_httpdocument_";
     165                       const text_t &collink, text_t &link, text_t &icon) {
     166
     167  link = "<a href=\"_httpdocument_" + collink;
    158168  icon = "_document:icontext_";
    159169  int haschildren = section.metadata["haschildren"].values[0].getint();
Note: See TracChangeset for help on using the changeset viewer.