Changeset 629:e36bf3226fde in documentViewer for zpt


Ignore:
Timestamp:
May 26, 2015, 8:58:27 AM (9 years ago)
Author:
dwinter
Branch:
default
Children:
630:25295ceb11b1, 631:0c3aab828864
Message:

text image viewer eingecheckt

Location:
zpt/viewer
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer/common_template.zpt

    r609 r629  
    3131        <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a
    3232          tal:omit-tag="python:viewMode=='text'" tal:attributes="href python:here.getLink('viewMode','text')">Text</a></li>
     33        <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a
     34          tal:omit-tag="python:viewMode=='text_image'" tal:attributes="href python:here.getLink('viewMode','text_image')">Text Image</a></li> 
    3335        <li tal:condition="python:docinfo.get('imagePath',None)" tal:attributes="class python:here.getStyle(viewMode, 'image')"><a
    3436          tal:omit-tag="python:viewMode=='image'" tal:attributes="href python:here.getLink('viewMode','image')">Image</a></li>
  • zpt/viewer/viewer_text.zpt

    r594 r629  
    109109          <h4>Text normalization</h4>
    110110          <form tal:attributes="action viewerUrl" class="autosubmit"
    111             tal:define="norm python:pageinfo.get('characterNormalization','regPlusNorm');">
     111            tal:define="norm python:pageinfo.get('characterNormalization','orig');">
    112112            <input type="hidden"
    113113              tal:define="params python:here.getParams(params={'characterNormalization':None, 'viewLayer':viewLayer})"
     
    116116              <li><input type="radio" class="autosubmit" name="characterNormalization" value="orig"
    117117                tal:attributes="checked python:norm=='orig'" /> Original</li>
    118               <li><input type="radio" class="autosubmit" name="characterNormalization" value="reg"
     118              <!--<li><input type="radio" class="autosubmit" name="characterNormalization" value="reg"
    119119                tal:attributes="checked python:norm=='reg'" /> Regularized</li>
    120120              <li><input type="radio" class="autosubmit" name="characterNormalization" value="regPlusNorm"
    121                 tal:attributes="checked python:norm=='regPlusNorm'" /> Normalized</li>
     121                tal:attributes="checked python:norm=='regPlusNorm'" /> Normalized</li>-->
    122122            </ul>
    123123            <input type="submit" value="Go!" />
Note: See TracChangeset for help on using the changeset viewer.