Mercurial > hg > documentViewer
changeset 178:3d9fd9dba38a
*** empty log message ***
author | abukhman |
---|---|
date | Thu, 23 Sep 2010 17:03:51 +0200 |
parents | 393234132abd |
children | ac715583385b |
files | MpdlXmlTextServer.py |
diffstat | 1 files changed, 1 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/MpdlXmlTextServer.py Thu Sep 23 16:49:47 2010 +0200 +++ b/MpdlXmlTextServer.py Thu Sep 23 17:03:51 2010 +0200 @@ -48,7 +48,7 @@ pn = pageinfo['searchPN'] sn = pageinfo['sn'] highlightQuery = pageinfo['highlightQuery'] - query =pageinfo['query'] + #query =pageinfo['query'] queryType =pageinfo['queryType'] viewMode= pageinfo['viewMode'] tocMode = pageinfo['tocMode'] @@ -243,20 +243,6 @@ data = self.getServerData("lt/lemma.xql","document=&language="+str(language)+"&lemma="+urllib.quote(query)) #pagexml=self.template.fulltextclient.eval("/mpdl/interface/lt/lemma.xql","document=&language="+str(language)+"&lemma="+url_quote(str(query))) return data - - def getGis (self, mode="gis", pn=1, pageinfo=None, docinfo=None): - docpath = docinfo['textURLPath'] - path = docinfo['textURLPath'] - pagesize = pageinfo['tocPageSize'] - pn = pageinfo['tocPN'] - url = docinfo['url'] - selfurl = self.absolute_url() - viewMode= pageinfo['viewMode'] - tocMode = pageinfo['tocMode'] - tocPN = pageinfo['tocPN'] - data = self.getServerData("doc-query.xql","document=%s&queryType=%s&queryResultPageSize=%s&queryResultPN=%s"%(docpath,queryType, pagesize, pn)) - page =data.replace("http://chinagis.mpiwg-berlin.mpg.de/chinagis_REST/REST/","http://chinagis.mpiwg-berlin.mpg.de/chinagis/REST/") - return page def getQuery (self, docinfo=None, pageinfo=None, query=None, queryType=None, pn=1): """number of"""