Changeset 376:4f381768909a in documentViewer


Ignore:
Timestamp:
Oct 25, 2010, 10:49:04 AM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r375 r376  
    197197   
    198198   
    199     def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None,sn=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
     199    def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None, highlightQuery=None, viewMode=None, tocMode=None, tocPN=None, characterNormalization=""):
    200200        """returns single page from fulltext"""
    201201        docpath = docinfo['textURLPath']
     
    204204        name = docinfo['name']
    205205        viewMode= pageinfo['viewMode']
     206        sn = pageinfo['sn']
    206207        highlightQuery = pageinfo['highlightQuery']
     208       
    207209        tocMode = pageinfo['tocMode']
    208         sn =pageinfo['sn']
    209210        characterNormalization=pageinfo['characterNormalization']
    210211        tocPN = pageinfo['tocPN']
     
    214215        else:
    215216            textmode = mode
    216         logging.debug("documentViewer highlightQuery: %s"%(highlightQuery))
     217        #logging.debug("documentViewer highlightQuery: %s"%(highlightQuery))
    217218        textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization)
    218219        if highlightQuery is not None:
    219             textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn)
    220             #textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s&highlightQuery=%s&sn=%s"%(docpath,textmode,pn,characterNormalization, highlightQuery, sn)           
     220            textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn)           
    221221            logging.debug("documentViewer highlightQuery: %s"%(highlightQuery))
    222222        pagexml = self.getServerData("page-fragment.xql",textParam)
Note: See TracChangeset for help on using the changeset viewer.