So David Eaves posted “5 Municipal apps I’d love to see“. One of them was an extension of an existing Greasemonkey script to search local library catalogue listings when browsing Amazon. So I downloaded Bryan Larsen’s Ottawa library script, modified it to look up in the Vancouver library, and have now posted in on Userscripts.org, for all of your pleasure.
Even if the initial lookup fails, you can still do a direct title & ISBN lookup from links that the Greasemonkey script pushes into the page, directly below the title of the book:
So, install the script, and test it out on Amazon! Let me know if you have any issues
UPDATE: I’ve updated the script a couple of times since this was initially posted, with the following revisions:
1.0: basic modification of the script
1.1: updated to include a new ISBN look-up URL variable
1.2: updated the ISBN lookup to use the correct OCLC web service
1.3: Fixed getIsbn() regex to look for /,? or end-of-string to extract the ISBN.
1.4: edited the Code-matching to use a central array of codes, and loop over those to provide a simplified messaging around status, and in particular, multiple statuses.
This means that it should be *alot* easier for anyone to further modify this in the future for any other libraries they may want to hook into, as well as providing better answers for books with multiple statuses and copies.
Ideally, I’d like to have this crawl the resulting code to pull out both the branch & due-date information, but this’ll do for now I think.
UPDATE 2009-10-20: There’s now also a script for use on the Vancouver Island Regional Library too: http://userscripts.org/scripts/show/60170