Selecting a Theme


The search experience involves a three-step process; entering a query in a search form, viewing the results, and finally viewing a document. Each step involves a different form, or SEARCHScript template. A theme is comprised of the forms necessary for the full search experience. You can view a theme by selecting a desired theme in Information Server and clicking the Preview button in Forms Wizard.

On the Forms Wizard page, the following themes are available:

Form and Template Source

The templates and forms which comprise the Forms Wizard themes are described below. Partial source is included in the descriptions for most of the files. The files themselves are located in installdir/s97is/samples/template/, where installdir is the directory into which you installed Information Server.

To create your own forms and templates, or modify those included with Information Server, you may wish to start with the ones used in the Forms Wizard. These templates offer a good starting point for creating forms specific to your needs. Be sure to make copies of these files before you begin to modify them.

If you want to use any of the source described in this chapter, be aware that line breaks and spacing can make a difference. Make sure you compare what you want to use to the actual file so you get the correct spacing and line breaks.

For more information on SEARCHScript, see the SEARCHScript Reference Guide included with your packaging.

Common Elements

Navigation links allow you to skip to arbitrary documents, as well as provide access to further documents lists which wouldn't fit on the same page. Below is the source for implementing navigation links.

Navigation Links

Navigation links allow you to easily navigate among the sometimes numerous documents in results lists, and, as is the case with the document view templates, provide easy shortcuts back to the main lists.

Source for navigation links in results lists:


<% If Count(Result.PageUrls) > 1 Then %>
<center>
<B>Results List Navigation:</B>
<% if PrevPageURL then %>
<A HREF="$$(PRevPageURL)%>&ServerKey=$$ServerKey&AdminImagePath=<% PrintUrlEsc(AdminImagePath) %>&Theme=$$Theme&Company=<%PrintUrlEsc(Company)%>">[Prev]</A>
<% Endif %>
<% I = 1 %>
<% Foreach url in Result.PageUrls %>
<% If I <> PageNumber Then %>
<A HREF="<%$$url%>&ServerKey=$$ServerKey&AdminImagePath=<% PrintUrlEsc(AdminImagePath) %>&Theme=$$Theme&Company=<%PrintUrlEsc(Company)%>">$$I</A>
<% else %>
$$I
<% Endif %>
<% I = I + 1 %>
<% Endfor %>
<% If NextPageURL Then %>
<A HREF="$$(NextPageURL)%>&ServerKey=$$ServerKey&AdminImagePath=<% PrintUrlEsc(AdminImagePath) %>&Theme=$$Theme&Company=<%PrintUrlEsc(Company)%>">[Next]</A>
<% Endif %>
</center>
<HR>
<% EndIf %>
Source for navigation links in document view templates:


<TABLE>
<TR>
<TD><A HREF="$$(SearchURL)&ServerKey=$$ServerKey&AdminImagePath=<% PrintUrlEsc(AdminImagePath) %>&Theme=$$Theme&Company=<%PrintUrlEsc(Company)%>">[Go Back To Results]</A></TD>
<% if Exist(PrevDocURL) %>
<TD><A HREF="$$(PrevDocURL)&ServerKey=$$ServerKey&AdminImagePath=<% PrintUrlEsc(AdminImagePath) %>&Theme=$$Theme&Company=<%PrintUrlEsc(Company)%>">[Previous Doc]</A></TD>
<% endif %>
<% if Exist(NextDocURL) %>
<TD><A HREF="$$NextDocURL&&ServerKey=$$ServerKey&AdminImagePath=<% PrintUrlEsc(AdminImagePath) %>&Theme=$$Theme&Company=<%PrintUrlEsc(Company)%>">[Next Doc]</A></TD>
<% endif %>
</TR>
</TABLE>





Copyright © 1998, Verity, Inc. All rights reserved.