Mercurial > hg > documentViewer
changeset 105:6bffb612cd6a
*** empty log message ***
author | abukhman |
---|---|
date | Thu, 20 May 2010 10:46:00 +0200 |
parents | ff92f29e99a9 |
children | 9f11913bc132 |
files | documentViewer.py |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/documentViewer.py Wed May 19 18:24:16 2010 +0200 +++ b/documentViewer.py Thu May 20 10:46:00 2010 +0200 @@ -669,7 +669,7 @@ pageinfo['textPN'] = self.REQUEST.get('textPN','1') pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30') - pageinfo['queryPageSize'] =self.REQUEST.get('queryPageSize', '20') + pageinfo['queryPageSize'] =self.REQUEST.get('queryPageSize', '10') pageinfo['tocPN'] = self.REQUEST.get('tocPN', '1') toc = int (pageinfo['tocPN']) pageinfo['textPages'] =int (toc) @@ -723,7 +723,8 @@ #l.setAttributeNS(None, "span class = 'hit highlight'", "background-color: #77DD77;") 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)) hrefNode.nodeValue = pagexml.replace('page-fragment.xql','%s'%selfurl) - l.setAttributeNS(None, "onClick", "id='highlighting'") + l.setAttributeNS(None, "onClick", "id='highlighting'") + l.setAttributeNS(None, "highlightQuery", "id='highlighting'") return serializeNode(pagenode) if (queryType=="fulltextMorph"): @@ -880,7 +881,7 @@ pagedom = Parse(pagexml) numdivs = pagedom.xpath("//div[@class='queryResultHits']") tocSearch = int(getTextFromNode(numdivs[0])) - tc=int((tocSearch/20)+1) + tc=int((tocSearch/10)+1) logging.debug("documentViewer (gettoc) tc: %s"%(tc)) return tc