Library Search Hack

A simple HTML hack of embedding a local library search engine into an HTML webpage. A nice trick if you want users to be able to browse a collection of books in a database of an LMS and then check to see if the book they chose is available in the local library. (See presentation here).

The example below was used to link a local library of print books with the online Moodle course that houses the Moodle Reader Module. This is and was a quick workaround to make sure that students had chosen a book to read for next class and were not choosing books that were too challenging.

The search text box is for the JAIST library.


JAIST 図書館検索条件を入力の上,
検索ボタンを押してください



In the context of Japan, you can find a list of libraries that are using the OPAC system here: http://ci.nii.ac.jp/books/

I just did a simple search for ‘Wizard of Oz’, to get a test list. After that, you get a list of libraries with the book. Just copy the link from the OPAC button. You are looking for the link that ends in the <.do>. You can also grab the URL from the library search engine box when you look at the Page Source or use ‘Inspect Element’ in Firefox.

Screen Shot 2016-02-02 at 10.03.24 PM

Then just substitute the unique URL of your library in the code below, in bold in the code below.

Everything can be customized too. If you want to remove some of the functionality, then just uncomment that line of code using these tags.

<? code you wish to uncomment ?>


 

<form target=”_blank” action=”http://opacsrv02.jaist.ac.jp/webopac/ufirdi.do” method=”get”>
<div id=”top_opec”><span style=”text-decoration: underline; font-size: medium;”><strong>libraryname</strong></span>
<p>検索条件を入力の上,<br /> 検索ボタンを押してください<br /><input value=”40″ name=”listcnt” type=”hidden” /><input value=”40″ name=”maxcnt” type=”hidden” /> <input size=”25″ name=”words” type=”text” /><br /><input value=”検索” type=”submit” /> <input name=”ufi_target” value=”ctlsrh” type=”hidden” /><input value=”ja” name=”ufi_locale” type=”hidden” /></p>
</div>
</form>


Example using Libraries in Vermont.

Here again, the libraries are using OPAC interface. I just replaced the OPAC URL in the code and tweaked some other code lines. Could be easy enough to modify the code to point to the different library in your area, be it Japan or VT. Code follows the search box.


St. Johnsbury Athenaeum

Enter keyword text below.
Hit RETURN to start your search.


<form action=”http://stjathenaeum.kohavt.org/cgi-bin/koha/opac-search.pl” method=”get” target=”_blank”>
<div id=”top_opec”>

<span style=”text-decoration: underline; font-size: medium;”><strong>St. Johnsbury Athenaeum</strong></span>

Enter keyword text below.
Hit RETURN to start your search.
<input type=”text” size=”30″ name=”q” title=”Enter search terms” value=”” />
</div>
</form>

This entry was posted in Education Hacks. Bookmark the permalink.