--- documentViewer/MpdlXmlTextServer.py 2011/02/14 14:41:12 1.225 +++ documentViewer/MpdlXmlTextServer.py 2011/02/15 11:12:39 1.226 @@ -209,7 +209,15 @@ class MpdlXmlTextServer(SimpleItem): if len(pagedivs)>0: docinfo['pageNumberOrig']= getTextFromNode(pagedivs[0]) logging.debug("ORIGINAL PAGES: %s"%(docinfo['pageNumberOrig'])) - + + #original Pages Norm + pagedivs = dom.xpath("//div[@class='pageNumberOrigNorm']") + if pagedivs == dom.xpath("//div[@class='pageNumberOrigNorm']"): + if len(pagedivs)>0: + docinfo['pageNumberOrigNorm']= getTextFromNode(pagedivs[0]) + logging.debug("ORIGINAL PAGES: %s"%(docinfo['pageNumberOrigNorm'])) + + #figureEntries pagedivs = dom.xpath("//div[@class='countFigureEntries']") if pagedivs == dom.xpath("//div[@class='countFigureEntries']"): @@ -288,6 +296,7 @@ class MpdlXmlTextServer(SimpleItem): docinfo['countPlaces'] = 0 docinfo['countTocEntries'] = 0 docinfo['numPages'] = 0 + docinfo['pageNumberOrigNorm'] = 0 #return docinfo # plain text mode