Changeset 446:48f33478acec in documentViewer
- Timestamp:
- Jul 18, 2011, 1:59:03 PM (13 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MpdlXmlTextServer.py
r445 r446 107 107 hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s/template/head_main_query'%(selfurl)) 108 108 l.setAttributeNS(None, 'target', '_blank') 109 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width= 500,height=600,top=180, left=400, scrollbars=1'); return false;")109 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=300,height=400,top=180, left=400, scrollbars=1'); return false;") 110 110 l.setAttributeNS(None, 'onDblclick', 'popupWin.focus();') 111 111 pagedivs = pagedom.xpath("//div[@class='queryResultMorphExpansion']") … … 129 129 hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s/template/head_main_lemma'%(selfurl)) 130 130 l.setAttributeNS(None, 'target', '_blank') 131 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width= 500,height=600,top=180, left=400, scrollbars=1'); return false;")131 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=300,height=400,top=180, left=400, scrollbars=1'); return false;") 132 132 l.setAttributeNS(None, 'onDblclick', 'popupWin.focus();') 133 133 return serializeNode(pagenode) … … 370 370 hrefNode.nodeValue = href.replace('http://mpdl-proto.mpiwg-berlin.mpg.de/mpdl/lt/lemma.xql','%s/head_main_lemma'%selfurl) 371 371 l.setAttributeNS(None, 'target', '_blank') 372 l.setAttributeNS(None, 'onclick',"popupWin = window.open(this.href, 'InfoWindow', 'menubar=no, location,width= 500,height=600,top=180, left=700, toolbar=no, scrollbars=1'); return false;")372 l.setAttributeNS(None, 'onclick',"popupWin = window.open(this.href, 'InfoWindow', 'menubar=no, location,width=300,height=400,top=180, left=700, toolbar=no, scrollbars=1'); return false;") 373 373 l.setAttributeNS(None, 'ondblclick', 'popupWin.focus();') 374 374 … … 406 406 def getTranslate(self, word=None, language=None): 407 407 """translate into another languages""" 408 data = self.getServerData("lt/wordInfo.xql","language="+str(language)+"&word="+urllib.quote(word)+"& output=html")408 data = self.getServerData("lt/wordInfo.xql","language="+str(language)+"&word="+urllib.quote(word)+"&display="+urllib.quote(display)+"&output=html") 409 409 #pagexml=self.template.fulltextclient.eval("/mpdl/interface/lt/lex.xql","document=&language="+str(language)+"&query="+url_quote(str(query))) 410 410 return data
Note: See TracChangeset
for help on using the changeset viewer.