Changeset 406:8511e5bf4b08 in documentViewer
- Timestamp:
- Nov 23, 2010, 5:05:20 PM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r403 r406 216 216 217 217 218 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=" ", highlightQuery=None, sn=None, optionToggle=None):218 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization="regPlusNorm", highlightQuery=None, sn=None, optionToggle=None): 219 219 """returns single page from fulltext""" 220 220 docpath = docinfo['textURLPath'] … … 467 467 tocPN = pageinfo['tocPN'] 468 468 469 data = self.getServerData("doc-query.xql","document=%s&queryType=%s&queryResultPageSize=%s&queryResultPN=%s&characterNormalization= %s&optionToggle=%s"%(docpath,queryType, pagesize, pn,characterNormalization,optionToggle))469 data = self.getServerData("doc-query.xql","document=%s&queryType=%s&queryResultPageSize=%s&queryResultPN=%s&characterNormalization=regPlusNorm&optionToggle=%s"%(docpath,queryType, pagesize, pn,optionToggle)) 470 470 page = data.replace('page-fragment.xql?document=%s'%str(path),'%s?url=%s&viewMode=%s&tocMode=%s&tocPN=%s&optionToggle=%s'%(selfurl,url, viewMode, tocMode, tocPN,optionToggle)) 471 471 text = page.replace('mode=image','mode=texttool')
Note: See TracChangeset
for help on using the changeset viewer.