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>
Thu, 2 Jun 2011 05:42:49 +0000 (01:42 -0400)
commitf38947102e27acb5d873fc1ddd1a0c1eee7f1225
tree59461561209becc3334aebd8487c58d735c2d0c5
parentad1741744d2b10bf68ba5b43019bf53b0752fb5d
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