Changeset 358:0b660cb2889e in documentViewer
- Timestamp:
- Oct 18, 2010, 12:04:47 PM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r357 r358 179 179 return myList 180 180 181 def getOrigPages (self, docinfo=None, 181 def getOrigPages (self, docinfo=None,pageinfo=None): 182 182 """Show original page """ 183 docpath = docinfo['textURLPath']184 url = docinfo['url']183 #docpath = docinfo['textURLPath'] 184 #url = docinfo['url'] 185 185 selfurl = self.absolute_url() 186 186 pn =pageinfo['current'] … … 188 188 viewMode= pageinfo['viewMode'] 189 189 text = self.getServerData("page-fragment.xql","document=%s&mode=%s&pn=%s"%(docinfo['textURLPath'], 'text', pn)) 190 #text = self.getServerData("page-fragment.xql","document=%s"%(docinfo['textURLPath']))191 logging.debug("TEXTIXAXA:%s"%(text))192 190 dom =Parse(text) 193 191 pagedivs = dom.xpath("//div[@class='pageNumberOrig']") 194 192 if len(pagedivs)>0: 195 193 originalPage = getTextFromNode(pagedivs[0]) 196 #return docinfo['originalPage']194 #return docinfo['originalPage'] 197 195 return originalPage 198 #return docinfo196 #return docinfo 199 197 200 198 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
Note: See TracChangeset
for help on using the changeset viewer.