Changeset 108:726a71254086 in documentViewer
- Timestamp:
- May 21, 2010, 9:33:44 AM (14 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r107 r108 666 666 pageinfo['queryType'] = self.REQUEST.get('queryType',' ') 667 667 pageinfo['querySearch'] =self.REQUEST.get('querySearch', 'fulltext') 668 668 pageinfo['sn'] = self.REQUEST.get('sn','') 669 669 pageinfo['textPN'] = self.REQUEST.get('textPN','1') 670 670 pageinfo['highlightQuery'] = self.REQUEST.get('highlightQuery','') … … 786 786 return docinfo 787 787 788 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, ):788 def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None): 789 789 """returns single page from fulltext""" 790 790 docpath = docinfo['textURLPath'] 791 #pageinfo = pageinfo['highlightQuery'] 791 792 if mode == "text_dict": 792 793 textmode = "textPollux" … … 799 800 #tocPN = pageinfo['tocPN'] 800 801 801 pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", "document=%s&mode=%s&pn=%s"%(docpath,textmode,pn), outputUnicode=False) 802 pagexml=self.template.fulltextclient.eval("/mpdl/interface/page-fragment.xql", "document=%s&mode=%s&pn=%s&highlightQuery=%s&sn=%s"%(docpath,textmode,pn,highlightQuery,sn), outputUnicode=False) 803 logging.debug("documentViewer (gettoc) document=%s&mode=%s&pn=%s&highlightQuery=%s"%(docpath,textmode,pn,highlightQuery)) 802 804 # post-processing downloaded xml 803 805 pagedom = Parse(pagexml)
Note: See TracChangeset
for help on using the changeset viewer.