Skip to Main Content

WorldCat: From Local to Social: Creating Widgets and Search Boxes

A resource guide about how library users can use the social tools that are available in WSU WorldCat to organize, annotate, and share resources.

Important Information for WSU Users

11/18/2013 Update: Important: The WSU Libraries migrated from WSU WorldCat/WorldCat Local to Search It/Primo in mid-December 2013. Griffin and WSU WorldCat links will no longer work, and if you have a WSU WorldCat account you will still be able to see your saved items if you log in to Open WorldCat (www.worldcat.org), but saved lists and saved searches in WSU Worldcat did not transfer to Search It (although Search It has something similar: see the EShelf). You can still see and search WSU WorldCat, but you'll see it is not fully functional  - click here. Summit is still functional; you can find it here.

Keyword Widget

Creating an Embeddable WorldCat Searchbox

A basic embeddable searchbox (Note, although it did not originally say *WSU* WorldCat I've done some code editing to add it in and it is set up to search WSU WorldCat)

Search for an item in WSU WorldCat:
WSU WorldCat >>

A Fancy Embeddable WSU WorldCat Searchbox

A fancier embeddable WorldCat search box (if you don't see it, refresh the page. It's not really a good idea to have multiple WorldCat searchboxes on the same webpage).

Creating a Fancy [WSU or Whatever] WorldCat Embeddable Searchbox

HTML Code for the Fancy WSU/Other WorldCat Search box - copy this code and paste it whereever you want to use it - on a webpage, in a blog, in Facebook, etc. If you use a different institution's WorldCat, you will need to change the URL. 

<script src="http://worldcat.org/wcpa/html/searchapi.js" type="text/javascript"></script>
<div id="wcl_searchbox" style="display:none;"></div>
<script type="text/javascript">
 // Mandatory customization
 var params = new Object();
 params["layout"] = "v";
 params["scoping"] = "1";
 params["tabon"] = "1";
 params["tabid"] = "books:arts:dvds:aubs:irs";
 params["dftab"] = "books";
 params["w"] = 570;
 params["h"] = 165;
 params["lang"] = "en";
 params["host"] = "worldcat.org";

 // Optional customization, remove if you do not need
 /*
 params["title"] = "Search Your Library and beyond"; // override branding 
title
 params["background"] = "#f6f6f6"; // override background color
 */
 
 // Call WorldCat Local to display search box
 WCLSearch.display(params, "wcl_searchbox");
</script>

Creating a Keyword(s) Widget

For additional information, see the WorldCat Widgets and Tools for Everyone page.

To make a keyword widget, follow the same directions as you used for the list widget (see the the home tab of this Guide), except choose the keyword widget instead of the list widget. As the WorldCat widget page notes indicate (under the HTML code you will copy), you will need to customize two things: first, input the keyword, keywords, or phrase you want to search; and second, add in your WorldCat Local catalog name. Look for this part of the HTML:

searchTerm=keyword"> and change it to whatever you want, in this case I used

searchTerm=Academic+Library&myLocal=washingtonstate

Note: in the code you will see that the widget is supposed to be "small" - I've tried to change that, i.e. using "Large" or leaving out any indication of widget size, but it does not seem to make a difference - it still stays the same size. Another job for the WorldCat API?

Note 2: You can delete the preset search and search anyting you want using the search widget.

Creating a Basic Embeddable [WSU or Whatever] WorldCat Searchbox

HTML Code for the Basic WSU/Other WorldCat Search box - copy this code and paste it where ever you want to use it - on a webpage, on a blog, etc. You may want to change the WorldCat profile name to your own from mine (loenglish), and if you are not affiliated with WSU, you need to change the WorldCat URL. For additional information, see the WorldCat Widgets and Tools for Everyone page.

<!-- BEGIN worldcat.org search box; search WSU WorldCatt catalog --> <div id="wcs2n"> <form id="wcfn" action="http://worldcat.org/search" style="margin: 0;" target="_top" name="wcfn" method="get" accept-charset="UTF-8"> <input value="affiliate" name="qt" type="hidden"/> <input value="washingtonstate_loenglish" name="ai" type="hidden"/>
<table>

<tr><td style="text-align: center; font: 11px 'Arial Unicode MS', Arial, Helvetica, Verdana, sans-serif; line-height: 1.3em; margin: 0; text-align: center; width: 150px"><strong>Search for an item in 
WSU WorldCat:</strong><br/><label for="q" style="color: #666;">Enter 
title, subject or author</label></td></tr>

<tr><td style="text-align: center;"><input id="q" style="border: 1px solid #999; font: 12px 'Arial Unicode MS', Arial, Helvetica, Verdana, sans-serif; width: 130px;" name="q" size="20" type="text"/></td></tr>

<tr><td style="text-align: center;"><input id="wcsbtn2n" alt="Search WorldCat" src="http://worldcat.org/searchbox/images/wcsbtn2.gif?ai=Washington_alncornish" name="wcsbtn2n" title="Search WorldCat" type="image"/></td></tr>

<tr><td style="font: 10px 'Arial Unicode MS', Arial, Helvetica, Verdana, sans-serif; margin: 0; text-align: center; width: 150px;"><a style="color: #999" alt="Visit WorldCat.org" href="http://www.worldcat.org/" title="Visit WorldCat.org">WorldCat.org >></a></td></tr>

</table>

</form>

</div>

<!-- END worldcat.org search box -->

WSU Libraries, PO Box 645610, Washington State University, Pullman WA 99164-5610, 509-335-9671, Contact Us