--- documentViewer/MpdlXmlTextServer.py 2010/11/02 15:51:41 1.203 +++ documentViewer/MpdlXmlTextServer.py 2010/11/03 14:59:05 1.204 @@ -139,6 +139,9 @@ class MpdlXmlTextServer(SimpleItem): docinfo['numPages']=int(getTextFromNode(result[0])) return docinfo + #def getQueryResultHits(self, docinfo=None, pageinfo=None): + + def getGisPlaces(self, docinfo=None, pageinfo=None): """ Show all Gis Places of whole Page""" xpath='//place' @@ -348,6 +351,7 @@ class MpdlXmlTextServer(SimpleItem): pagedom = Parse(pagexml) numdivs = pagedom.xpath("//div[@class='queryResultHits']") tocSearch = int(getTextFromNode(numdivs[0])) + logging.debug("documentViewer (gettoc) tocSearch: %s"%(tocSearch)) tc=int((tocSearch/10)+1) logging.debug("documentViewer (gettoc) tc: %s"%(tc)) return tc