Handling of non-jp2 image formats using ImageMagick's convert
[bookreader.git] / BookReaderIA / inc / BookReader.inc
index 2044bf0..3823e79 100644 (file)
@@ -88,7 +88,7 @@ class BookReader
   // 
   // @param subprefix Optional prefix to display a book inside an item (e.g. if does not match identifier)
   public static function draw($server, $mainDir, $identifier, $subPrefix, $title,
-                              $coverLeaf=null, $titleStart='Internet Archive', $uiMode='full', $protected = false)
+                              $coverLeaf=null, $titleStart='Internet Archive', $uiMode='full', $protected = false, $isAdmin=false)
   {
     // Set title to default if not set
     if (!$title) {
@@ -100,7 +100,7 @@ class BookReader
     // manually update with Launchpad version number at each checkin so that browsers
     // do not use old cached version
     // see https://bugs.launchpad.net/gnubook/+bug/330748
-    $version = "3.0.1";
+    $version = "3.0.5";
     
     if (BookReader::getDevHost($server)) {
         // On dev host - add time to force reload
@@ -190,6 +190,9 @@ class BookReader
 <? } else { ?>
   brConfig["mode"] = 2;
 <? } ?>
+<? if ($isAdmin == true) {
+     echo '  brConfig["isAdmin"] = true;';
+   } ?>   
 </script>
 <script type="text/javascript">
 // The URL in the script tag below is dynamically generated JavaScript that includes the book metadata and page image access functions.