# HG changeset patch
# User casties
# Date 1334233657 -7200
# Node ID 652cc8d3f1a9a621911dd2374bdfc46b99cc9231
# Parent 3f375a0484029fce5adb4e519669f8e40dcbd210
fixed bug with text when layer is only annotator.
diff -r 3f375a048402 -r 652cc8d3f1a9 MpdlXmlTextServer.py
--- a/MpdlXmlTextServer.py Tue Apr 10 19:41:44 2012 +0200
+++ b/MpdlXmlTextServer.py Thu Apr 12 14:27:37 2012 +0200
@@ -234,7 +234,7 @@
# check for multiple layers
if len(modes) > 1:
logging.debug("getTextPage: more than one mode=%s"%mode)
-
+
# search mode
if 'search' in modes:
# add highlighting
@@ -251,12 +251,9 @@
if 'dict' in modes:
# dict is called textPollux in the backend
textmode = 'textPollux'
- elif len(modes) == 0:
+ else:
# text is default mode
textmode = 'text'
- else:
- # just take first mode
- textmode = modes[0]
textParams['mode'] = textmode
diff -r 3f375a048402 -r 652cc8d3f1a9 zpt/common_template.zpt
--- a/zpt/common_template.zpt Tue Apr 10 19:41:44 2012 +0200
+++ b/zpt/common_template.zpt Thu Apr 12 14:27:37 2012 +0200
@@ -42,8 +42,7 @@
title="Original page number" tal:define="originalPage pageinfo/pageNumberOrig | nothing"
tal:condition="python:originalPage!=None"> ( []
- )
+ tal:replace="originalPageNorm" />])
of > > >|