Mercurial > hg > documentViewer
comparison documentViewer.py @ 392:9b2adae6c6e2
*** empty log message ***
| author | abukhman |
|---|---|
| date | Tue, 02 Nov 2010 16:51:41 +0100 |
| parents | 0eb7f0fad511 |
| children | ce9fa69f81c3 |
comparison
equal
deleted
inserted
replaced
| 391:0eb7f0fad511 | 392:9b2adae6c6e2 |
|---|---|
| 276 viewMode="images" | 276 viewMode="images" |
| 277 | 277 |
| 278 return pt(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode) | 278 return pt(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode) |
| 279 | 279 |
| 280 security.declareProtected('View','index_html') | 280 security.declareProtected('View','index_html') |
| 281 def index_html(self,url,mode="texttool",viewMode="auto",tocMode="thumbs",start=None,pn=1,mk=None, query=None, querySearch=None, characterNormalization=""): | 281 def index_html(self,url,mode="texttool",viewMode="auto",tocMode="thumbs",start=None,pn=1,mk=None, query=None, querySearch=None, characterNormalization="", optionsClose=None): |
| 282 ''' | 282 ''' |
| 283 view it | 283 view it |
| 284 @param mode: defines how to access the document behind url | 284 @param mode: defines how to access the document behind url |
| 285 @param url: url which contains display information | 285 @param url: url which contains display information |
| 286 @param viewMode: if images display images, if text display text, default is auto (text,images or auto) | 286 @param viewMode: if images display images, if text display text, default is auto (text,images or auto) |
| 797 pageinfo['numgroups'] = int(np / grpsize) | 797 pageinfo['numgroups'] = int(np / grpsize) |
| 798 if np % grpsize > 0: | 798 if np % grpsize > 0: |
| 799 pageinfo['numgroups'] += 1 | 799 pageinfo['numgroups'] += 1 |
| 800 pageinfo['viewMode'] = viewMode | 800 pageinfo['viewMode'] = viewMode |
| 801 pageinfo['tocMode'] = tocMode | 801 pageinfo['tocMode'] = tocMode |
| 802 #pageinfo ['originalPage'] = self.getOrigPages(docinfo=None, pageinfo=None) | |
| 803 pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization','') | 802 pageinfo['characterNormalization'] = self.REQUEST.get('characterNormalization','') |
| 804 pageinfo['query'] = self.REQUEST.get('query','') | 803 pageinfo['query'] = self.REQUEST.get('query','') |
| 805 #pageinfo['optionsClose']= self.REQUEST.get('optionsClose','') | 804 pageinfo['optionsClose']= self.REQUEST.get('optionsClose','') |
| 806 pageinfo['queryType'] = self.REQUEST.get('queryType','') | 805 pageinfo['queryType'] = self.REQUEST.get('queryType','') |
| 807 pageinfo['querySearch'] =self.REQUEST.get('querySearch', 'fulltext') | 806 pageinfo['querySearch'] =self.REQUEST.get('querySearch', 'fulltext') |
| 808 pageinfo['textPN'] = self.REQUEST.get('textPN','1') | 807 pageinfo['textPN'] = self.REQUEST.get('textPN','1') |
| 809 pageinfo['highlightQuery'] = self.REQUEST.get('highlightQuery','') | 808 pageinfo['highlightQuery'] = self.REQUEST.get('highlightQuery','') |
| 810 pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30') | 809 pageinfo['tocPageSize'] = self.REQUEST.get('tocPageSize', '30') |
