Changeset 449:6c11f3ec8698 in documentViewer


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

* empty log message *

Files:
2 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":
  • documentViewer.py

    r448 r449  
    920920        pageinfo ['highlightElement'] = self.REQUEST.get('highlightElement','')
    921921       
     922        pageinfo ['xpointer'] = self.REQUEST.get('xpointer','')
    922923       
    923924        pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30')
Note: See TracChangeset for help on using the changeset viewer.