comparison MpdlXmlTextServer.py @ 379:4b1b5dd7578f

*** empty log message ***
author abukhman
date Mon, 25 Oct 2010 14:23:42 +0200
parents df40c63d69f4
children 4ec393062711
comparison
equal deleted inserted replaced
378:df40c63d69f4 379:4b1b5dd7578f
216 textmode = mode 216 textmode = mode
217 #logging.debug("documentViewer highlightQuery: %s"%(highlightQuery)) 217 #logging.debug("documentViewer highlightQuery: %s"%(highlightQuery))
218 textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization) 218 textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization)
219 if highlightQuery is not None: 219 if highlightQuery is not None:
220 textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn) 220 textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn)
221 logging.debug("documentViewer highlightQuery: %s"%(highlightQuery)) 221 #logging.debug("documentViewer highlightQuery: %s"%(highlightQuery))
222 pagexml = self.getServerData("page-fragment.xql",textParam) 222 pagexml = self.getServerData("page-fragment.xql",textParam)
223 logging.debug("documentViewer highlightQuery: %s"%(highlightQuery))
223 #pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", textParam, outputUnicode=False) 224 #pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", textParam, outputUnicode=False)
224 225
225 pagedom = Parse(pagexml) 226 pagedom = Parse(pagexml)
226 # plain text mode 227 # plain text mode
227 if mode == "text": 228 if mode == "text":