Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 192:169a6fbf71ff
*** empty log message ***
| author | abukhman |
|---|---|
| date | Tue, 05 Oct 2010 11:45:40 +0200 |
| parents | c92e6b923913 |
| children | 9097dd41bc90 |
comparison
equal
deleted
inserted
replaced
| 191:cffaec9bc5ad | 192:169a6fbf71ff |
|---|---|
| 133 if 'numPages' in docinfo: | 133 if 'numPages' in docinfo: |
| 134 # allredy there | 134 # allredy there |
| 135 return docinfo | 135 return docinfo |
| 136 xpath ='/count(//pb)' | 136 xpath ='/count(//pb)' |
| 137 text=self.getServerData("xpath.xql", "document=%sxpath=%s"%(docinfo['textURLPath'], xpath)) | 137 text=self.getServerData("xpath.xql", "document=%sxpath=%s"%(docinfo['textURLPath'], xpath)) |
| 138 logging.debug("documentViewer (text) text: %s"%(text)) | |
| 138 docinfo['numPages']=text.xpath | 139 docinfo['numPages']=text.xpath |
| 140 #logging.debug("documentViewer (characterNormalization) characterNormalization: %s"%(characterNormalization)) | |
| 139 return docinfo | 141 return docinfo |
| 140 | 142 |
| 141 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): | 143 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): |
| 142 """returns single page from fulltext""" | 144 """returns single page from fulltext""" |
| 143 docpath = docinfo['textURLPath'] | 145 docpath = docinfo['textURLPath'] |
