changeset 191:cffaec9bc5ad

*** empty log message ***
author abukhman
date Tue, 05 Oct 2010 11:22:46 +0200
parents c92e6b923913
children 169a6fbf71ff
files documentViewer.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/documentViewer.py	Tue Oct 05 11:20:51 2010 +0200
+++ b/documentViewer.py	Tue Oct 05 11:22:46 2010 +0200
@@ -177,7 +177,11 @@
     def getNumPages(self, docinfo):
         """get numpages"""
         return self.template.fulltextclient.getNumPages(docinfo)
-
+   
+    def getNumTextPages(self, docinfo):
+        """get numpages text"""
+        return self.template.fulltextclient.getNumTextPages(docinfo)
+   
     def getTranslate(self, **args):
         """get translate"""
         return self.template.fulltextclient.getTranslate(**args)
@@ -611,7 +615,7 @@
             docinfo['textURLPath'] = textUrl
             if not docinfo['imagePath']:
                 # text-only, no page images
-                docinfo = self.getNumPages(docinfo)
+                docinfo = self.getNumTextPages(docinfo)
          
         presentationUrls = dom.xpath("//texttool/presentation")
         docinfo = self.getBibinfoFromIndexMeta(url, docinfo=docinfo, dom=dom)   # get info von bib tag