Chapter 16, Using Search
435
Customizing the Search Interface
HTML Pattern Files
A good place to begin customizing the interface is by modifying the existing
pattern files. After you see how they work and you understand pattern
variables, you can create your own pattern files and change the configuration
files and other pattern files to point to them. In the default installation of
Netscape Enterprise Server, the pattern files are in this directory:
server_root
\plugins\search\ui\text
. (Make copies of your original
pattern files so you can restore them afterwards.)
There are pattern files for different kinds of collections: email, news, ASCII,
PDF, and HTML as well as one for the web publishing collection. (The web
publishing pattern file is a special case, using a great many collection-specific
attributes as variables in the
dblist.ini
file.) There are several general types
of pattern files, each of which has a particular use:
•
query.pat
displays the standard and advanced query pages.
•
tocstart.pat
displays the header across the top of the search results
page.
•
tocrec.pat
displays each document listed on the search results page.
•
tocend.pat
displays the footer across the bottom of the search results
page.
•
record.pat
displays a single highlighted document from the search
results page (for more information, see “Displaying a Highlighted
Document” on page 423).
•
descriptions.pat
displays the collection contents.
The pattern files contain HTML formatting instructions, which define how
elements look, and HTML search arguments and variables, which define the
text label or value that is displayed.
There are three kinds of pattern variables (discussed further in “Using Pattern
Variables” on page 439):
•
user defined, in the
userdefs.ini
file, with a
$$
prefix (see “User-
defined Pattern Variables” on page 440).
Содержание Netscape Enterprise Server
Страница 30: ...Contacting Technical Support 30 Netscape Enterprise Server Administrator s Guide ...
Страница 31: ...Part 1 Server Basics 31 1 Server Basics Introduction to Enterprise Server Administering Enterprise Servers ...
Страница 32: ...32 Netscape Enterprise Server Administrator s Guide ...
Страница 56: ...Sending Error Information to Netscape 56 Netscape Enterprise Server Administrator s Guide ...
Страница 64: ...Migrating a Server From a Previous Version 64 Netscape Enterprise Server Administrator s Guide ...
Страница 66: ...66 Netscape Enterprise Server Administrator s Guide ...
Страница 112: ...Managing a Preferred Language List 112 Netscape Enterprise Server Administrator s Guide ...
Страница 158: ...158 Netscape Enterprise Server Administrator s Guide ...
Страница 182: ...Using the Watchdog uxwdog Process Unix 182 Netscape Enterprise Server Administrator s Guide ...
Страница 196: ...Viewing Events Windows NT 196 Netscape Enterprise Server Administrator s Guide ...
Страница 218: ...Enabling the Subagent 218 Netscape Enterprise Server Administrator s Guide ...
Страница 266: ...266 Netscape Enterprise Server Administrator s Guide ...
Страница 302: ...Enabling WAI Services 302 Netscape Enterprise Server Administrator s Guide ...
Страница 310: ...310 Netscape Enterprise Server Administrator s Guide ...
Страница 390: ...Customizing the Web Publisher User Interface 390 Netscape Enterprise Server Administrator s Guide ...
Страница 446: ...Customizing the Search Interface 446 Netscape Enterprise Server Administrator s Guide ...
Страница 448: ...448 Netscape Enterprise Server Administrator s Guide ...
Страница 454: ...Responses 454 Netscape Enterprise Server Administrator s Guide ...
Страница 464: ...Referencing ACL Files in obj conf 464 Netscape Enterprise Server Administrator s Guide ...
Страница 504: ...504 Netscape Enterprise Server Administrator s Guide ...