Ignore:
Timestamp:
1999-09-03T22:02:31+12:00 (25 years ago)
Author:
rjmcnab
Message:

Made the page parameters configurable. Now the page parameters must
correspond to cgi arguments in name and value (ie language=zh should now
be l=zh) which makes things more consistent anyway. Removed a couple of
specialised NZDL page parameters.

Moved the combining of the cgi arguments so that the receptionist does
all the configuration now.

Made the macro precedence configurable.

Made cgi arguments totally configurable. Now any piece of information about
a cgi argument can be configured meaning that cgi arguments can be declared
from the configuration file.

Removed the argdefault configuration argument. This should now be done
using cgiarg.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/receptionist.h

    r526 r530  
    2222#include "converter.h"
    2323
     24// the MACROPRECEDENCE macro is used as a default. override
     25// it using something like:
     26//
     27// macroprecedence c,l
     28//
     29// in your configuration file
    2430#ifndef MACROPRECEDENCE
    25 #define MACROPRECEDENCE "style,collection,queryversion,version,language"
     31#define MACROPRECEDENCE "c,l"
    2632#endif
    2733
     
    3844  bool usecookies;  // true if we want cookies set
    3945  bool logcgiargs;  // true if we want to log cgi arguments
     46
     47  text_tmap pageparams;
     48  text_t macroprecedence;
    4049 
    4150  void clear ();
     
    7685  // code should destroy the action after the recptionist has been
    7786  // destroyed.
    78   void add_action (action *theaction) {actions.addaction(theaction);}
     87  void add_action (action *theaction);
    7988  actionmapclass *get_actionmap_ptr () {return &actions;}
    8089
Note: See TracChangeset for help on using the changeset viewer.