changeset 329:b4a5ceb7905d

*** empty log message ***
author abukhman
date Mon, 18 Oct 2010 11:30:56 +0200
parents 5e1953779f90
children c81509acead9
files MpdlXmlTextServer.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/MpdlXmlTextServer.py	Fri Oct 15 16:54:07 2010 +0200
+++ b/MpdlXmlTextServer.py	Mon Oct 18 11:30:56 2010 +0200
@@ -190,9 +190,10 @@
         dom =Parse(text)
         pagedivs = dom.xpath("//div[@class='pageNumberOrig']")
         if len(pagedivs)>0:
-            docinfo['originalPage'] = getTextFromNode(pagedivs[0])
-            return docinfo['originalPage']
-    
+            originalPage = getTextFromNode(pagedivs[0])
+            #return docinfo['originalPage']
+            return originalPage
+            
     def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
         """returns single page from fulltext"""
         docpath = docinfo['textURLPath']