WYLDCAT Members Technical Support
wyoming state library > wyld technical support > technotes > note097

WYLD TECHNOTE 97 : Catalog Access Links and Building Search forms for web pages (Classic catalog)

  (note - this technote assumes familiarity with HTML)

See also technote 008 Creating links for Enterprise Catalog


The following technote provides the syntax for creating links to your catalog, a quick form for keyword searching, and examples of searches embedded in URLs.


Linking to your WYLDCAT catalog

To link to your WYLDCAT catalog, you must put login information in the URL. An example link will look like this:


Replace the portion after user_id= with your catalog userid. This is typically your library policy name followed by the word 'web'. E.g. larmweb, larm-burnweb, larm-genweb. If you are unsure of your library policy name, please contact the WYLD Office. There must be no spaces in the URL


Keyword search form for your library catalog

You will need the following:
  1. The login information in the form action statement. You must provide the user_id or the search will not use your WYLDCAT environment. See above for more information about the user_id for your library.
  2. srchfield1, searchoper1, search_type1 as hidden fields.
  3. library as a hidden field. The library value is your library's policy name. You can use a search group library as well, as long as it is a valid policy name in WYLD. If you do not include your library's policy name, the search will not limit to your library.
  4. Search terms are passed to the server through the 'searchdata1' field.
  5. See the example below and replace the library policy information with your own library's information.

<form name="searchform" method="post" action="http://wyld.state.wy.us/uhtbin/cgisirsi/x/0/0/57/5?user_id=wwccweb">
<input type="hidden" name="srchfield1" VALUE="GENERAL^SUBJECT^GENERAL^^words or phrase">
<input type="hidden" name="searchoper1" VALUE="AND">
<input type="hidden" name="search_type1" VALUE="SUBJECT">

<!-- add this line with your library policy name as 'library' to limit search-->
<input type="hidden" name="library" VALUE="WWCC">
<input type="text" name=searchdata1 size=10 maxlength=255 value="">
<input type="hidden" name="search_entries1" value="GENERAL">
<input type="hidden" name="thesaurus1" value="GENERAL">
<input type="submit" value="Search">

OR to offer choices for types of keyword searching:
<form name="searchform" method="post" action="/uhtbin/cgisirsi/x/0/0/57/5?user_id=albyweb">
<input name="searchdata1" type="text" size="27" />
	<select name="srchfield1">
	<option value="GENERAL^SUBJECT^GENERAL^^words or phrase">any words</option>
	<option value="AU^AUTHOR^AUTHORS^Author Processing^author">author</option>	
	<option value="TI^TITLE^SERIES^Title Processing^title">title</option>
	<option value="SU^SUBJECT^SUBJECTS^^subject">subject</option>
	<option value="SER^SERIES^SERIES^Title Processing^series">series</option>
	<option value="PER^PERTITLE^SERIES^Title Processing^periodical title">periodicals</option>
<input type="submit" value="search" class="searchbutton" /> 
<input type=hidden value="ALBYLIBS" name="library" />
<input type="hidden" name="search_entries1" value="GENERAL">
<input type="hidden" name="thesaurus1" value="GENERAL">

To offer multiple choices for locations to search, change the line:

	<INPUT TYPE="hidden" NAME="library" VALUE="WWCC">
to a select list, like below. *you will need the policy names for the libraries you wish to search:
    <select name="library" id="library" >
        <option value="WWCC">Western Wyoming College</option>
        <option value="SWTRLIBS">Sweetwater County Library</option>
        <option value="ALL">All WYLD Libraries</option>

Note about the name/value pairs in the above forms

searchdata1= e.g. searchdata1=mark+twain+{au}
The OPAC prefers that words be separated with plus signs rather than spaces, but spaces will work, too. If you want the search to retrieve all records that match the search limits, such as all records with item type DVD, leave this field blank or leave it out altogether. The maximum length of a search string is about 255 characters.

srchfield1= GENERAL^SUBJECT^GENERAL^^words or phrase
This is a delimited field, and the first four fields also have their own separate name/value pair equivalents, which must be the same if both are present. The first field is the same as search_entries1, the second field is the same as search_type1, the third field is the same as thesaurus1, and the fourth field is the same as special_proc1. The fifth field is the label that displays in the search field type box; possible values include words or phrase, author, title, subject, series, or magazine.

This is the search operator used between multiple search fields, such as when doing an author and title search, not the default operator used between words in a single search field when no other. Possible values for this field are AND, OR, NOT, or XOR. SAME, WITH, NEAR, and ADJ do not work here.

This is the keyword index to search. For preconstructed search URLs, GENERAL will most often be the proper index, but other possible values include AU, TI, SU, SE, PBYR and any indexed MARC field tag number

search_type1= This is the browse index to be used if the keyword search results in zero hits. Possible values include AUTHOR, PERTITLE, SERIES, SUBJECT, or TITLE.

thesaurus1= This is the authority thesaurus most relevant to the search. GENERAL is usually good enough for most purposes. Possible values also include AUTHORS, SERIES, SUBJECTS, TITLES.


Creating links to pre-determined searches

Your url cannot have any spaces in it and must contain the following elements:

Examples: (the code must be one line with no spaces in your code for it to work!)


For further limiting, add any of the following parameters to the URL:
language= (e.g. &language=SPANISH)
location= (e.g. &location=NONFICTION or &location=JUV_FIC+OR+JUVENILE) *note - this is the Home Location policy, not current location*
item_type= (e.g. &item_type=BOOK or &item_type=VIDEO+OR+DVD+OR+DVD2)
item_2cat= (e.g. &item_2cat=ADULT or &item_2cat=JUVENILE)
pubyear= (e.g. pubyear=2003)

Direct links to other catalog results or pages:

Replace the user_id and library parameters with your library specific information as outlined above.

  • ACCOUNT INFO SCREEN (links to renew materials, etc)
  • ACCOUNT LOGIN SCREEN (login for more features)
    all libraries - http://wyld.state.wy.us/uhtbin/cgisirsi/x/0/0/60/1173/X
    individual library - http://wyld.state.wy.us/uhtbin/cgisirsi/x/0/0/57/38/1179/X/BLASTOFF?user_id=natrweb&library=NATR
    (7 day list) http://wyld.state.wy.us/New/[LIBRARY_POLICY].html
    (30 day list) http://wyld.state.wy.us/New30/[LIBRARY_POLICY].html

    Replace the [LIBRARY_POLICY] value with your library's SirsiDynix policy name, eg NATR or ALBY-ROCK