--- documentViewer/MpdlXmlTextServer.py 2010/10/05 09:20:51 1.43 +++ documentViewer/MpdlXmlTextServer.py 2010/10/05 09:58:00 1.46 @@ -134,8 +134,10 @@ class MpdlXmlTextServer(SimpleItem): # allredy there return docinfo xpath ='/count(//pb)' - text=self.getServerData("xpath.xql", "document=%sxpath=%s"%(docinfo['textURLPath'], xpath)) - docinfo['numPages']=text.xpath + text=self.getServerData("xpath.xql", "document=%s&xpath=%s"%(docinfo['textURLPath'], xpath)) + logging.debug("documentViewer (text) text: %s"%(text)) + docinfo['numPages']=text.xpath(resultPage) + #logging.debug("documentViewer (characterNormalization) characterNormalization: %s"%(characterNormalization)) return docinfo def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):