changeset 196:60c98265a8dd

*** empty log message ***
author abukhman
date Tue, 05 Oct 2010 12:49:25 +0200
parents 2c2dcfbb701c
children 9226f1b456eb
files MpdlXmlTextServer.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Tue Oct 05 12:38:17 2010 +0200
+++ b/MpdlXmlTextServer.py	Tue Oct 05 12:49:25 2010 +0200
@@ -136,8 +136,9 @@
         xpath ='/count(//pb)'
         text=self.getServerData("xpath.xql", "document=%s&xpath=%s"%(docinfo['textURLPath'], xpath))
         logging.debug("documentViewer (text) text: %s"%(text))
-        docinfo['numPages']=text('resultPage')
-        logging.debug("documentViewer (characterNormalization) docinfo['numPages']: %s"%(docinfo['numPages']))
+        #docinfo['numPages']=text('resultPage')
+        docinfo['numPages']= pagedom.text("//resultPage")
+        #logging.debug("documentViewer (characterNormalization) docinfo['numPages']: %s"%(docinfo['numPages']))
         return docinfo
        
     def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):