Changeset 875


Ignore:
Timestamp:
2000-01-27T09:11:04+13:00 (22 years ago)
Author:
sjboddie
Message:

added some collection specific help text

File:
1 edited

Legend:

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

    r867 r875  
    2828/*
    2929   $Log$
     30   Revision 1.25  2000/01/26 20:11:04  sjboddie
     31   added some collection specific help text
     32
    3033   Revision 1.24  2000/01/25 22:31:09  sjboddie
    3134   more hacky changes to get preferences to be a bit smarter
     
    292295  // _numbrowseoptions_    the number of browsing options
    293296
     297  // _topicreadingdocs_    this section of the help text differs depending on what type of
     298  // _textreadingdocs_     collection it is (e.g. html collection, bibliographic collection etc.)
     299  // _texthelpreadingdocs_
     300
    294301 
    295302  text_t &arg_p = args["p"];
     
    435442    else disp.setmacro ("textbrowseoptions", "help", longtext);
    436443
     444    if (arg_p == "help") {
     445
     446      // _topicreadingdocs_  _textreadingdocs_  _texthelpreadingdocs_
     447         
     448      // if HTML collection there's no how to read document text
     449      text_tmap::const_iterator it = cinfo.format.find ("HelpNoDocs");
     450      if ((it != cinfo.format.end()) && ((*it).second == "true")) {
     451    disp.setmacro ("topicreadingdocs", "help", "");
     452    disp.setmacro ("texthelpreadingdocs", "help", "");
     453      }
     454      it = cinfo.format.find ("HelpBibDocs");
     455      if ((it != cinfo.format.end()) && ((*it).second == "true")) {
     456    disp.setmacro ("texthelpreadingdocs", "help", "_bibtexthelpreadingdocs_");
     457    disp.setmacro ("textreadingdocs", "help", "_bibtextreadingdocs_");
     458      }
     459      it = cinfo.format.find ("HelpBookDocs");
     460      if ((it != cinfo.format.end()) && ((*it).second == "true")) {
     461    disp.setmacro ("texthelpreadingdocs", "help", "_booktexthelpreadingdocs_");
     462    disp.setmacro ("textreadingdocs", "help", "_booktextreadingdocs_");
     463      }
     464
     465    }
    437466    if (arg_p == "about") {
    438467
Note: See TracChangeset for help on using the changeset viewer.