diff zpt/viewer_text.zpt @ 509:9d05befdd462 elementtree

try to get characterNormalization in search result working.
author casties
date Mon, 27 Feb 2012 21:57:18 +0100
parents d5a47f82e755
children 4fb35343d2e7
line wrap: on
line diff
--- a/zpt/viewer_text.zpt	Mon Feb 27 21:26:52 2012 +0100
+++ b/zpt/viewer_text.zpt	Mon Feb 27 21:57:18 2012 +0100
@@ -68,6 +68,7 @@
         <div class="options">
           <h4>Text display</h4>
           <pre tal:content="python:repr(viewLayers)" />
+          <pre tal:content="python:repr(viewLayer)" />
           <form tal:attributes="action viewerUrl" class="autosubmit">
             <input type="hidden"
               tal:define="params python:here.getParams(params={'viewLayer':None,'viewMode':None})"
@@ -181,7 +182,7 @@
           <form tal:attributes="action viewerUrl" class="autosubmit"
             tal:define="norm python:pageinfo.get('characterNormalization','regPlusNorm');">
             <input type="hidden"
-              tal:define="params python:here.getParams('characterNormalization',None)"
+              tal:define="params python:here.getParams(params={'characterNormalization':None, 'viewLayer':viewLayer})"
               tal:repeat="param params"
               tal:attributes="name param; value python:params[param]" />
             <ul>