Amazon.co.uk Library Holdings Lookup - Firefox Extension
This Firefox Extension/Greasemonkey plug-in script inserts a panel on to the book details page of Amazon.co.uk if the book, identified by ISBN, is held by libraries which have contributed their holdings data to the Talis Platform.
Updated Version!
You can now select your own subset of libraries, in addition to seeing all libraries that hold a copy.
Amazon@Libraries has now become a personalised library lookup tool for Amazon.co.uk.
Here is an example of how it looks:

Click for a larger view
Clicking on a library listed in the panel will open a new window which takes the user to the relevant library's interface to display the relevant record.
To use this extension, click on the link below from within your Firefox browser, and follow the instructions.
amazonlibraries.xpi
Note: If you have not downloaded a Firefox Extension from Talis before, you may have to follow the Firefox instructions to allow a download from our site and then click on the link again.
To test it is working, visit this link and see the @Libraries window in the bottom right of the screen.
Note: If you have already loaded an earlier version of this tool as a Greasemonkey plug-in, you will need to disable it from the Manage User Scripts option from the Firefox Tools menu, to prevent conflict with the extension version.
So what is this useful tool demonstrating?
- Firstly, how easy Greasemonkey makes the injection of functionality in to a web page
- Secondly, how by using Talis Platform API calls data contributed to the Open Talis Platform can be used to drive new functionality in to the Amazon page. The two API calls used are:
- The Holdings Lookup service - an ISBN lookup in to Holdings data contributed to the Platform, which returns a list of libraries which hold one or more copies of an item.
- The Bibliographic Deep Linking service - a browser redirect service which utilises the entries in the Open Platform Directory to take the user deep-linked in to the target library's search interface
If you are interested in how it works and would prefer to load it as a Greasemonkey Plug-in click on the following link [from within Firefox when you have loaded Greasemonkey].
amazonlibraries2.5.user.js
The source of the file will appear on screen. Click the Install button in the yellow Greasemonkey bar that appears above the text.
Developers note:
The tool was developed as a Greasemonkey plug-in script and the compiled in to a Firefox extension with the help of a Greasemonkey compiler [http://www.arantius.com/misc/greasemonkey/script-compiler.php].
Greasemonkey links not working, but...
The Greasemonkey links in this post (e.g. "[from within Firefox when you have loaded Greasemonkey]") take you to a TDN login page rather than to the Greasemonkey site. . .
That said, once you've installed Greasemonkey, and your script, it's great fun looking up books on Amazon UK. Could you get this to work from A9? The default Amazon site in A9 is Amazon.com. Can this be changed to point to Amazon.co.uk?
Steve
Steve Newman
University of Brighton
Amazon/Libraries Greasmonkey Plug-in variations
Hi Steve,
The reason it took you to that page was so that if you came in cold to this page you would be able to find out about Greasemonkey and how we use it. It is from that page you then get a link to the Greasemonkey site.
Reading it again, I already give a link to that page at the start of the text, so I agree with you about where the link in question should take you. I will change it.
There is a general answer to your "Could you get this to work on other sites - can you change the A9 link to point at Amazon.co.uk?" questions. It is: Because Greasemonkey gives you access to the HTML that makes up the page you are viewing, and external access to Web Services, you could make it do almost anything.
On the Greasemonkey site you will find URL checking examples which would give you a clue of how to scan a page and change any href that point at amazon.com to point at amazon.co.uk.
Similarly, you could use my amazon.co.uk plug-in as an example to build your own version. It already scans the page looking for ISBNs, the bit that is amazon.co.uk specific is how it inserts the @Libraries panel in the page.
If you or anyone else produces variations on the plug-in for other sites which use library Web Services to add value of those sites let me know and we will publish them for others to see and use. Better still you could enter them in to The Mashing Up The Library Competition.
Richard Wallis
Technology Evangelist - Talis
Greasemonkey ...
Hi Richard. I've just installed Greasemonkey and the Amazon plug in - just for fun, so that I can look for books in our own catalogues and others! It's not software that I'm familiar with, but I've had fun searching for books in Amazon and seeing the libraries come up at the side ... time to finish for the day I think! Sharon, Aberdeenshire Libraries
identifier capitalization.
Hi,
I looked up a signalong book on amazon (1902317017), then saw Herefordshire appear in the list...
But, although I know that herefordshire has a collection it is not being identified by the directory when I click on it. The identifier embedded within the greasemonkey output is u116.inst while the identifer as it appears on the directory page is U116.inst the only difference being the capitalisation.
I ammended the amazonlibraries.user.js script with the following changes and all worked fine!
replace -->
d.setAttribute('instCode',rows[i].getAttribute('identity'));
with -->
txt = rows[i].getAttribute('identity');
regexp = /\./
txt = txt.split(regexp);
id = txt[0].toUpperCase() + "." + txt[1];
d.setAttribute('instCode',id);
Your thoughts?
Tim
Tim Hodson
Herefordshire Libraries
www.timhodson.com
informationtakesover.co.uk (blog)
That sounds like a bug to
That sounds like a bug to me. I'll investigate and see what's going on there.
Ian
All the identifiers should
All the identifiers should be lowercase, this one slipped through somehow and we'll change it and any others that we can find.
Updated Version!
You can now select your own subset of libraries, in addition to seeing all libraries that hold a copy.
Amazon@Libraries has now become a personalised library lookup tool for Amazon.co.uk.
Richard Wallis
Technology Evangelist - Talis