Mercurial > hg > documentViewer
comparison MpdlXmlTextServer.py @ 263:b81fd7cafa91
*** empty log message ***
author | abukhman |
---|---|
date | Wed, 13 Oct 2010 18:24:18 +0200 |
parents | 9b931ab7d76c |
children | ac93e115d902 |
comparison
equal
deleted
inserted
replaced
262:9b931ab7d76c | 263:b81fd7cafa91 |
---|---|
157 hrefNode= l.getAttributeNodeNS(None, u"id") | 157 hrefNode= l.getAttributeNodeNS(None, u"id") |
158 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) | 158 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) |
159 if hrefNode: | 159 if hrefNode: |
160 href= hrefNode.nodeValue | 160 href= hrefNode.nodeValue |
161 if href.startswith('id='): | 161 if href.startswith('id='): |
162 hrefNode.nodeValue = href.replace('id=',"?") | 162 hrefNode.nodeValue = href.replace('id=',"?") |
163 logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue)) | |
163 return serializeNode(pagenode) | 164 return serializeNode(pagenode) |
164 | 165 |
165 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): | 166 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): |
166 """returns single page from fulltext""" | 167 """returns single page from fulltext""" |
167 docpath = docinfo['textURLPath'] | 168 docpath = docinfo['textURLPath'] |