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://search.ebscohost.com" id="querybox>
    <label for="searcharg>Search the Library's Holdings:</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://searchbox.ebsco.com/search/" method="get" class="library-search" role="search" id="embedded_search">
<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">
<input name="authtype" type="hidden" value="ip,sso">
<input name="schemaId" value="search" type="hidden">
<p>
	<label for="lg-search" class="sr-only">
		Search the Library for Books, eBooks, and Media
	</label>
	<input type="text" id="lg-search" name="bquery" placeholder="Find books, eBooks, & more" size="45"><button type="submit">Find It!</button>
</p>
</form>

<script>
var embeddedSearch = document.getElementById('embedded_search');

embeddedSearch.addEventListener('submit', function(e) {

e.preventDefault();
var searchTerm = document.getElementById('lg-search').value;
document.getElementById('lg-search').value = '(' + searchTerm + ') AND (LN cat08323a OR LN cat08963a OR LN cat08964a)';
embeddedSearch.submit();

});
</script>

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" />
<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,sso" />
<!-- 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

EDS Search with Full Text & Scholarly Options

Here is a version of the EDS search that also gives the user the option to toggle Full Text or Scholarly/Peer Review on before completing the search. Unfortunately, I haven't been able to get a version to work that would allow users to turn off the "Available in Library Collection" option. Still working on that!


<form action="https://searchbox.ebsco.com/search/" method="get" class="library-search" role="search" id="lib-search-articles">
                            <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">
                            <input name="authtype" type="hidden" value="ip,sso">
                            <input name="schemaId" value="search" type="hidden">
                            <p>
                                <label for="s.q" class="sr-only">
                                    Search the Library for Articles, Books, and More
                                </label>
                                <input type="text" id="article-search" name="bquery" placeholder="Find articles, books, & more" size="45"><button type="submit">Find It!</button>
                            </p>
                      


    <fieldset>
    <legend>Search Facets</legend>

  <label for="fullText">
    <input id="fullText" name="limiter-ft" value="Y" type="checkbox" />
    <span>Full Text</span>
  </label>
  <label for="peerReviewed">
    <input id="peerReviewed" name="limiter-rv" value="Y" type="checkbox" />
    <span>Peer Reviewed (Scholarly) Only</span>
  </label>
    </fieldset>

</form>

The above HTML creates this box (you can also map the one from the Mappable Forms tab)

Advanced EDS Search

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

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 Single Sign On (SSO)

 

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="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,sso" /> 
<!-- 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

Profile Photo
Matthew Reidsma
Contact:
340C LIB
(616) 331-3577
Website
  • Last Updated: Sep 13, 2021 2:20 PM
  • URL: https://libguides.gvsu.edu/searchforms