Changeset 668
- Timestamp:
- 1999-10-15T11:59:35+13:00 (25 years ago)
- Location:
- trunk/gsdl/src/recpt
- Files:
-
- 2 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/browserclass.cpp
r649 r668 28 28 /* 29 29 $Log$ 30 Revision 1.2 1999/10/14 22:59:33 sjboddie 31 finished off browser classes 32 30 33 Revision 1.1 1999/10/10 08:14:03 sjboddie 31 34 - metadata now returns mp rather than array … … 62 65 } 63 66 64 void browserclass::processOID (cgiargsclass &/*args*/ ) {67 void browserclass::processOID (cgiargsclass &/*args*/, recptproto */*collectproto*/, ostream &/*logout*/) { 65 68 } 66 69 67 void browserclass::load_metadata_defaults (text_tset & metadata) {70 void browserclass::load_metadata_defaults (text_tset &/*metadata*/) { 68 71 } 69 72 70 73 text_t browserclass::get_default_formatstring () { 71 return "<td>[link][icon][/link]</td><td> {Or}{[Title],Untitled}</td>";74 return "<td>[link][icon][/link]</td><td>[highlight]{Or}{[Title],Untitled}[/highlight]</td>"; 72 75 } 73 76 74 77 int browserclass::output_section_group (ResultDocInfo_t &/*section*/, cgiargsclass &/*args*/, 75 const int &/*colnumber*/, format_t */*formatlistptr*/, 76 const bool &/*use_table*/, displayclass &/*disp*/, 77 outconvertclass &/*outconvert*/, ostream &/*textout*/, 78 ostream &/*logout*/) { 78 int /*colnumber*/, format_t */*formatlistptr*/, 79 bool /*use_table*/, text_tset &/*metadata*/, bool &/*getParents*/, 80 recptproto */*collectproto*/, displayclass &/*disp*/, 81 outconvertclass &/*outconvert*/, ostream &/*textout*/, ostream &/*logout*/) { 82 return 0; 83 } 84 85 int browserclass::output_section_group (FilterResponse_t &/*sections*/, cgiargsclass &/*args*/, 86 int /*colnumber*/, format_t */*formatlistptr*/, 87 bool /*use_table*/, text_tset &/*metadata*/, bool &/*getParents*/, 88 recptproto */*collectproto*/, displayclass &/*disp*/, 89 outconvertclass &/*outconvert*/, ostream &/*textout*/, ostream &/*logout*/) { 79 90 return 0; 80 91 } -
trunk/gsdl/src/recpt/browserclass.h
r649 r668 63 63 virtual text_t get_browser_name (); 64 64 65 virtual void processOID (cgiargsclass &args );65 virtual void processOID (cgiargsclass &args, recptproto *collectproto, ostream &logout); 66 66 67 67 // load_metadata_defaults should be called before … … 77 77 // next section group 78 78 virtual int output_section_group (ResultDocInfo_t §ion, cgiargsclass &args, 79 const int &colnumber, format_t *formatlistptr, 80 const bool &use_table, displayclass &disp, 79 int colnumber, format_t *formatlistptr, 80 bool use_table, text_tset &metadata, bool &getParents, 81 recptproto *collectproto, displayclass &disp, 82 outconvertclass &outconvert, ostream &textout, ostream &logout); 83 84 virtual int output_section_group (FilterResponse_t §ions, cgiargsclass &args, 85 int colnumber, format_t *formatlistptr, 86 bool use_table, text_tset &metadata, bool &getParents, 87 recptproto *collectproto, displayclass &disp, 81 88 outconvertclass &outconvert, ostream &textout, 82 89 ostream &logout); -
trunk/gsdl/src/recpt/datelistbrowserclass.cpp
r649 r668 28 28 /* 29 29 $Log$ 30 Revision 1.2 1999/10/14 22:59:33 sjboddie 31 finished off browser classes 32 30 33 Revision 1.1 1999/10/10 08:14:05 sjboddie 31 34 - metadata now returns mp rather than array … … 46 49 } 47 50 48 // configure should be called once for each configuration line49 // the default version does nothing50 void datelistbrowserclass::configure (const text_t &/*key*/, const text_tarray &/*cfgline*/) {51 }52 53 // init should be called after all the configuration is done but54 // before any other methods are called55 bool datelistbrowserclass::init (ostream &/*logout*/) {56 return true;57 }58 59 // returns the name that specifies the browserclass type60 51 text_t datelistbrowserclass::get_browser_name () { 61 52 return "DateList"; 62 53 } 63 54 55 void datelistbrowserclass::load_metadata_defaults (text_tset &metadata) { 56 metadata.insert ("Date"); 57 metadata.insert ("doctype"); 58 } 59 60 text_t datelistbrowserclass::get_default_formatstring () { 61 return "<td>[link][icon][/link]</td><td>[highlight]{Or}{[Title],Untitled}[/highlight]</td><td>[Date]</td>"; 62 } 63 64 65 int datelistbrowserclass::output_section_group (FilterResponse_t §ions, cgiargsclass &args, 66 int colnumber, format_t *formatlistptr, 67 bool use_table, text_tset &/*metadata*/, bool &/*getParents*/, 68 recptproto */*collectproto*/, displayclass &disp, 69 outconvertclass &outconvert, ostream &textout, ostream &/*logout*/) { 70 71 text_t lastyear = "0000"; 72 text_t lastmonth = "00"; 73 text_t tabbing, endtabbing; 74 75 if (use_table || colnumber > 0) { 76 textout << "<table><tr><td>"; 77 // get tab size 78 text_t tab; int itab; 79 disp.expandstring ("Global", "_tabwidth_", tab); 80 itab = tab.getint(); 81 if (colnumber > 0) 82 textout << "<img src=\"_httpimg_/space.gif\" width=" << (itab*colnumber) << ">"; 83 textout<< "</td><td>"; 84 } 85 86 textout << "<table>\n"; 87 88 ResultDocInfo_tarray::iterator thissection = sections.docInfo.begin(); 89 ResultDocInfo_tarray::iterator endsection = sections.docInfo.end(); 90 91 while (thissection != endsection) { 92 93 text_t &doctype = (*thissection).metadata["doctype"].values[0]; 94 text_t &date = (*thissection).metadata["Date"].values[0]; 95 96 // bail on this document if it has no date 97 if (date.empty()) continue; 98 99 text_t::const_iterator datebegin = date.begin(); 100 int datesize = date.size(); 101 102 if (datesize < 4) continue; 103 text_t thisyear = substr (datebegin, datebegin+4); 104 text_t thismonth = "00"; 105 if (datesize >= 6) 106 thismonth = substr (datebegin+4, datebegin+6); 107 108 text_t link = "<a href=\"_httpdocument_&cl="; 109 text_t icon = "_document:iconclosedbook_"; 110 111 if (doctype == "classify") { 112 icon = "_document:iconclosedbookshelf_"; 113 link += (*thissection).OID + "\">"; 114 } else link += args["cl"] + "&d=" + (*thissection).OID + "\">"; 115 116 textout << "<tr valign=top>"; 117 118 if (thisyear != lastyear) { 119 textout << outconvert << "<td><b>" << thisyear << "</b></td>"; 120 lastyear = thisyear; 121 } else 122 textout << "<td></td>"; 123 124 if (thismonth != lastmonth) { 125 textout << outconvert << disp << ("<td><b>_textmonth" + thismonth + "_</b></td>"); 126 lastmonth = thismonth; 127 } else 128 textout << "<td></td>"; 129 130 if (!use_table) textout << "<td>\n"; 131 132 textout << outconvert << disp 133 << get_formatted_string (*thissection, formatlistptr, link, icon) << "\n"; 134 135 if (!use_table) textout << "</td>"; 136 137 textout << "</tr>\n"; 138 139 thissection ++; 140 } 141 142 textout << "</table>\n"; 143 144 if (use_table || colnumber > 0) textout << "</td></tr></table>\n"; 145 return 1; 146 } 147 -
trunk/gsdl/src/recpt/datelistbrowserclass.h
r649 r668 39 39 virtual ~datelistbrowserclass (); 40 40 41 // configure should be called once for each configuration line 42 virtual void configure (const text_t &key, const text_tarray &cfgline); 41 text_t get_browser_name (); 43 42 44 // init should be called after all the configuration is done but 45 // before any other methods are called 46 virtual bool init (ostream &logout); 43 void load_metadata_defaults (text_tset &metadata); 47 44 48 // returns the name that specifies the browserclass type 49 virtual text_t get_browser_name (); 45 text_t get_default_formatstring (); 46 47 int output_section_group (FilterResponse_t §ions, cgiargsclass &args, 48 int colnumber, format_t *formatlistptr, 49 bool use_table, text_tset &metadata, bool &getParents, 50 recptproto *collectproto, displayclass &disp, 51 outconvertclass &outconvert, ostream &textout, ostream &logout); 50 52 }; 51 53 -
trunk/gsdl/src/recpt/hlistbrowserclass.cpp
r649 r668 28 28 /* 29 29 $Log$ 30 Revision 1.2 1999/10/14 22:59:34 sjboddie 31 finished off browser classes 32 30 33 Revision 1.1 1999/10/10 08:14:08 sjboddie 31 34 - metadata now returns mp rather than array … … 38 41 #include "hlistbrowserclass.h" 39 42 #include <assert.h> 40 43 #include "OIDtools.h" 41 44 42 45 hlistbrowserclass::hlistbrowserclass () { … … 46 49 } 47 50 48 // configure should be called once for each configuration line49 // the default version does nothing50 void hlistbrowserclass::configure (const text_t &/*key*/, const text_tarray &/*cfgline*/) {51 }52 53 // init should be called after all the configuration is done but54 // before any other methods are called55 bool hlistbrowserclass::init (ostream &/*logout*/) {56 return true;57 }58 59 51 // returns the name that specifies the browserclass type 60 52 text_t hlistbrowserclass::get_browser_name () { … … 62 54 } 63 55 56 text_t hlistbrowserclass::get_default_formatstring () { 57 return "[link][highlight][Title][/highlight][/link]"; 58 } 59 60 // need to change OID to it's child 61 void hlistbrowserclass::processOID (cgiargsclass &args, recptproto *collectproto, 62 ostream &logout) { 63 64 text_t OID = args["d"]; 65 bool is_classify = false; 66 if (OID.empty()) { 67 is_classify = true; 68 OID = args["cl"]; 69 } 70 71 FilterResponse_t response; 72 text_tset metadata; 73 metadata.insert ("childtype"); 74 text_t classifytype = "Invisible"; 75 text_t child_doctype; 76 77 text_tarray OIDs; 78 79 while (classifytype == "Invisible") { 80 OIDs.erase (OIDs.begin(), OIDs.end()); 81 82 OIDs.push_back (OID); 83 OIDs.push_back (OID + ".fc"); 84 85 get_info (OIDs, args["c"], metadata, false, collectproto, response, logout); 86 87 OID = response.docInfo[1].OID; 88 classifytype = response.docInfo[0].metadata["childtype"].values[0]; 89 } 90 if (is_classify) args["cl"] = OID; 91 else args["d"] = OID; 92 } 93 94 int hlistbrowserclass::output_section_group (ResultDocInfo_t §ion, cgiargsclass &args, 95 int colnumber, format_t *formatlistptr, 96 bool use_table, text_tset &metadata, bool &getParents, 97 recptproto *collectproto, displayclass &disp, 98 outconvertclass &outconvert, ostream &textout, ostream &logout) { 99 100 // get all siblings 101 FilterResponse_t response; 102 text_t &arg_d = args["d"]; 103 text_t &arg_cl = args["cl"]; 104 get_children (section.OID + ".pr", args["c"], metadata, getParents, 105 collectproto, response, logout); 106 107 108 if (use_table || colnumber > 0) { 109 textout << "<table><tr><td>"; 110 // get tab size 111 text_t tab; int itab; 112 disp.expandstring ("Global", "_tabwidth_", tab); 113 itab = tab.getint(); 114 if (colnumber > 0) textout << outconvert << disp 115 << "<img src=\"_httpimg_/space.gif\" width=" 116 << (itab*colnumber) << ">"; 117 textout << "</td>\n"; 118 } 119 120 textout << "<table><tr>\n"; 121 122 ResultDocInfo_tarray::iterator tsibling = response.docInfo.begin(); 123 ResultDocInfo_tarray::iterator esibling = response.docInfo.end(); 124 125 text_t icon, link; 126 while (tsibling != esibling) { 127 128 bool highlight = false; 129 textout << "<td>"; 130 131 if ((*tsibling).OID == section.OID) { 132 link.clear(); 133 highlight = true; 134 } else { 135 link = "<a href=\"_httpdocument_"; 136 if (!arg_d.empty()) 137 link += "&cl=" + arg_cl + "&d=" + (*tsibling).OID + "\">"; 138 else 139 link += "&cl=" + (*tsibling).OID + "\">"; 140 } 141 142 textout << outconvert << disp << get_formatted_string (*tsibling, formatlistptr, link, icon, highlight); 143 144 textout << "</td>\n"; 145 tsibling ++; 146 } 147 148 textout << "</tr></table>\n"; 149 if (use_table || colnumber > 0) textout << "</tr></table>\n"; 150 return 0; 151 } 152 -
trunk/gsdl/src/recpt/hlistbrowserclass.h
r649 r668 39 39 virtual ~hlistbrowserclass (); 40 40 41 // configure should be called once for each configuration line42 virtual void configure (const text_t &key, const text_tarray &cfgline);43 44 // init should be called after all the configuration is done but45 // before any other methods are called46 virtual bool init (ostream &logout);47 48 41 // returns the name that specifies the browserclass type 49 42 virtual text_t get_browser_name (); 43 44 text_t get_default_formatstring (); 45 46 void processOID (cgiargsclass &args, recptproto *collectproto, 47 ostream &logout); 48 49 int output_section_group (ResultDocInfo_t §ion, cgiargsclass &args, 50 int colnumber, format_t *formatlistptr, 51 bool use_table, text_tset &metadata, bool &getParents, 52 recptproto *collectproto, displayclass &disp, 53 outconvertclass &outconvert, ostream &textout, 54 ostream &logout); 55 50 56 }; 51 57 52 58 #endif 59 -
trunk/gsdl/src/recpt/invbrowserclass.cpp
r653 r668 28 28 /* 29 29 $Log$ 30 Revision 1.2 1999/10/14 22:59:34 sjboddie 31 finished off browser classes 32 30 33 Revision 1.1 1999/10/10 08:28:06 sjboddie 31 34 - metadata now returns map rather than array … … 45 48 } 46 49 47 48 49 // configure should be called once for each configuration line50 // the default version does nothing51 void invbrowserclass::configure (const text_t &/*key*/, const text_tarray &/*cfgline*/) {52 }53 54 // init should be called after all the configuration is done but55 // before any other methods are called56 bool invbrowserclass::init (ostream &/*logout*/) {57 return true;58 }59 60 50 // returns the name that specifies the browserclass type 61 51 text_t invbrowserclass::get_browser_name () { 62 52 return "Invisible"; 63 53 } 64 65 // this browser class does nothing by default - it should66 // be overridden for receptionists wanting to display67 // 'Invisible' classifications in some way68 int invbrowserclass::output_section_group (const ResultDocInfo_t &/*section*/, cgiargsclass &/*args*/,69 const int &/*colnumber*/, format_t */*formatlistptr*/,70 const bool &/*use_table*/, displayclass &/*disp*/,71 outconvertclass &/*outconvert*/, ostream &/*textout*/,72 ostream &/*logout*/) {73 return 0;74 } -
trunk/gsdl/src/recpt/invbrowserclass.h
r653 r668 36 36 37 37 public: 38 39 // this browser class does nothing by default - it should 40 // be overridden for receptionists wanting to display 41 // 'Invisible' classifications in some way 42 38 43 invbrowserclass (); 39 44 virtual ~invbrowserclass (); 40 41 // configure should be called once for each configuration line42 virtual void configure (const text_t &key, const text_tarray &cfgline);43 44 // init should be called after all the configuration is done but45 // before any other methods are called46 virtual bool init (ostream &logout);47 45 48 46 // returns the name that specifies the browserclass type 49 47 virtual text_t get_browser_name (); 50 48 51 int output_section_group (const ResultDocInfo_t §ion, cgiargsclass &args,52 const int &colnumber, format_t *formatlistptr,53 const bool &use_table, displayclass &disp,54 outconvertclass &outconvert, ostream &textout,55 ostream &logout);56 49 }; 57 50 -
trunk/gsdl/src/recpt/vlistbrowserclass.cpp
r649 r668 28 28 /* 29 29 $Log$ 30 Revision 1.2 1999/10/14 22:59:34 sjboddie 31 finished off browser classes 32 30 33 Revision 1.1 1999/10/10 08:14:11 sjboddie 31 34 - metadata now returns mp rather than array … … 46 49 } 47 50 48 49 50 // configure should be called once for each configuration line51 // the default version does nothing52 void vlistbrowserclass::configure (const text_t &/*key*/, const text_tarray &/*cfgline*/) {53 }54 55 // init should be called after all the configuration is done but56 // before any other methods are called57 bool vlistbrowserclass::init (ostream &/*logout*/) {58 return true;59 }60 61 51 // returns the name that specifies the browserclass type 62 52 text_t vlistbrowserclass::get_browser_name () { … … 64 54 } 65 55 66 void vlistbrowserclass::processOID (cgiargsclass &/*args*/) {67 }68 69 56 void vlistbrowserclass::load_metadata_defaults (text_tset &metadata) { 70 57 metadata.insert ("haschildren"); 71 58 metadata.insert ("doctype"); 72 metadata.insert ("classifytype"); 59 } 60 61 text_t vlistbrowserclass::get_default_formatstring () { 62 return "<td>[link][icon][/link]</td><td>[highlight]{Or}{[Title],Untitled}[/highlight]</td>"; 73 63 } 74 64 75 65 int vlistbrowserclass::output_section_group (ResultDocInfo_t §ion, cgiargsclass &args, 76 const int &colnumber, format_t *formatlistptr,77 const bool &use_table, displayclass &disp,78 outconvertclass &outconvert, ostream &textout,79 o stream &logout) {66 int colnumber, format_t *formatlistptr, 67 bool use_table, text_tset &/*metadata*/, bool &/*getParents*/, 68 recptproto */*collectproto*/, displayclass &disp, 69 outconvertclass &outconvert, ostream &textout, ostream &/*logout*/) { 80 70 81 71 text_t link, icon; 82 72 get_link_icon (section, args, link, icon); 83 84 output_section (section, colnumber, formatlistptr, use_table, 85 link, icon, disp, outconvert, textout, logout); 86 87 return 1; 88 } 89 90 void vlistbrowserclass::output_section (ResultDocInfo_t §ion, const int &colnumber, 91 format_t *formatlistptr, const bool &use_table, 92 const text_t &link, const text_t &icon, 93 displayclass &disp, outconvertclass &outconvert, 94 ostream &textout, ostream &logout) { 95 73 bool highlight = false; 74 if (!args["d"].empty()) { 75 if (args["d"] == section.OID) highlight = true; 76 } else 77 if (args["cl"] == section.OID) highlight = true; 78 79 96 80 if (use_table || colnumber > 0) { 97 textout << "<table><tr> <td>";81 textout << "<table><tr>"; 98 82 // get tab size 99 83 text_t tab; int itab; … … 101 85 itab = tab.getint(); 102 86 if (colnumber > 0) textout << outconvert << disp 103 << "< img src=\"_httpimg_/space.gif\" width="104 << (itab*colnumber) << "> ";105 textout << "</td>";106 } 107 108 textout << outconvert << disp << get_formatted_string (section, formatlistptr, link, icon);109 87 << "<td><img src=\"_httpimg_/space.gif\" width=" 88 << (itab*colnumber) << "></td>"; 89 } 90 91 textout << outconvert << disp << get_formatted_string (section, formatlistptr, 92 link, icon, highlight); 93 110 94 if (use_table || colnumber > 0) textout << "</tr></table>\n"; 95 96 return 1; 97 } 98 99 int vlistbrowserclass::output_section_group (FilterResponse_t §ions, cgiargsclass &args, 100 int colnumber, format_t *formatlistptr, 101 bool use_table, text_tset &/*metadata*/, bool &/*getParents*/, 102 recptproto */*collectproto*/, displayclass &disp, 103 outconvertclass &outconvert, ostream &textout, ostream &/*logout*/) { 104 105 text_t link, icon; 106 text_t &arg_d = args["d"]; 107 text_t &arg_cl = args["cl"]; 108 109 if (colnumber > 0) { 110 textout << "<table><tr>"; 111 // get tab size 112 text_t tab; int itab; 113 disp.expandstring ("Global", "_tabwidth_", tab); 114 itab = tab.getint(); 115 if (colnumber > 0) textout << outconvert << disp 116 << "<td><img src=\"_httpimg_/space.gif\" width=" 117 << (itab*colnumber) << "></td>"; 118 textout << "<td>"; 119 } 120 if (use_table) textout << "<table>\n"; 121 122 ResultDocInfo_tarray::iterator thissection = sections.docInfo.begin(); 123 ResultDocInfo_tarray::iterator endsection = sections.docInfo.end(); 124 125 while (thissection != endsection) { 126 127 get_link_icon (*thissection, args, link, icon); 128 bool highlight = false; 129 if (!arg_d.empty()) { 130 if (arg_d == (*thissection).OID) highlight = true; 131 } else 132 if (arg_cl == (*thissection).OID) highlight = true; 133 134 if (use_table || colnumber > 0) textout << "<tr>"; 135 textout << outconvert << disp << get_formatted_string (*thissection, formatlistptr, 136 link, icon, highlight); 137 if (use_table || colnumber > 0) textout << "</tr>"; 138 textout << "\n"; 139 thissection ++; 140 } 141 142 if (use_table) textout << "</table>\n"; 143 if (colnumber > 0) textout << "</table></td></tr></table>\n"; 144 145 return 1; 111 146 } 112 147 … … 119 154 link = "<a href=\"_httpdocument_"; 120 155 icon = "_document:icontext_"; 121 int haschildren = section.metadata["haschildren"].values.back().getint(); 122 const text_t doctype = section.metadata["doctype"].values.back(); 156 int haschildren = section.metadata["haschildren"].values[0].getint(); 157 const text_t doctype = section.metadata["doctype"].values[0]; 158 159 text_t &arg_d = args["d"]; 160 text_t &arg_cl = args["cl"]; 123 161 124 162 if (args["a"] == "q") { … … 128 166 link += "&cl=search&d=" + section.OID + "\">"; 129 167 130 } else if (!arg s["d"].empty()) {168 } else if (!arg_d.empty()) { 131 169 // document level 132 170 if (is_top(section.OID)) { 133 171 icon = "_document:iconopenbook_"; 134 if (arg s["cl"]== "search") link = "<a href=\"_httpquery_\">";135 else link += "&cl=" + arg s["cl"] + "&d=" + section.OID + ".pr\">";172 if (arg_cl == "search") link = "<a href=\"_httpquery_\">"; 173 else link += "&cl=" + arg_cl + "\">"; 136 174 137 175 } else if (haschildren == 1) { 138 if ((args["gc"] == "1") || (is_child_of (section.OID, args["d"]))) { 176 if ((args["gc"] == "1") || 177 (is_child_of (section.OID, arg_d)) || 178 (section.OID == arg_d)) { 139 179 icon = "_document:iconopenfolder_"; 140 link += "&cl=" + arg s["cl"]+ "&d=" + section.OID + ".pr\">";180 link += "&cl=" + arg_cl + "&d=" + section.OID + ".pr\">"; 141 181 } else { 142 182 icon = "_document:iconclosedfolder_"; 143 link += "&cl=" + arg s["cl"]+ "&d=" + section.OID + "\">";183 link += "&cl=" + arg_cl + "&d=" + section.OID + "\">"; 144 184 } 145 } else link += "&cl=" + arg s["cl"]+ "&d=" + section.OID + "\">";185 } else link += "&cl=" + arg_cl + "&d=" + section.OID + "\">"; 146 186 147 187 } else { … … 149 189 if (haschildren == 1) { 150 190 if (doctype == "classify") { 151 if ((args["gc"] == "1") || (is_child_of (section.OID, args["cl"]))) { 191 if ((args["gc"] == "1") || 192 (is_child_of (section.OID, arg_cl)) || 193 (section.OID == arg_cl)) { 152 194 icon = "_document:iconopenbookshelf_"; 153 195 link += "&cl=" + section.OID + ".pr\">"; … … 158 200 } else { 159 201 icon = "_document:iconclosedbook_"; 160 link += "&cl=" + arg s["cl"]+ "&d=" + section.OID + "\">";202 link += "&cl=" + arg_cl + "&d=" + section.OID + "\">"; 161 203 } 162 204 } else { 163 205 if (doctype == "classify") link = ""; 164 else link += "&cl=" + arg s["cl"]+ "&d=" + section.OID + "\">";206 else link += "&cl=" + arg_cl + "&d=" + section.OID + "\">"; 165 207 } 166 208 } -
trunk/gsdl/src/recpt/vlistbrowserclass.h
r649 r668 39 39 virtual ~vlistbrowserclass (); 40 40 41 // configure should be called once for each configuration line42 virtual void configure (const text_t &key, const text_tarray &cfgline);43 44 // init should be called after all the configuration is done but45 // before any other methods are called46 virtual bool init (ostream &logout);47 48 // returns the name that specifies the browserclass type49 41 virtual text_t get_browser_name (); 50 51 void processOID (cgiargsclass &/*args*/);52 42 53 43 void load_metadata_defaults (text_tset &metadata); 54 44 45 text_t get_default_formatstring (); 46 55 47 int output_section_group (ResultDocInfo_t §ion, cgiargsclass &args, 56 const int &colnumber, format_t *formatlistptr, 57 const bool &use_table, displayclass &disp, 58 outconvertclass &outconvert, ostream &textout, 59 ostream &logout); 48 int colnumber, format_t *formatlistptr, 49 bool use_table, text_tset &metadata, bool &getParents, 50 recptproto *collectproto, displayclass &disp, 51 outconvertclass &outconvert, ostream &textout, ostream &logout); 52 53 int output_section_group (FilterResponse_t §ions, cgiargsclass &args, 54 int colnumber, format_t *formatlistptr, 55 bool use_table, text_tset &metadata, bool &getParents, 56 recptproto *collectproto, displayclass &disp, 57 outconvertclass &outconvert, ostream &textout, ostream &logout); 60 58 61 59 protected: 62 void output_section (ResultDocInfo_t §ion, const int &colnumber,63 format_t *formatlistptr, const bool &use_table,64 const text_t &link, const text_t &icon,65 displayclass &disp, outconvertclass &outconvert,66 ostream &textout, ostream &logout);67 60 68 61 void get_link_icon (ResultDocInfo_t §ion, cgiargsclass &args,
Note:
See TracChangeset
for help on using the changeset viewer.