Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 290:21e87569f711
*** empty log message ***
author | abukhman |
---|---|
date | Thu, 14 Oct 2010 14:03:20 +0200 |
parents | 86ebbefd3c31 |
children | 3b54df7ca88e |
comparison
equal
deleted
inserted
replaced
289:86ebbefd3c31 | 290:21e87569f711 |
---|---|
155 hrefNode= l.getAttributeNodeNS(None, u"id") | 155 hrefNode= l.getAttributeNodeNS(None, u"id") |
156 href= hrefNode.nodeValue | 156 href= hrefNode.nodeValue |
157 | 157 |
158 #href = ",".join(href) | 158 #href = ",".join(href) |
159 logging.debug("getGisPlaces :%s"%(href)) | 159 logging.debug("getGisPlaces :%s"%(href)) |
160 return href | 160 |
161 #return ";".join(["%s=%s" % (href, href) for href, href in params.items()]) | 161 #return ";".join(["%s=%s" % (href, href) for href, href in params.items()]) |
162 logging.debug("getGisPlaces :%s"%(href)) | 162 logging.debug("getGisPlaces :%s"%(href)) |
163 #if href.startswith('id='): | 163 #if href.startswith('id='): |
164 #hrefNode.nodeValue = href.replace('id=',"?") | 164 #hrefNode.nodeValue = href.replace('id=',"?") |
165 #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue)) | 165 #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue)) |
166 logging.debug("getGisPlaces :%s"%(href)) | 166 #logging.debug("getGisPlaces :%s"%(href)) |
167 return "no text here" | 167 return href |
168 #return "no text here" | |
168 | 169 |
169 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): | 170 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): |
170 """returns single page from fulltext""" | 171 """returns single page from fulltext""" |
171 docpath = docinfo['textURLPath'] | 172 docpath = docinfo['textURLPath'] |
172 path = docinfo['textURLPath'] | 173 path = docinfo['textURLPath'] |