Changeset 106:9f11913bc132 in documentViewer
- Timestamp:
- May 20, 2010, 9:28:36 AM (15 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r105 r106 668 668 669 669 pageinfo['textPN'] = self.REQUEST.get('textPN','1') 670 670 pageinfo['highlightQuery'] = self.REQUEST.get('highlightQuery','') 671 671 pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30') 672 672 pageinfo['queryPageSize'] =self.REQUEST.get('queryPageSize', '10') … … 700 700 pn = pageinfo['searchPN'] 701 701 sn = pageinfo['sn'] 702 highlightQuery = pageinfo['highlightQuery'] 702 703 query =pageinfo['query'] 703 704 queryType =pageinfo['queryType'] … … 725 726 hrefNode.nodeValue = pagexml.replace('page-fragment.xql','%s'%selfurl) 726 727 l.setAttributeNS(None, "onClick", "id='highlighting'") 728 logging.debug("documentViewer (gettoc) highlightQuery: %s"%(highlightQuery)) 727 729 l.setAttributeNS(None, "highlightQuery", "id='highlighting'") 728 730 return serializeNode(pagenode) … … 763 765 if href.startswith('../lt/lex.xql'): 764 766 # 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) 766 768 l.setAttributeNS(None, 'target', '_blank') 767 769 l.setAttributeNS(None, 'onClick',"popupWin = window.open(this.href, 'contacts', 'location,width=500,height=600,top=180, left=400, scrollbars=1'); return false;") … … 769 771 if href.startswith('../lt/lemma.xql'): 770 772 #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) 772 774 l.setAttributeNS(None, 'target', '_blank') 773 775 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.