Changeset 747 for trunk/gsdl


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

added a collection argument

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

Legend:

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

    r730 r747  
    2828/*
    2929   $Log$
     30   Revision 1.4  1999/10/30 22:15:23  sjboddie
     31   added a collection argument
     32
    3033   Revision 1.3  1999/10/20 03:54:21  sjboddie
    3134   problem with expanded contents
     
    9699
    97100int hlistbrowserclass::output_section_group (ResultDocInfo_t &section, cgiargsclass &args,
    98                          int colnumber, format_t *formatlistptr,
     101                         const text_t /*collection*/, int colnumber, format_t *formatlistptr,
    99102                         bool use_table, text_tset &metadata, bool &getParents,
    100103                         recptproto *collectproto, displayclass &disp,
  • trunk/gsdl/src/recpt/hlistbrowserclass.h

    r668 r747  
    4848
    4949  int output_section_group (ResultDocInfo_t &section, cgiargsclass &args,
    50                 int colnumber, format_t *formatlistptr,
     50                const text_t collection, int colnumber, format_t *formatlistptr,
    5151                bool use_table, text_tset &metadata, bool &getParents,
    5252                recptproto *collectproto, displayclass &disp,
  • trunk/gsdl/src/recpt/pagedbrowserclass.cpp

    r727 r747  
    2828/*
    2929   $Log$
     30   Revision 1.3  1999/10/30 22:16:37  sjboddie
     31   added a collection argument
     32
    3033   Revision 1.2  1999/10/19 08:40:11  sjboddie
    3134   fixed some stupid compiler warnings on windows
     
    9194
    9295int pagedbrowserclass::output_section_group (ResultDocInfo_t &section, cgiargsclass &args,
    93                          int /*colnumber*/, format_t * /*formatlistptr*/,
     96                         const text_t /*collection*/, int /*colnumber*/, format_t * /*formatlistptr*/,
    9497                         bool /*use_table*/, text_tset &/*metadata*/, bool &/*getParents*/,
    9598                         recptproto * /*collectproto*/, displayclass &disp,
     
    117120
    118121int pagedbrowserclass::output_section_group (FilterResponse_t &sections, cgiargsclass &args,
    119                          int /*colnumber*/, format_t * /*formatlistptr*/,
     122                         const text_t /*collection*/, int /*colnumber*/, format_t * /*formatlistptr*/,
    120123                         bool /*use_table*/, text_tset &/*metadata*/, bool &/*getParents*/,
    121124                         recptproto * /*collectproto*/, displayclass &disp,
  • trunk/gsdl/src/recpt/pagedbrowserclass.h

    r668 r747  
    5151
    5252  int output_section_group (ResultDocInfo_t &section, cgiargsclass &args,
    53                 int colnumber, format_t *formatlistptr,
     53                const text_t collection, int colnumber, format_t *formatlistptr,
    5454                bool use_table, text_tset &metadata, bool &getParents,
    5555                recptproto *collectproto, displayclass &disp,
     
    5757
    5858  int output_section_group (FilterResponse_t &sections, cgiargsclass &args,
    59                 int colnumber, format_t *formatlistptr,
     59                const text_t collection, int colnumber, format_t *formatlistptr,
    6060                bool use_table, text_tset &metadata, bool &getParents,
    6161                recptproto *collectproto, displayclass &disp,
  • 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();
  • trunk/gsdl/src/recpt/vlistbrowserclass.h

    r668 r747  
    4646
    4747  int output_section_group (ResultDocInfo_t &section, cgiargsclass &args,
    48                 int colnumber, format_t *formatlistptr,
     48                const text_t collection, int colnumber, format_t *formatlistptr,
    4949                bool use_table, text_tset &metadata, bool &getParents,
    5050                recptproto *collectproto, displayclass &disp,
     
    5252
    5353  int output_section_group (FilterResponse_t &sections, cgiargsclass &args,
    54                 int colnumber, format_t *formatlistptr,
     54                const text_t collection, int colnumber, format_t *formatlistptr,
    5555                bool use_table, text_tset &metadata, bool &getParents,
    5656                recptproto *collectproto, displayclass &disp,
     
    6060
    6161  void get_link_icon (ResultDocInfo_t &section, cgiargsclass &args,
    62               text_t &link, text_t &icon);
     62              const text_t &collink, text_t &link, text_t &icon);
    6363};
    6464
Note: See TracChangeset for help on using the changeset viewer.