"preview" uses marked cover for books >= 1923. "cover0" returns first marked cover...
[bookreader.git] / BookReaderIA / datanode / BookReaderMeta.inc.php
index 601e6b1..abc47f3 100644 (file)
@@ -397,7 +397,7 @@ class BookReaderMeta {
     
     function imageFilePath($leafNum, $subPrefix, $format) {
         $pathParts = pathinfo($subPrefix);
-        $almostIdentifier = $pathParts['filename'];
+        $almostIdentifier = $pathParts['basename'];
         return sprintf("%s_%s/%s_%04d.%s", $almostIdentifier, $format, $almostIdentifier, intval($leafNum), $format);
     }
     
@@ -418,7 +418,7 @@ class BookReaderMeta {
         
         // Check if we're on a dev vhost and point to JSIA in the user's public_html on the datanode
         // $$$ TODO consolidate this logic
-        $devHosts = array('testflip', 'rkumar', 'mang', 'mccabe');
+        $devHosts = array('testflip', 'rkumar', 'mang');
         foreach ($devHosts as $host) {
             if (strpos($_SERVER["REQUEST_URI"], '/~' . $host) === 0) { // Serving out of home dir
                 $server .= ':80/' . $host;