Changeset 402:d3bd3c2674ee in documentViewer
- Timestamp:
- Nov 9, 2010, 12:50:06 PM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r401 r402 371 371 pagedom = Parse(pagexml) 372 372 numdivs = pagedom.xpath("//div[@class='queryResultHits']") 373 tocSearch = int(getTextFromNode(numdivs[0])) 374 return tocSearch 373 tocSearch = int(getTextFromNode(numdivs[0])) 374 tc=int((tocSearch/10)+1) 375 return tc 375 376 376 377 def getQueryResultHitsText(self, docinfo=None, pageinfo=None): … … 390 391 logging.debug("documentViewer (pagedom) pagedom: %s"%(pagedom)) 391 392 numdivs = pagedom.xpath("//div[@class='queryResultHits']") 392 tocSearch = int(getTextFromNode(numdivs[0])) 393 return tocSearch 393 tocSearch = int(getTextFromNode(numdivs[0])) 394 tc=int((tocSearch/10)+1) 395 return tc 394 396 395 397 def getQueryResultHitsFigures(self, docinfo=None, pageinfo=None): … … 409 411 logging.debug("documentViewer (pagedom) pagedom: %s"%(pagedom)) 410 412 numdivs = pagedom.xpath("//div[@class='queryResultHits']") 411 tocSearch = int(getTextFromNode(numdivs[0])) 412 return tocSearch 413 tocSearch = int(getTextFromNode(numdivs[0])) 414 tc=int((tocSearch/10)+1) 415 return tc 413 416 414 417
Note: See TracChangeset
for help on using the changeset viewer.