diff documentViewer.py @ 509:9d05befdd462 elementtree

try to get characterNormalization in search result working.
author casties
date Mon, 27 Feb 2012 21:57:18 +0100
parents d5a47f82e755
children 551ca1641a5e
line wrap: on
line diff
--- a/documentViewer.py	Mon Feb 27 21:26:52 2012 +0100
+++ b/documentViewer.py	Mon Feb 27 21:57:18 2012 +0100
@@ -732,16 +732,12 @@
                 
         # TODO: do we need this here?
         pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization','reg')
-        pageinfo['query'] = self.REQUEST.get('query','') 
-        pageinfo['queryType'] = self.REQUEST.get('queryType','')
-        pageinfo['querySearch'] =self.REQUEST.get('querySearch', 'fulltext')
-        pageinfo['highlightQuery'] = self.REQUEST.get('highlightQuery','')
         pageinfo['tocPageSize'] = getInt(self.REQUEST.get('tocPageSize', 30))
-        pageinfo['queryPageSize'] = getInt(self.REQUEST.get('queryPageSize', 10))
+        pageinfo['resultPageSize'] = getInt(self.REQUEST.get('resultPageSize', 10))
         pageinfo['tocPN'] = getInt(self.REQUEST.get('tocPN', '1'))
-        pageinfo['searchPN'] = getInt(self.REQUEST.get('searchPN','1'))
+        pageinfo['resultPN'] = getInt(self.REQUEST.get('resultPN','1'))
         
-        # limit tocPN
+        # limit tocPN TODO: do we need this?
         if 'tocSize_%s'%tocMode in docinfo:
             tocSize = docinfo['tocSize_%s'%tocMode]
             tocPageSize = pageinfo['tocPageSize']