// Try looking up by ocaid first, then by source_record
var jsonURL = 'http://openlibrary.org/query.json?type=/type/edition&*=&ocaid=' + br.bookId;
// Try looking up by ocaid first, then by source_record
var jsonURL = 'http://openlibrary.org/query.json?type=/type/edition&*=&ocaid=' + br.bookId;
jsonURL = 'http://openlibrary.org/query.json?type=/type/edition&*=&source_records=ia:' + br.bookId;
$.ajax({
url: jsonURL,
success: function(data) {
if (data && data.length > 0) {
jsonURL = 'http://openlibrary.org/query.json?type=/type/edition&*=&source_records=ia:' + br.bookId;
$.ajax({
url: jsonURL,
success: function(data) {
if (data && data.length > 0) {