Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 188:a7610241ae57
*** empty log message ***
author | abukhman |
---|---|
date | Fri, 24 Sep 2010 15:48:03 +0200 |
parents | 0b27f1c1e34b |
children | 9794ccda39de |
comparison
equal
deleted
inserted
replaced
187:0b27f1c1e34b | 188:a7610241ae57 |
---|---|
54 tocMode = pageinfo['tocMode'] | 54 tocMode = pageinfo['tocMode'] |
55 characterNormalization = pageinfo['characterNormalization'] | 55 characterNormalization = pageinfo['characterNormalization'] |
56 tocPN = pageinfo['tocPN'] | 56 tocPN = pageinfo['tocPN'] |
57 selfurl = self.absolute_url() | 57 selfurl = self.absolute_url() |
58 | 58 |
59 data = self.getServerData("doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&sn=%s&viewMode=%s&highlightQuery=%s"%(docpath, 'text', queryType, urllib.quote(query), pagesize, pn, sn, viewMode,highlightQuery)) | 59 data = self.getServerData("doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&sn=%s&viewMode=%s&highlightQuery=%s"%(docpath, 'text', queryType, urllib.quote(query), pagesize, pn, sn, viewMode,urllib.quote(highlightQuery))) |
60 #page=self.template.fulltextclient.eval("/mpdl/interface/doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&sn=%s&viewMode=%s&highlightQuery=%s"%(docpath, 'text', queryType, query, pagesize, pn, sn, viewMode,highlightQuery) ,outputUnicode=False) | 60 #page=self.template.fulltextclient.eval("/mpdl/interface/doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&sn=%s&viewMode=%s&highlightQuery=%s"%(docpath, 'text', queryType, query, pagesize, pn, sn, viewMode,highlightQuery) ,outputUnicode=False) |
61 | 61 |
62 pagexml = data.replace('?document=%s'%str(docpath),'?url=%s'%url) | 62 pagexml = data.replace('?document=%s'%str(docpath),'?url=%s'%url) |
63 pagedom = Parse(pagexml) | 63 pagedom = Parse(pagexml) |
64 if (queryType=="fulltext")or(queryType=="xpath")or(queryType=="xquery")or(queryType=="fulltextMorphLemma"): | 64 if (queryType=="fulltext")or(queryType=="xpath")or(queryType=="xquery")or(queryType=="fulltextMorphLemma"): |