Changeset 11958


Ignore:
Timestamp:
2006-06-21T15:43:49+12:00 (18 years ago)
Author:
kjdon
Message:

don't have short and long help anymore, just one help message. some of the macro names have changed too.

File:
1 edited

Legend:

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

    r11356 r11958  
    897897    ResultDocInfo_tarray::iterator end = response.docInfo.end();
    898898
    899     text_t shorttext;
    900     text_t longtext;
     899    text_t helptext;
    901900    if (has_search_button) {
    902       shorttext = "<ul><li>_textSearchshort_\n";
    903       longtext = "_textSearchlong_";
     901      helptext = "<ul><li>_textSearchhelp_\n";
    904902    }
    905903
     
    931929      text_t title = (*here).metadata["Title"].values[0];
    932930   
    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+")";
    938944      } else {
    939     shorttext += "<li>_help:text" + title + "short_";
    940     longtext += "_help:text" + title + "long_";
     945    helptext += "<li>_help:text" + title + "help_";
    941946      }
    942947
    943948      ++here;
    944949    }
    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);
    948952
    949953    if (arg_p == "help") {
Note: See TracChangeset for help on using the changeset viewer.