Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 363:c89ae357ae48
*** empty log message ***
author | abukhman |
---|---|
date | Mon, 18 Oct 2010 14:39:14 +0200 |
parents | c1381556f389 |
children | bae6bb66aa9d |
comparison
equal
deleted
inserted
replaced
362:1ed87e862806 | 363:c89ae357ae48 |
---|---|
52 tocMode = pageinfo['tocMode'] | 52 tocMode = pageinfo['tocMode'] |
53 characterNormalization = pageinfo['characterNormalization'] | 53 characterNormalization = pageinfo['characterNormalization'] |
54 tocPN = pageinfo['tocPN'] | 54 tocPN = pageinfo['tocPN'] |
55 selfurl = self.absolute_url() | 55 selfurl = self.absolute_url() |
56 | 56 |
57 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))) | 57 data = self.getServerData("doc-query.xql","document=%s&mode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&sn=%s&viewMode=%s&characterNormalization=%s&highlightQuery=%s"%(docpath, 'text', queryType, urllib.quote(query), pagesize, pn, sn, viewMode,characterNormalization ,urllib.quote(highlightQuery))) |
58 #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) | 58 #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) |
59 | 59 |
60 pagexml = data.replace('?document=%s'%str(docpath),'?url=%s'%url) | 60 pagexml = data.replace('?document=%s'%str(docpath),'?url=%s'%url) |
61 pagedom = Parse(pagexml) | 61 pagedom = Parse(pagexml) |
62 if (queryType=="fulltext")or(queryType=="xpath")or(queryType=="xquery")or(queryType=="fulltextMorphLemma"): | 62 if (queryType=="fulltext")or(queryType=="xpath")or(queryType=="xquery")or(queryType=="fulltextMorphLemma"): |