|
|
| version 1.14, 2010/08/24 09:20:20 | version 1.15, 2010/08/24 09:22:31 |
|---|---|
| Line 165 class MpdlXmlTextServer(SimpleItem): | Line 165 class MpdlXmlTextServer(SimpleItem): |
| if hrefNode: | if hrefNode: |
| href= hrefNode.nodeValue | href= hrefNode.nodeValue |
| if href.startswith('#note-'): | if href.startswith('#note-'): |
| hrefNode.nodeValue = href.replace('#note-',"?url=%s&viewMode=%s&tocMode=%s&characterNormalization=%s&tocPN=%s&pn=%s#note-"%(url,viewMode,tocMode,characterNormalization,tocPN,pn)) | hrefNode.nodeValue = href.replace('#note-',"?url=%s&viewMode=%s&tocMode=%s&tocPN=%s&pn=%s#note-"%(url,viewMode,tocMode,tocPN,pn)) |
| return serializeNode(pagenode) | return serializeNode(pagenode) |
| if mode == "xml": | if mode == "xml": |
| # first div contains text | # first div contains text |
| Line 215 class MpdlXmlTextServer(SimpleItem): | Line 215 class MpdlXmlTextServer(SimpleItem): |
| l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=700, scrollbars=1'); return false;") | l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=700, scrollbars=1'); return false;") |
| l.setAttributeNS(None, 'onClick', 'popupWin.focus();') | l.setAttributeNS(None, 'onClick', 'popupWin.focus();') |
| if href.startswith('#note-'): | if href.startswith('#note-'): |
| hrefNode.nodeValue = href.replace('#note-',"?url=%s&viewMode=%s&tocMode=%s&characterNormalization=%s&tocPN=%s&pn=%s#note-"%(url,viewMode,tocMode,characterNormalization,tocPN,pn)) | hrefNode.nodeValue = href.replace('#note-',"?url=%s&viewMode=%s&tocMode=%s&tocPN=%s&pn=%s#note-"%(url,viewMode,tocMode,tocPN,pn)) |
| return serializeNode(pagenode) | return serializeNode(pagenode) |
| return "no text here" | return "no text here" |