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.
/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.
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 %>
- <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>