Changeset 106:9f11913bc132 in documentViewer


Ignore:
Timestamp:
May 20, 2010, 9:28:36 AM (14 years ago)
Author:
abukhman
Branch:
default
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r105 r106  
    668668       
    669669        pageinfo['textPN'] = self.REQUEST.get('textPN','1')
    670        
     670        pageinfo['highlightQuery'] = self.REQUEST.get('highlightQuery','')
    671671        pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30')
    672672        pageinfo['queryPageSize'] =self.REQUEST.get('queryPageSize', '10')
     
    700700        pn = pageinfo['searchPN']
    701701        sn = pageinfo['sn']
     702        highlightQuery = pageinfo['highlightQuery']
    702703        query =pageinfo['query']
    703704        queryType =pageinfo['queryType']
     
    725726                            hrefNode.nodeValue = pagexml.replace('page-fragment.xql','%s'%selfurl)                                         
    726727                            l.setAttributeNS(None, "onClick", "id='highlighting'")
     728                            logging.debug("documentViewer (gettoc) highlightQuery: %s"%(highlightQuery))
    727729                            l.setAttributeNS(None, "highlightQuery", "id='highlighting'")
    728730                return serializeNode(pagenode)
     
    763765                        if href.startswith('../lt/lex.xql'):
    764766                           # selfurl = self.absolute_url()
    765                             hrefNode.nodeValue = href.replace('../lt/lex.xql','%s../template/head_main_voc'%selfurl)         
     767                            hrefNode.nodeValue = href.replace('../lt/lex.xql','%s/template/head_main_voc'%selfurl)         
    766768                            l.setAttributeNS(None, 'target', '_blank')
    767769                            l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=400, scrollbars=1'); return false;")
     
    769771                        if href.startswith('../lt/lemma.xql'):
    770772                            #selfurl = self.absolute_url()
    771                             hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s../template/head_main_lemma'%selfurl)       
     773                            hrefNode.nodeValue = href.replace('../lt/lemma.xql','%s/template/head_main_lemma'%selfurl)       
    772774                            l.setAttributeNS(None, 'target', '_blank')
    773775                            l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=400, scrollbars=1'); return false;")
Note: See TracChangeset for help on using the changeset viewer.