Changeset 105:6bffb612cd6a in documentViewer
- Timestamp:
- May 20, 2010, 8:46:00 AM (15 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentViewer.py
r104 r105 670 670 671 671 pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30') 672 pageinfo['queryPageSize'] =self.REQUEST.get('queryPageSize', ' 20')672 pageinfo['queryPageSize'] =self.REQUEST.get('queryPageSize', '10') 673 673 pageinfo['tocPN'] = self.REQUEST.get('tocPN', '1') 674 674 toc = int (pageinfo['tocPN']) … … 724 724 pagexml=href.replace('mode=text','mode=texttool&viewMode=%s&queryType=%s&query=%s&queryResultPageSize=%s&queryResultPN=%s&tocMode=%s&searchPN=%s&tocPN=%s'%(viewMode,queryType,query,pagesize,pn,tocMode,pn,tocPN)) 725 725 hrefNode.nodeValue = pagexml.replace('page-fragment.xql','%s'%selfurl) 726 l.setAttributeNS(None, "onClick", "id='highlighting'") 726 l.setAttributeNS(None, "onClick", "id='highlighting'") 727 l.setAttributeNS(None, "highlightQuery", "id='highlighting'") 727 728 return serializeNode(pagenode) 728 729 … … 881 882 numdivs = pagedom.xpath("//div[@class='queryResultHits']") 882 883 tocSearch = int(getTextFromNode(numdivs[0])) 883 tc=int((tocSearch/ 20)+1)884 tc=int((tocSearch/10)+1) 884 885 logging.debug("documentViewer (gettoc) tc: %s"%(tc)) 885 886 return tc
Note: See TracChangeset
for help on using the changeset viewer.