Changeset 358:0b660cb2889e in documentViewer


Ignore:
Timestamp:
Oct 18, 2010, 12:04:47 PM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r357 r358  
    179179        return myList
    180180   
    181     def getOrigPages (self, docinfo=None, pageinfo=None):
     181    def getOrigPages (self, docinfo=None,pageinfo=None):
    182182        """Show original page """
    183         docpath = docinfo['textURLPath']
    184         url = docinfo['url']
     183        #docpath = docinfo['textURLPath']
     184        #url = docinfo['url']
    185185        selfurl = self.absolute_url()
    186186        pn =pageinfo['current']
     
    188188        viewMode=  pageinfo['viewMode']
    189189        text = self.getServerData("page-fragment.xql","document=%s&mode=%s&pn=%s"%(docinfo['textURLPath'], 'text',  pn))
    190         #text = self.getServerData("page-fragment.xql","document=%s"%(docinfo['textURLPath']))
    191         logging.debug("TEXTIXAXA:%s"%(text))
    192190        dom =Parse(text)
    193191        pagedivs = dom.xpath("//div[@class='pageNumberOrig']")
    194192        if len(pagedivs)>0:
    195193            originalPage = getTextFromNode(pagedivs[0])
    196         #return docinfo['originalPage']
     194            #return docinfo['originalPage']
    197195            return originalPage
    198         #return docinfo
     196            #return docinfo
    199197       
    200198    def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
Note: See TracChangeset for help on using the changeset viewer.