comparison MpdlXmlTextServer.py @ 271:fb13d8054a23

*** empty log message ***
author abukhman
date Thu, 14 Oct 2010 11:22:37 +0200
parents 4c79d0f9b185
children 7a52ace035e6
comparison
equal deleted inserted replaced
270:4c79d0f9b185 271:fb13d8054a23
155 for l in result: 155 for l in result:
156 hrefNode= l.getAttributeNodeNS(None, u"id") 156 hrefNode= l.getAttributeNodeNS(None, u"id")
157 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) 157 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l))
158 if hrefNode: 158 if hrefNode:
159 href= hrefNode.nodeValue 159 href= hrefNode.nodeValue
160 if href.startswith('N'): 160 #if href.startswith('id='):
161 #hrefNode.nodeValue = href.replace('id=',"?") 161 #hrefNode.nodeValue = href.replace('id=',"?")
162 #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue)) 162 #logging.debug("documentViewer getGisPlaces (characterNormalization) hrefNode.nodeValue:%s"%(hrefNode.nodeValue))
163 logging.debug("documentViewer getGisPlaces (characterNormalization) href:%s"%(href)) 163 logging.debug("documentViewer getGisPlaces (characterNormalization) href:%s"%(href))
164 logging.debug("ALL GIS TOGETHER href:%s"%(href))
165 logging.debug("ALL GIS TOGETHER href:%s"%(href))
166 logging.debug("documentViewer getGisPlaces ALL GIS TOGETHER href:%s"%(href[i]))
167 return serializeNode(href) 164 return serializeNode(href)
168 165
169 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=""):
170 """returns single page from fulltext""" 167 """returns single page from fulltext"""
171 docpath = docinfo['textURLPath'] 168 docpath = docinfo['textURLPath']