Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 370:33adbe140534
*** empty log message ***
author | abukhman |
---|---|
date | Mon, 25 Oct 2010 12:23:25 +0200 |
parents | dc71a34f96a7 |
children | 139432a41244 |
comparison
equal
deleted
inserted
replaced
369:dc71a34f96a7 | 370:33adbe140534 |
---|---|
210 selfurl = self.absolute_url() | 210 selfurl = self.absolute_url() |
211 if mode == "text_dict": | 211 if mode == "text_dict": |
212 textmode = "textPollux" | 212 textmode = "textPollux" |
213 else: | 213 else: |
214 textmode = mode | 214 textmode = mode |
215 logging.debug("documentViewer highlightQuery: %s"%(highlightQuery)) | 215 #logging.debug("documentViewer highlightQuery: %s"%(highlightQuery)) |
216 textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization) | 216 textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization) |
217 #if highlightQuery is not None: | 217 if highlightQuery is not None: |
218 # textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn) | 218 textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn) |
219 | 219 logging.debug("documentViewer highlightQuery: %s"%(highlightQuery)) |
220 pagexml = self.getServerData("page-fragment.xql",textParam) | 220 pagexml = self.getServerData("page-fragment.xql",textParam) |
221 #pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", textParam, outputUnicode=False) | 221 #pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", textParam, outputUnicode=False) |
222 | 222 |
223 pagedom = Parse(pagexml) | 223 pagedom = Parse(pagexml) |
224 # plain text mode | 224 # plain text mode |