comparison MpdlXmlTextServer.py @ 256:ad1458aff8a6

*** empty log message ***
author abukhman
date Wed, 13 Oct 2010 17:35:41 +0200
parents ce129cc3e031
children d1eb63cf3410
comparison
equal deleted inserted replaced
255:ce129cc3e031 256:ad1458aff8a6
155 hrefNode= l.getAttributeNodeNS(None, u"id") 155 hrefNode= l.getAttributeNodeNS(None, u"id")
156 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) 156 logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l))
157 if hrefNode: 157 if hrefNode:
158 href= hrefNode.nodeValue 158 href= hrefNode.nodeValue
159 if href.startswith('id='): 159 if href.startswith('id='):
160 hrefNode.nodeValue = href.replace('id=',"?") 160 hrefNode.nodeValue = href.replace('id=',"?")
161
162 return serializeNode(pagenode) 161 return serializeNode(pagenode)
163 162
164 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""): 163 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
165 """returns single page from fulltext""" 164 """returns single page from fulltext"""
166 docpath = docinfo['textURLPath'] 165 docpath = docinfo['textURLPath']