DynaWeb allows you to modify the layout of the major screens of the server by editing HTML files called template files. The sections in this chapter are
The template files and the DynaWeb pages whose layout they control are:
| err_access.html, err_assert.html err_badindex.html,err_badscript.html, err_badtdir.html,err_bus.html, err_copen.html, err_cread.html, err_fread.html, err_malloc.html, err_nobook.html, err_nocoll.html, err_nofull.html, err_noopen.html, err_notoc.html, err_pointer.html, err_segv.html, err_timer.html, err_unknown.html |
| |
| http400.html, http401.html, http402.html, http403.html, http404.html, http405.html, http406.html, http407.html, http408.html, http500.html, http501.html, http502.html, http503.html, http504.html |
| |
| tmpl_booklist.html |
| |
| tmpl_booktoc.html |
| |
| tmpl_collectionlist.html |
| |
| tmpl_directorylist.html |
| |
| tmpl_querylist.html |
| |
| tmpl_queryform.html |
| |
| tmpl_stylesform.html |
|
All template files are located in the directory /usr/lib/Insight/dweb/servroot/C.
By using variables in template files, DynaWeb server pages can contain text that is customized. This customized text can include the hostname of the server, the e-mail address of the server administrator, information about collections, results of searches, and other types of information. Table 4-1 lists the variables that can be used in each of the template files.
Table 4-1. Variables in Template Files
Template File | Variables |
|---|---|
confirm.html | $DWEB_ADMINISTRATOR |
err_*.html | $DWEB_ADMINISTRATOR |
http*.html | $DWEB_ADMINISTRATOR |
tmpl_booklist.html | $DWEB_ADMINISTRATOR |
tmpl_booktoc.html | $DWEB_ADMINISTRATOR |
tmpl_collectionlist.html | $DWEB_ADMINISTRATOR |
tmpl_directorylist.html | $DWEB_ADMINISTRATOR |
tmpl_queryform.html | $DWEB_ADMINISTRATOR |
tmpl_querylist.html | $DWEB_ADMINISTRATOR |
tmpl_stylesform.html | $DWEB_ADMINISTRATOR |
The values of the variables are
| $DWEB_ADMINISTRATOR |
| |||
| $DWEB_BODYATTRIBUTES |
| |||
| $DWEB_BOOKALIAS |
| |||
| $DWEB_BOOKPATH |
This reference to foo.gif isn't allowed, because foo.gif isn't in a subdirectory of $DWEB_BOOKPATH:
| |||
| $DWEB_BUTTONBAR |
| |||
| $DWEB_COLLECTIONALIAS |
| |||
| $DWEB_COLLECTIONPATH |
| |||
| $DWEB_DIRECTORY |
| |||
| $DWEB_HITS |
| |||
| $DWEB_HOST |
| |||
| $DWEB_LISTING |
| |||
| $DWEB_ORIGINAL_URL |
| |||
| $DWEB_PORT |
| |||
| $DWEB_QUERY |
In tmpl_queryform.html, this is the actual query from the *.qrs file. | |||
| $DWEB_REQUEST_SIZE |
| |||
| $DWEB_SEARCHHITLINE |
| |||
| $DWEB_TEXTSTYLES |
| |||
| $DWEB_TITLE |
In tmpl_queryform.html this is the descriptive name of the query, from the *.qrs file. | |||
| $DWEB_TOCSTYLES |
| |||
| $DWEB_TRANSFORMED_URL |
| |||
| $DWEB_URL | In tmpl_booklist.html, tmpl_booktoc.html, and tmpl_collectionlist.html, $DWEB_URL is replaced by a canonical URL for the page that is suitable for use in a <BASE> tag. In tmpl_queryform.html, $DWEB_URL is replaced by the URL for the form's ACTION attribute. In tmpl_stylesform.html, $DWEB_URL is replaced by the URL containing the specification for the new style sheet. |