OPAC: Building Canned Searches (Tomcat)
[This article was copied from the Voyager Wiki.]
The easiest way to create canned searches is to perform the search in WebV, copy the url, and edit the elements as needed. For example:
This is a canned search for the term chickens anywhere in the record with 25 records per page and results sorted by date (newest to oldest)
This is a canned search for the terms rats AND chickens anywhere in the record with 25 records per page and results sorted by author
The elements in the search URL are:
The only elements required are base URL, searchArg, searchCode, and searchType
The optional elements are recCount and sortBy.
The base URL for your WebV instance
The term(s) to search
If you are going to use more than one term, use a + (plus sign) between each word: rats+chickens
The index to search
This can be any search code from System Admin. Remember that you can indicate browse, relevance, automatic AND, or automatic OR.
+ Indicates browse search type.
* Indicates relevance search type.
^ Indicates to insert an AND operator between the strings in a search.
| Indicates to insert an OR operator between the strings in a search
GKEY^* = Keyword anywhere where terms are automatically ANDed and sorted by relevance
The search type
Search Type (Number)
Course Reserve (5)
Unless you are going to include limits from the Advanced Search Page, stick to Quick (0) or Basic (1) searchType
Records per page
Best option is to use your default.
Your options are: