changeset 431:630a4581992a

*** empty log message ***
author abukhman
date Tue, 15 Feb 2011 12:12:39 +0100
parents d6a2125a4b09
children 8d8f2cbd6213
files MpdlXmlTextServer.py
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Mon Feb 14 15:41:13 2011 +0100
+++ b/MpdlXmlTextServer.py	Tue Feb 15 12:12:39 2011 +0100
@@ -209,7 +209,15 @@
             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 @@
             docinfo['countPlaces'] = 0
             docinfo['countTocEntries'] = 0
             docinfo['numPages'] = 0
+            docinfo['pageNumberOrigNorm'] = 0
         #return docinfo
         
         # plain text mode