--- documentViewer/MpdlXmlTextServer.py 2010/10/11 15:54:24 1.85 +++ documentViewer/MpdlXmlTextServer.py 2010/10/13 15:06:03 1.88 @@ -140,15 +140,16 @@ class MpdlXmlTextServer(SimpleItem): docinfo['numPages']=int(getTextFromNode(result[0])) return docinfo - def getGisPlases(self, docinfo): + def getGisPlaces(self, docinfo): """ Show all Gis Places of whole Page""" - xpath='//place' - text=self.getServerData("xpath.xql", "document=%s&xpath=%s&pn=%s"%(docinfo['textURLPath'], xpath,pn)) + #xpath='//place' + text=self.getServerData("xpath.xql", "document=%s&xpath='//place'%s&pn=%s"%(docinfo['textURLPath'],pn)) + logging.debug("documentViewer getGisPlaces (text) text:%s"%(text)) pagedom = Parse(text) - result =pagedom.xpath("//result/resultPage") + result =pagedom.xpath("//result/resultPage/*") for l in result: - hrefNode= l.getAttributeNodeNS(None, u"place") - logging.debug("documentViewer (characterNormalization) l:%s"%(l)) + hrefNode= l.getAttributeNodeNS(None, u"id") + logging.debug("documentViewer getGisPlaces (characterNormalization) l:%s"%(l)) if hrefNode: href= hrefNode.nodeValue if href.startswith('id='):