Creating a View Definition to Display Search Results

You create a view definition for the index in the Table Editor. The view definition lets you display search results in a window in Horizon. The view definition defines how, when, and where the indexed data displays in the Horizon window. A view definition defines the table where the data comes from, where in the Horizon processes the data displays (for example, the Table Editor or staff searching).

There are many types of keyword indexes you can create on your Horizon system. This section contains only an example of a view definition setup for a keyword subject index. Depending on what type of keyword index you are creating, your view definition setup may be different.

To create a view definition to display search results

View: mq_view
Process: Administration\System Setup\View Control

1 In these fields, do the following:

Field

Action

Mq view

Enter a name for the new view.

You should give the view a name that represents the data the Horizon window will display. (For example, if you are creating a window to display subjects in a keyword results list, enter “closauth_subject”.)

Description

Enter a description of the view.

For example, if you are displaying subjects in a keyword results list, enter “PAC--Closed subject list”.

View Type

Choose one of these options to specify where in Horizon this window displays.

Title Alphabetical. Choose this type if the view you are creating displays data from the bib table.
Authority List. Choose this type if the view you are creating displays data from the auth table, such as subjects.

For list of subjects by keyword, you would choose Authority List.

Table Name

Enter the name of the database table where data that you want to display is stored.

Note: You can use an existing database table for this table. Typically, you would use one that you already use for a similar browse search. (For example, for a title keyword, you would use the existing “title” table; for a subjects results list, you would use the existing “subject” table.)

Window Title

Enter the name you want to display in the title bar for the window.

You should give the window a title that represents the type of information displayed.

For example, enter “Subjects”.

Help panel id

Leave this field blank.

Properties

Mark the Xrefs box for an authority search.

This box specifies that “see” and “see also” references are displayed in staff searching.

Secured

Leave this box unmarked.

2 In these fields, do the following:

 

Field

Action

Column Name

Enter “processed.”

This is the name of the column from the index table where the indexed data is stored.

Ord

Enter the order you want data in this column to display in the window in Horizon.

Column Label

Enter the name you want to display for this column header in the list window.

No. of Display Characters

Enter the number of characters of the column data you want to display by default.

Pad Character

Leave this box unmarked.

Properties

Mark the Displayed box to display data from this column in the window.

Sort Processor

Enter “SrAlpha” as the sort processor.

 


© 1998-2017 Sirsi Corporation