Mercurial > hg > documentViewer
changeset 321:480097b8e685
*** empty log message ***
author | abukhman |
---|---|
date | Fri, 15 Oct 2010 15:42:09 +0200 |
parents | 719e6e985677 |
children | 9adbedb6f85b |
files | MpdlXmlTextServer.py |
diffstat | 1 files changed, 3 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/MpdlXmlTextServer.py Fri Oct 15 15:39:15 2010 +0200 +++ b/MpdlXmlTextServer.py Fri Oct 15 15:42:09 2010 +0200 @@ -189,11 +189,9 @@ dom =Parse(text) pagedivs = dom.xpath("//div[@class='pageNumberOrig']") logging.debug("getOrigPages :%s"%(pagedivs)) - for l in pagedivs: - hrefNode = l.getAttributeNodeNS(None, u"div") - href=hrefNode.nodeValue - logging.debug("XXXXXXXXXXXgetOrigPagesXXXXXXXX :%s"%(href)) - return "pagedivs" + original =getTextFromNode(pagedivs[0]) + logging.debug("XXXXXXXXXXXgetOrigPagesXXXXXXXX :%s"%(original)) + return original 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"""