Changeset 376:4f381768909a in documentViewer
- Timestamp:
- Oct 25, 2010, 10:49:04 AM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r375 r376 197 197 198 198 199 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None, sn=None,viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):199 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): 200 200 """returns single page from fulltext""" 201 201 docpath = docinfo['textURLPath'] … … 204 204 name = docinfo['name'] 205 205 viewMode= pageinfo['viewMode'] 206 sn = pageinfo['sn'] 206 207 highlightQuery = pageinfo['highlightQuery'] 208 207 209 tocMode = pageinfo['tocMode'] 208 sn =pageinfo['sn']209 210 characterNormalization=pageinfo['characterNormalization'] 210 211 tocPN = pageinfo['tocPN'] … … 214 215 else: 215 216 textmode = mode 216 logging.debug("documentViewer highlightQuery: %s"%(highlightQuery))217 #logging.debug("documentViewer highlightQuery: %s"%(highlightQuery)) 217 218 textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization) 218 219 if highlightQuery is not None: 219 textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn) 220 #textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s&highlightQuery=%s&sn=%s"%(docpath,textmode,pn,characterNormalization, highlightQuery, sn) 220 textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn) 221 221 logging.debug("documentViewer highlightQuery: %s"%(highlightQuery)) 222 222 pagexml = self.getServerData("page-fragment.xql",textParam)
Note: See TracChangeset
for help on using the changeset viewer.