Changeset 449:6c11f3ec8698 in documentViewer for MpdlXmlTextServer.py


Ignore:
Timestamp:
Aug 31, 2011, 1:55:17 PM (13 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r448 r449  
    199199        #mode = pageinfo ['viewMode']
    200200        tocMode = pageinfo['tocMode']
     201        xpointer = pageinfo['xpointer']
    201202        characterNormalization=pageinfo['characterNormalization']
    202203        tocPN = pageinfo['tocPN']
     
    207208            textmode = mode
    208209       
    209         textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s"%(docpath,textmode,pn,characterNormalization)
     210        textParam = "document=%s&mode=%s&pn=%s&characterNormalization=%s&options=withXmlNodeId&xpointer=%s"%(docpath,textmode,pn,characterNormalization, xpointer)
    210211        if highlightQuery is not None:
    211212            #textParam +="&highlightQuery=%s&sn=%s"%(urllib.quote(highlightQuery),sn)
     
    320321                        if href.startswith('#note-'):
    321322                            hrefNode.nodeValue = href.replace('#note-',"?url=%s&viewMode=text&tocMode=%s&tocPN=%s&pn=%s#note-"%(url,tocMode,tocPN,pn))
     323                        #if href.startswith():
    322324                return serializeNode(pagenode)
    323325        if mode == "xml":
Note: See TracChangeset for help on using the changeset viewer.