Add "Return this book" under the book's title if it's a borrowed book
[bookreader.git] / BookReaderIA / datanode / BookReaderJSIA.php
index 842aa7f..e2b48ef 100644 (file)
@@ -531,6 +531,8 @@ foreach ($metaData->xpath('//collection') as $collection) {
     }
 }
 
+echo "br.olHost = 'http://openlibrary.org'\n";
+
 if ($useOLAuth) {
     echo "br.olAuth = true;\n";
 } else {
@@ -564,7 +566,7 @@ if (typeof(brConfig) != 'undefined') {
 
 
 function OLAuth() {
-    this.authUrl = 'http://openlibrary.org/ia_auth/' + br.bookId;
+    this.authUrl = br.olHost + '/ia_auth/' + br.bookId;
     this.olConnect = false;
     return this;
 }