|
|
Selectable Sorting of Keyword Search Results
In Webpac, you can sort the results of keyword searches using any available information in the MARC record, such as Title, Author, Publication Date, etc. You can even sort the results using a combination of information from different parts of the MARC record, such as first by author in alphabetical order and then by latest date of publication.
As mentioned in the online article on Default Sorting, the connection between the MARC records in the Horizon database and WebPAC sorting, is made in the Zserver Sort File where MARC Map codes are linked to Z39.50 Use attributes.
In order to sort keyword search results, based on a patron's choice of sort order, you need to update







If you cannot find the MARC Map code you need or you find that a code is not referenced, you can refer to the WebPAC MARC Mapped Information Filtering online article for further information on creating a new MARC Map code and adding a MARC Map code to a List View.
The Sort file (normally named "sort.txt"), a text file referenced by the "/S (capital S)" argument to the Zserver program "zdaemon.exe" or "zdaemon", should be located in the Zserver directory.

This file is organized in separate sections, each section being optional.
In the above example, we have defined eight sort criteria for patron selectable sorting:
You can now proceed with the modifications to the WebPAC Connection CFM file and HTML Search Template file.
|
This usually involves adding a select list or drop box option containing sort options to the template file. For example,
WebPAC 1.2, Search Template
|
WebPAC 1.3, Search Template
|