Changeset 321:480097b8e685 in documentViewer


Ignore:
Timestamp:
Oct 15, 2010, 1:42:09 PM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r320 r321  
    190190        pagedivs = dom.xpath("//div[@class='pageNumberOrig']")
    191191        logging.debug("getOrigPages :%s"%(pagedivs))
    192         for l in pagedivs:
    193             hrefNode = l.getAttributeNodeNS(None, u"div")
    194             href=hrefNode.nodeValue
    195             logging.debug("XXXXXXXXXXXgetOrigPagesXXXXXXXX :%s"%(href))
    196         return "pagedivs"
     192        original =getTextFromNode(pagedivs[0])
     193        logging.debug("XXXXXXXXXXXgetOrigPagesXXXXXXXX :%s"%(original))
     194        return original
    197195   
    198196    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.