Don't make OpenLibrary requests without an ID
authorDan Scott <dan@coffeecode.net>
Thu, 2 Jun 2011 05:42:49 +0000 (01:42 -0400)
committerDan Scott <dan@coffeecode.net>
Fri, 3 Jun 2011 15:38:21 +0000 (11:38 -0400)
commit952bc38b131e4f7f537ae516335e7f2f0df5e989
treef40401628e7f56eceec7e8fa92c771853ced7986
parent675ca22d8dd60d257f4a39d2fe0c7ba2b58c6283
Don't make OpenLibrary requests without an ID

It is rather silly to make requests if you have not pulled any IDs out
of the records to pass along to OpenLibrary, so do not do that. Also
refactor and add a bit more defensiveness.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Open-ILS/web/opac/skin/default/js/result_common.js