IA-specific: Patch from Tracey for new way to get item metadata
authorMichael Ang <mang@archive.org>
Wed, 26 Oct 2011 19:15:32 +0000 (19:15 +0000)
committerMichael Ang <mang@archive.org>
Wed, 26 Oct 2011 19:16:45 +0000 (19:16 +0000)
BookReaderIA/inc/BookReader.inc

index 96c1f3a..af15feb 100644 (file)
@@ -37,7 +37,7 @@ class BookReader
     // https://bugs.edge.launchpad.net/gnubook/+bug/385397
     $imageFormatRegex = '@' . preg_quote($prefix, '@') . '_(jp2|tif|jpg)\.(zip|tar)$@';
     
-    $baseLength = strlen($item->metadataGrabber->mainDir . '/');
+    $baseLength = strlen($item->getMainDir() . '/');
     foreach ($item->getFiles() as $location => $fileInfo) {
         $filename = substr($location, $baseLength);