Skip to content
Snippets Groups Projects
Commit 540e11d7 authored by Demian Katz's avatar Demian Katz
Browse files

Fixed broken condition.

parent 2c7e4d5e
No related merge requests found
...@@ -9,7 +9,7 @@ function getBookPreviews() { ...@@ -9,7 +9,7 @@ function getBookPreviews() {
// fetch Google preview if enabled // fetch Google preview if enabled
if ($('.previewGBS').length > 0) { if ($('.previewGBS').length > 0) {
// checks if query string might break URI limit - if not, run as normal // checks if query string might break URI limit - if not, run as normal
if (!bibkeys.length > 150){ if (bibkeys.length <= 150){
var script = 'https://encrypted.google.com/books?jscmd=viewapi&bibkeys=' var script = 'https://encrypted.google.com/books?jscmd=viewapi&bibkeys='
+ bibkeys.join(',') + '&callback=processGBSBookInfo'; + bibkeys.join(',') + '&callback=processGBSBookInfo';
$.getScript(script); $.getScript(script);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment