zotero/translators — pull request #492 by aurimasv (2012-11-10 03:31:01+00:00)
Title: [Open WorldCat] Clean up Open WorldCat

Shaved off one HTTP request from search results. We can use the ID in the URL to retrieve RIS, so we don't have to navigate to the individual item page.

Previously, if there were no search results, doSearch assumed that we were redirected to an individual item page. Two questions:

1) Does that ever actually happen? I've always seen search results page for single or multiple items.

2) Attempting to scrape a single item page when in fact it was a "No results match your search for...." page would cause the translator to throw an exception. That sort of worked out for the magic wand tool, I think. Will not returning an item work as well. I'll do some testing, but I was thinking perhaps I can get some insight from @simonster or @dstillman.