Previous Page: Search Result Variables  Next Page: Error Message Variables

Print Result Variables

In addition to the Global Template Variables, the following table lists all available print result variables that can be used to extend the functionality of the default print result templates or to create new templates from scratch. For more information about how to implement variables in a template (HTML) page, see Customizing Your Search Solutions.


Table 13. Print Result Variables

Variable Name Description

$$BeginAuthorized

Begins a section for a search result that the user has rights to see. Used in conjunction with $$EndAuthorized. If a search result is authorized, this section of text and template variables will be processed. If unauthorized, this section is removed from the output. See also $$BeginUnAuthorized.

$$BeginUnAuthorized

Begins a section for a search result that the user does not have rights to see. Used in conjunction with $$EndUnAuthorized. If a search result is not authorized, this section of text and template variables will be processed. If the search result is authorized, this section is removed from the output. See also $$BeginAuthorized.

$$EndAuthorized

Ends a section for a search result that the user has rights to see. For more information, see $$BeginAuthorized.

$$EndUnAuthorized

Ends a section for a search result item that the user does not have rights to see. For more information, see $$BeginUnAuthorized.

$$BeginTOCList[text]

Beginning of the table of contents repeating section. This section is repeatedly parsed until there are no further TOC result items to process.

This is a conditional text section. The items within the brackets ( [ ] ) are processed only if the current item represents a change in the depth of the hierarchy. If $$Product appears within the conditional text, it will be replaced only if the current item also represents a new product.

$$Bookmark

The HTML anchor name of the current result item. This can be used to jump from a TOC entry to the corresponding section within the print job. All bookmark entries begin with "novell_print_toc_" and are followed by the number of the current result item, as in novell_print_toc_1.

$$Description

The abstract, description, or first 255 display bytes of the result item.

$$EndTOCList[text]

End of the table of contents section.

This is a conditional text section. The items within the brackets ( [ ] ) are written out each time a result item occurs that decreases the depth of the hierarchy. If the depth of the current item is several levels less than the previous item, the text within the conditional text block is written out that many times.

$$Number

The hit number of the current result item. Possible numbers begin with 1 and end with $$TotalHits. Is displayed using the client's locale.

$$NumIndents

The number of indentations required for the current Table of Contents entry.

$$Product

The name of the product associated with the current item in the table of contents.

This displays only if this is the first result item within that product.

See also $$BeginTOCList[text].

$$Title

Title of the result item. For empty titles, <title unavailable> is displayed. Is localized using the client's locale.

$$TotalHits

The total number of hits that match the search query. This is not the same as the number of hits displayed in any particular result page. Is displayed using the client's locale.

$$URL

URL of the result item.

$$URLContent

The entire contents of the URL are placed into the template at this location. The URL contents are not parsed to validate their data type, formatting, or functionality. Only text/plain and text/html files are printed. All other files are inserted into the print job as an error message.



  Previous Page: Search Result Variables  Next Page: Error Message Variables