|
|
| version 1.134, 2010/10/18 10:14:08 | version 1.135, 2010/10/18 10:15:40 |
|---|---|
| Line 268 class documentViewer(Folder): | Line 268 class documentViewer(Folder): |
| @param querySearch: type of different search modes (fulltext, fulltextMorph, xpath, xquery, ftIndex, ftIndexMorph, fulltextMorphLemma) | @param querySearch: type of different search modes (fulltext, fulltextMorph, xpath, xquery, ftIndex, ftIndexMorph, fulltextMorphLemma) |
| ''' | ''' |
| logging.debug("documentViewer (index) mode: %s url:%s start:%s pn:%s"%(mode,url,start,pn)) | logging.debug("documentViewer (index) mode: %s url:%s start:%s pn:%s"%(mode,url,start,pn,originalPage)) |
| if not hasattr(self, 'template'): | if not hasattr(self, 'template'): |
| # this won't work | # this won't work |
| Line 743 class documentViewer(Folder): | Line 743 class documentViewer(Folder): |
| raise ValueError("Unknown mode %s! Has to be one of 'texttool','imagepath','filepath'."%(mode)) | raise ValueError("Unknown mode %s! Has to be one of 'texttool','imagepath','filepath'."%(mode)) |
| logging.debug("documentViewer (getdocinfo) docinfo: %s"%docinfo) | logging.debug("documentViewer (getdocinfo) docinfo: %s"%docinfo) |
| logging.debug("originalPage: %s"%originalPage) | |
| self.REQUEST.SESSION['docinfo'] = docinfo | self.REQUEST.SESSION['docinfo'] = docinfo |
| return docinfo | return docinfo |
| Line 785 class documentViewer(Folder): | Line 785 class documentViewer(Folder): |
| toc = int (pageinfo['tocPN']) | toc = int (pageinfo['tocPN']) |
| pageinfo['textPages'] =int (toc) | pageinfo['textPages'] =int (toc) |
| logging.debug("originalPage: %s"%originalPage) | |
| if 'tocSize_%s'%tocMode in docinfo: | if 'tocSize_%s'%tocMode in docinfo: |
| tocSize = int(docinfo['tocSize_%s'%tocMode]) | tocSize = int(docinfo['tocSize_%s'%tocMode]) |