Changeset 11958
- Timestamp:
- 2006-06-21T15:43:49+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/src/recpt/pageaction.cpp
r11356 r11958 897 897 ResultDocInfo_tarray::iterator end = response.docInfo.end(); 898 898 899 text_t shorttext; 900 text_t longtext; 899 text_t helptext; 901 900 if (has_search_button) { 902 shorttext = "<ul><li>_textSearchshort_\n"; 903 longtext = "_textSearchlong_"; 901 helptext = "<ul><li>_textSearchhelp_\n"; 904 902 } 905 903 … … 931 929 text_t title = (*here).metadata["Title"].values[0]; 932 930 933 text_t stext, ltext; 934 disp.expandstring ("help", "_text" + title + "short_", stext); 935 if (stext == ("_text" + title + "short_")) { 936 shorttext += "<li>_help:textdefaultshorttext_"; 937 longtext += "_help:textdefaultlongtext_"; 931 text_t stext; 932 disp.expandstring ("help", "_text" + title + "help_", stext); 933 if (stext == ("_text" + title + "help_")) { 934 text_t ltext, ttext; 935 disp.expandstring("Global", "_label"+title+"_", ltext); 936 if (ltext == ("_label"+title+"_")) { 937 ltext = title; 938 } 939 disp.expandstring("Global", "_text"+title+"_", ttext); 940 if (ttext == ("_text"+title+"_")) { 941 ttext = title; 942 } 943 helptext += "<li>_help:textdefaulthelp_("+ttext+","+ltext+")"; 938 944 } else { 939 shorttext += "<li>_help:text" + title + "short_"; 940 longtext += "_help:text" + title + "long_"; 945 helptext += "<li>_help:text" + title + "help_"; 941 946 } 942 947 943 948 ++here; 944 949 } 945 shorttext += "</ul>\n"; 946 if (response.docInfo.size() > 1) disp.setmacro ("textbrowseoptions", "help", shorttext + longtext); 947 else disp.setmacro ("textbrowseoptions", "help", longtext); 950 helptext += "</ul>\n"; 951 disp.setmacro ("textbrowseoptions", "help", helptext); 948 952 949 953 if (arg_p == "help") {
Note:
See TracChangeset
for help on using the changeset viewer.