Changeset 384:4ec393062711 in documentViewer


Ignore:
Timestamp:
Oct 26, 2010, 2:44:55 PM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r379 r384  
    197197   
    198198   
    199     def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
     199    def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization="", highlightQuery=None, sn=None):
    200200        """returns single page from fulltext"""
    201201        docpath = docinfo['textURLPath']
  • documentViewer.py

    r382 r384  
    773773        pageinfo['tocMode'] = tocMode
    774774        #pageinfo ['originalPage'] = self.getOrigPages(docinfo=None, pageinfo=None)
    775         pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization',None)
    776         pageinfo['query'] = self.REQUEST.get('query',None)
    777         pageinfo['queryType'] = self.REQUEST.get('queryType',None)
     775        pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization','')
     776        pageinfo['query'] = self.REQUEST.get('query','')
     777        pageinfo['queryType'] = self.REQUEST.get('queryType','')
    778778        pageinfo['querySearch'] =self.REQUEST.get('querySearch', 'fulltext')
    779779        pageinfo['textPN'] = self.REQUEST.get('textPN','1')
    780         pageinfo['highlightQuery'] = self.REQUEST.get('highlightQuery',None)
     780        pageinfo['highlightQuery'] = self.REQUEST.get('highlightQuery','')
    781781        pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30')
    782782        pageinfo['queryPageSize'] =self.REQUEST.get('queryPageSize', '10')
Note: See TracChangeset for help on using the changeset viewer.