Changeset 446:48f33478acec in documentViewer


Ignore:
Timestamp:
Jul 18, 2011, 1:59:03 PM (13 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MpdlXmlTextServer.py

    r445 r446  
    107107                            hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s/template/head_main_query'%(selfurl))       
    108108                            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;")
    110110                            l.setAttributeNS(None, 'onDblclick', 'popupWin.focus();') 
    111111                pagedivs = pagedom.xpath("//div[@class='queryResultMorphExpansion']")               
     
    129129                            hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s/template/head_main_lemma'%(selfurl))       
    130130                            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;")
    132132                            l.setAttributeNS(None, 'onDblclick', 'popupWin.focus();')
    133133                return serializeNode(pagenode)     
     
    370370                            hrefNode.nodeValue = href.replace('http://mpdl-proto.mpiwg-berlin.mpg.de/mpdl/lt/lemma.xql','%s/head_main_lemma'%selfurl)
    371371                            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;")
    373373                            l.setAttributeNS(None, 'ondblclick', 'popupWin.focus();')   
    374374                   
     
    406406    def getTranslate(self, word=None, language=None):
    407407        """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")
    409409        #pagexml=self.template.fulltextclient.eval("/mpdl/interface/lt/lex.xql","document=&language="+str(language)+"&query="+url_quote(str(query)))
    410410        return data
Note: See TracChangeset for help on using the changeset viewer.