Url Encodings - Netscape ENTREPRISE SERVER 6.0 - ADMINISTRATOR Administrator's Manual

Table of Contents

Advertisement

You can create a complete search function as an HREF element within a pattern
file. The example given is from the
how collection information is displayed. The following lines produce a heading for
each collection with the label ("Collection:"), and provide a link to the actual
collection file through the collection's label (
file.
dblist.ini
<td colspan=6><font size=+2><b>$$collectionLabel</b>
<a
href=$$NS-server-url/search?NS-collection=$$NS-collection>$$NS-c
ollection-alias></a>
</font></td>
The HREF contains a complete search function by using the following elements:
$$NS-server-url
: The search command itself.
/search
: The query string indicator. Everything after the ? is information used by the
?
search function.
NS-collection=$$NS-collection
$$NS-collection
You can set up a search to use a variable conditionally; if there is no value
associated with the variable, nothing will be displayed. The syntax is as follows:
variableName[conditionalized output]
For example, you could request that the document's title be output if it exists. If
there is no title for this document, not even the label "Title:" is to be displayed. To
do this, you might enter:
$$Title[<PTitle: <B$$Title</B]

URL Encodings

When you construct HTML instructions, whether in decorated URLs or within a
pattern file, you need to follow the rules for URL encoding. Any character that
might be misunderstood as part of a URL should be encoded with the format of
%nn format, where nn is a hexadecimal code. Blanks are converted to the + symbol
(plus sign) in queries or to %20 in output. The following table shows the most
commonly used URL codes.
HTML-descriptions.pat file
: A search macro that determines the user's server URL.
: This uses the search macro
to define the collection's filename.
Customizing the Search Interface
NS-collection-alias
Chapter 12
, which defines
) defined in the
Using Search
283

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape management system 6.0

Table of Contents