--- documentViewer/MpdlXmlTextServer.py 2010/10/15 10:30:52 1.145 +++ documentViewer/MpdlXmlTextServer.py 2010/10/15 12:05:32 1.148 @@ -42,8 +42,6 @@ class MpdlXmlTextServer(SimpleItem): """get search list""" docpath = docinfo['textURLPath'] url = docinfo['url'] - logging.debug("documentViewer (gettoc) docpath: %s"%(docpath)) - logging.debug("documentViewer (gettoc) url: %s"%(url)) pagesize = pageinfo['queryPageSize'] pn = pageinfo['searchPN'] sn = pageinfo['sn'] @@ -180,6 +178,18 @@ class MpdlXmlTextServer(SimpleItem): logging.debug("getALLGisPlaces :%s"%(myList)) return myList + def getOrigPages (self, docinfo=None, pageinfo=None): + """Show original page """ + docpath = docinfo['textURLPath'] + #url = docinfo['url'] + selfurl = self.absolute_url() + pn =pageinfo['current'] + viewMode= pageinfo['viewMode'] + text = self.getServerData("page-fragment.xql","document=%s&mode=%s&pn=%s"%(docinfo['textURLPath'], mode, pn)) + dom =Parse(text) + pagedivs = dom.xpath("//div[@class='pageNumberOrig']") + logging.debug("getOrigPages :%s"%(pagedivs)) + return "pagedivs" 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"""