Changeset 431:630a4581992a in documentViewer


Ignore:
Timestamp:
Feb 15, 2011, 11:12:39 AM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r428 r431  
    210210                docinfo['pageNumberOrig']= getTextFromNode(pagedivs[0])
    211211                logging.debug("ORIGINAL PAGES: %s"%(docinfo['pageNumberOrig']))
    212                          
     212       
     213        #original Pages Norm
     214        pagedivs = dom.xpath("//div[@class='pageNumberOrigNorm']")
     215        if pagedivs == dom.xpath("//div[@class='pageNumberOrigNorm']"):
     216            if len(pagedivs)>0:
     217                docinfo['pageNumberOrigNorm']= getTextFromNode(pagedivs[0])
     218                logging.debug("ORIGINAL PAGES: %s"%(docinfo['pageNumberOrigNorm']))
     219
     220       
    213221        #figureEntries
    214222        pagedivs = dom.xpath("//div[@class='countFigureEntries']")
     
    289297            docinfo['countTocEntries'] = 0
    290298            docinfo['numPages'] = 0
     299            docinfo['pageNumberOrigNorm'] = 0
    291300        #return docinfo
    292301       
Note: See TracChangeset for help on using the changeset viewer.