Changeset 141:39c7d6164da8 in documentViewer for documentViewer.py


Ignore:
Timestamp:
Aug 12, 2010, 10:08:24 AM (14 years ago)
Author:
abukhman
Branch:
default
Message:

characterNormalization (reg,norm, none)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • documentViewer.py

    r140 r141  
    227227 
    228228    security.declareProtected('View','index_html')
    229     def index_html(self,url,mode="texttool",viewMode="auto",tocMode="thumbs",start=None,pn=1,mk=None, query=None, querySearch=None):
     229    def index_html(self,url,mode="texttool",viewMode="auto",tocMode="thumbs",start=None,pn=1,mk=None, query=None, querySearch=None, characterNormalization=None):
    230230        '''
    231231        view it
     
    234234        @param viewMode: if images display images, if text display text, default is auto (text,images or auto)
    235235        @param tocMode: type of 'table of contents' for navigation (thumbs, text, figures, none)
     236        @param characterNormalization type of text display (reg, norm, none)
    236237        @param querySearch: type of different search modes (fulltext, fulltextMorph, xpath, xquery, ftIndex, ftIndexMorph, fulltextMorphLemma)
    237238        '''
     
    678679        return docinfo
    679680               
    680     def getPageinfo(self, current, start=None, rows=None, cols=None, docinfo=None, viewMode=None, tocMode=None):
     681    def getPageinfo(self, current, start=None, rows=None, cols=None, docinfo=None, viewMode=None, tocMode=None, characterNormalization=None):
    681682        """returns pageinfo with the given parameters"""
    682683        pageinfo = {}
     
    701702        pageinfo['viewMode'] = viewMode
    702703        pageinfo['tocMode'] = tocMode
     704        pageinfo['characterNormalization'] =characterNormalization
    703705        pageinfo['query'] = self.REQUEST.get('query',' ')
    704706        pageinfo['queryType'] = self.REQUEST.get('queryType',' ')
Note: See TracChangeset for help on using the changeset viewer.