Search Forms: Home

HTML chunks for common search tools to add to your guides

Notes

The HTML for the search boxes below will by default search all resources. It has also been written to meet WCAG 2.0 AA Accessibility guidelines, so please don't change the HTML without talking to the Web Services Librarian!

Customizing Forms

If you need to customize a search form, make sure you use appropriate <label> elements for each <input>, <select>, or <textarea> element. If you're not sure how to do this, drop a line to the Web Services Librarian for help!

Each <input> element should have a unique id attribute. If the vendor doesn't provide one, you can assign one. (Don't use something like "input", since that might be used elsewhere on the page Pick something unique, like "libguidessearch-cap301". Your id can't have spaces or punctuation, but you can use dashes to separate words.

Each <input> element must have a <label> that refers to its unique ID in a for attribute. This is how screen readers know that text is associated with a particular input.

Example:


<form action="https://library.catalog.gvsu.edu/search/" id="querybox>
    <label for="searcharg>Search the Library Catalog:</label>
    <input type="text" name="searcharg" id="searcharg" />
</form>

See how the id of the input is the same as the value of the for attribute of the label?

More Resources:

Catalog Search


<form action="https://library.catalog.gvsu.edu/search/" class="lib-form" id="querybox" method="get" name="querybox">
<label for="searcharg">Search the Catalog for:</label><br />
	<label style="text-indent: -999px;" for="searchtype">Search by:</label>
	<select name="searchtype" id="searchtype">
		<option value="X">Keyword</option>
		<option value="t">Title</option>
		<option value="a">Author</option>
		<option value="d">Subject</option>
		<option value="s">Journal Title</option> 
	</select> 

	<input name="searcharg" id="searcharg" size="35" /> 
	<input class="btn btn-primary" name="Submit" type="submit" value="Search" /> 

	<input name="SORT" type="hidden" value="D" />
</form>

<p style="text-align: left;"><a href="https://library.catalog.gvsu.edu/search/X">Advanced Search</a></p>

The HTML above will give you a search box that looks like this:


Advanced Search

EDS Search

This is for a general EDS (EBSCO Discovery Service) search (The Library Search or Find It! search).


<form action="https://searchbox.ebsco.com/search" method="get" target="_blank">
<input name="schemaId" value="search" type="hidden" />
<input name="proxy" value="http://ezproxy.gvsu.edu/login?url={targetURL}" type="hidden" />
<label for="s.q">Search the Library for:</label><br />
<input name="direct" type="hidden" value="true" />
<input type="hidden" name="custid" value="s8484662"> 
<input name="scope" type="hidden" value="site" /> 
<input name="site" type="hidden" value="eds-live" /> 
 <input name="profid" type="hidden" value="eds" />
<input name="groupid" type="hidden" value="main" />

<!-- Authentication type --> 
<input name="authtype" type="hidden" value="ip,guest" />
<!-- Search box and Submit button --> 
<input name="bquery" size="40" type="text" value="" /> <input type="submit" class="btn btn-primary" value="Search" /> </form>
<p><a href="https://gvsu.edu/library/advancedsearch">Advanced Search</a></p>

The HTML above will give you a search box like this:


 

Advanced Search

Advanced EDS Search

You can link to the Advanced Search screen in EDS by using the URL https://gvsu.edu/library/advancedsearch.

Link to EDS resources

EDS uses session variables in the URL that are tied to your specific instance of visiting the site. If you copy them and share with others, the links will not work! Below is a simple form that will give you a permalink URL for linking to keyword searches in EDS. (More sophisticated scoped searches coming soon, once EDS finds the documentation and shares it with us.)

Link to EDS results

Scoped Searches for EDS

EBSCO has a custom Search Box builder that you can use to make a scoped search for your LibGuide. Unfortunately, it is not as robust as our former customized Summon scoped search tool.

You will need to have the following account information in order to use the tool:

  • Customer ID: s8484662
  • Group ID: main
  • Profile ID: eds
  • Do not add Proxy
  • Authentication: check IP Address and Guest Access

 

Journal Finder Search


<form action="https://searchbox.ebsco.com/search" method="get" target="_blank">
<label for="C">Search Journals for:</label><br />
<input name="schemaId" value="search" type="hidden" />
<input name="proxy" value="http://ezproxy.gvsu.edu/login?url={targetURL}" type="hidden" />
<input name="direct" type="hidden" value="true" /> 
<input name="custid" type="hidden" value="s8484662" /> 
<input name="profile" type="hidden" value="eds" /> 
<input name="groupid" type="hidden" value="main" /> 
<input name="db" type="hidden" value="edspub" /> 
<input name="type" type="hidden" value="44" /> 
<!-- Authentication type --> 
<input name="authtype" type="hidden" value="ip,guest" /> 
<!-- Search box and Submit button --> 
<input name="bquery" id="C" size="40" type="text" value="" /> 
<input class="btn btn-primary" type="submit" value="Search" /> </form>

The search form above looks like this:


 

Borrowing Books GVSU Does Not Own

On February 1, 2021 GVSU Libraries will temporarily stop borrowing books from other libraries via MeLCat as GVSU Libraries change our search software. In the meantime, you can request items we do not own through our Document Delivery service, or pick up MeLCat loans from your public library. Learn more about this service change.

Your friendly Web Services Librarian

Matthew Reidsma's picture
Matthew Reidsma
Contact:
340C LIB
(616) 331-3577
Website
  • Last Updated: Feb 4, 2021 10:56 AM
  • URL: https://libguides.gvsu.edu/searchforms