version 1.37, 2010/09/24 12:21:00
|
version 1.38, 2010/09/24 12:22:15
|
Line 149 class MpdlXmlTextServer(SimpleItem):
|
Line 149 class MpdlXmlTextServer(SimpleItem):
|
if highlightQuery is not None: |
if highlightQuery is not None: |
textParam +="&highlightQuery=%s&sn=%s"%(highlightQuery,sn) |
textParam +="&highlightQuery=%s&sn=%s"%(highlightQuery,sn) |
|
|
pagexml = self.getServerData("page-fragment.xql",urllib.quote(textParam)) |
pagexml = self.getServerData("page-fragment.xql",textParam) |
#pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", textParam, outputUnicode=False) |
#pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", textParam, outputUnicode=False) |
|
|
pagedom = Parse(pagexml) |
pagedom = Parse(urllib.quote(pagexml)) |
# plain text mode |
# plain text mode |
if mode == "text": |
if mode == "text": |
# first div contains text |
# first div contains text |