Changeset 373:0aa294b31236 in documentViewer for MpdlXmlTextServer.py


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r372 r373  
    206206        highlightQuery = pageinfo['highlightQuery']
    207207        tocMode = pageinfo['tocMode']
     208        sn =pageinfo['sn']
    208209        characterNormalization=pageinfo['characterNormalization']
    209210        tocPN = pageinfo['tocPN']
     
    214215            textmode = mode
    215216        #logging.debug("documentViewer highlightQuery: %s"%(highlightQuery))
    216         #textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization)
    217         textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s&highlightQuery=%s&sn=%s"%(docpath,textmode,pn,characterNormalization, highlightQuery, sn)
     217        textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization)
    218218        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)           
     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)           
    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.