Changeset 5225 for trunk/gsdl/src/recpt/pageaction.cpp
- Timestamp:
- 2003-08-20T15:54:46+12:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pageaction.cpp
r4905 r5225 842 842 } else if (arg_p == "about" || arg_p == "help") { 843 843 if (collectproto == NULL) return; 844 845 comerror_t err; 846 bool has_search_button = true; 847 collectproto->is_searchable(args["c"], has_search_button, err, logout); 848 if (err != noError) has_search_button = true; 844 849 845 850 // _textbrowseoptions_ and _numbrowseoptions_ … … 851 856 get_children ("", args["c"], metadata, getParents, collectproto, response, logout); 852 857 853 disp.setmacro ("numbrowseoptions", "help", response.docInfo.size()+1); 858 int numbrowseoptions = response.docInfo.size(); 859 if (has_search_button) numbrowseoptions += 1; 860 disp.setmacro ("numbrowseoptions", "help", numbrowseoptions); 854 861 855 862 ResultDocInfo_tarray::iterator here = response.docInfo.begin(); 856 863 ResultDocInfo_tarray::iterator end = response.docInfo.end(); 857 864 858 // we're assuming that we've always got a search button 859 text_t shorttext = "<ul><li>_textSearchshort_\n"; 860 text_t longtext = "_textSearchlong_"; 865 text_t shorttext; 866 text_t longtext; 867 if (has_search_button) { 868 shorttext = "<ul><li>_textSearchshort_\n"; 869 longtext = "_textSearchlong_"; 870 } 861 871 862 872 while (here != end) {
Note:
See TracChangeset
for help on using the changeset viewer.