Changeset 402:d3bd3c2674ee in documentViewer for MpdlXmlTextServer.py


Ignore:
Timestamp:
Nov 9, 2010, 12:50:06 PM (13 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r401 r402  
    371371         pagedom = Parse(pagexml)
    372372         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
    375376     
    376377    def getQueryResultHitsText(self,  docinfo=None, pageinfo=None):     
     
    390391         logging.debug("documentViewer (pagedom) pagedom: %s"%(pagedom))
    391392         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
    394396
    395397    def getQueryResultHitsFigures(self,  docinfo=None, pageinfo=None):     
     
    409411         logging.debug("documentViewer (pagedom) pagedom: %s"%(pagedom))
    410412         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
    413416
    414417
Note: See TracChangeset for help on using the changeset viewer.