--- documentViewer/MpdlXmlTextServer.py 2011/08/03 19:04:18 1.238.2.6 +++ documentViewer/MpdlXmlTextServer.py 2011/08/04 14:57:02 1.238.2.7 @@ -1,4 +1,3 @@ - from OFS.SimpleItem import SimpleItem from Products.PageTemplates.PageTemplateFile import PageTemplateFile @@ -269,7 +268,7 @@ class MpdlXmlTextServer(SimpleItem): return - def getTextPage(self, mode="text_dict", pn=1, docinfo=None, pageinfo=None): + def getTextPage(self, mode="text", pn=1, docinfo=None, pageinfo=None): """returns single page from fulltext""" logging.debug("getTextPage mode=%s, pn=%s"%(mode,pn)) # check for cached text -- but this shouldn't be called twice @@ -292,9 +291,12 @@ class MpdlXmlTextServer(SimpleItem): characterNormalization = pageinfo.get('characterNormalization', None) selfurl = docinfo['viewerUrl'] - if mode == "text_dict": + if mode == "dict": # text_dict is called textPollux in the backend textmode = "textPollux" + elif not mode: + # default is text + textmode = "text" else: textmode = mode