Skip to content

Instantly share code, notes, and snippets.

@Eonasdan
Last active January 17, 2018 21:28
Show Gist options
  • Save Eonasdan/c7e11c9d15b6567693bbc8aa985049e9 to your computer and use it in GitHub Desktop.
Save Eonasdan/c7e11c9d15b6567693bbc8aa985049e9 to your computer and use it in GitHub Desktop.
Search local public libraries from Amazon using these Bookmarklets

Amazon Book to public library search

image

Each of the sections below allow you to click on a bookmark/favorite to quickly search your local public library for a book you are looking at on Amazon. The goal is to save money (and bookshelf clutter :)) so you can check out a book (see what I did there?) instead of buying it first.

##Quick Guide

Here's how you use these. It's probably going to be easiest to copy the bookmarklet code by clicking "Raw":

image

Copy and paste the code in its entirety and save it as a bookmark and you're done.

Installing (Chrome)

  1. Right click on the bookmark bar, below the address bar. If you don't have one, you can press Ctrl + Shift + B.
  2. After right clicking, click "Add a page":
    image
  3. On this screen change "Name" to something you will remember like "Search Library From Amazon".
  4. In the "URL" field paste the desired Library search.
  5. Make sure that "Bookmarks bar" is selected and click "Save"

image

##Usage If all goes right, you should now be able to

  1. Go to Amazon
  2. Find a book
  3. Select the hardback or paperback version (the bookmarklet won't work if Kindle is selected)
  4. Click on your newly created bookmarklet
  5. What should happen now is a new window will open which will attempt to search the library catalog from the ISBN on Amazon. If it doesn't work the first time, try clicking the bookmarklet again.
  6. This may not work for all books since all library systems are different.
javascript:window.open('https://dbrl.bibliocommons.com/search?t=smart&q=' + jQuery('#detail-bullets ul li:contains("ISBN")').first().children('b').remove().end().text().trim().replace("-",""))
javascript:window.open('http://encore.greenvillelibrary.org/iii/encore/search/C__S' + jQuery('#detail-bullets ul li:contains("ISBN")').first().children('b').remove().end().text().trim() + '__Orightresult__U?lang=eng&suite=cobalt')
javascript:window.open('https://sclends.lib.sc.us/eg/opac/results?query=' + jQuery('#detail-bullets ul li:contains("ISBN")').first().children('b').remove().end().text().trim().replace("-","") + '&qtype=keyword&fi%3Asearch_format=&locg=1')
javascript:window.open('http://selco.ent.sirsi.net/client/en_US/nor/search/results?qu=' + jQuery('#detail-bullets ul li:contains("ISBN")').first().children('b').remove().end().text().trim().replace("-",""))
javascript:window.open('http://catalog.infodepot.org/polaris/search/searchresults.aspx?type=Keyword&term=' + jQuery('#detail-bullets ul li:contains("ISBN")').first().children('b').remove().end().text().trim())
javascript:window.open('http://encore.williamson-tn.org/iii/encore/search/C__S' + jQuery('#detail-bullets ul li:contains("ISBN")').first().children('b').remove().end().text().trim() + '__Orightresult__U?lang=eng&suite=cobalt')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment