Changeset 503:030251fe9dbc in documentViewer for zpt
- Timestamp:
- Feb 16, 2012, 1:30:01 PM (12 years ago)
- Branch:
- elementtree
- Location:
- zpt
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/viewer_images.zpt
r501 r503 3 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; 5 tocMode pageinfo/tocMode; view Type pageinfo/viewType; viewerUrl docinfo/viewerUrl;5 tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl; 6 6 numPages docinfo/numPages | nothing; dlBaseUrl docinfo/digilibBaseUrl | nothing;"> 7 7 <head> -
zpt/viewer_text.zpt
r502 r503 3 3 <html xmlns="http://www.w3.org/1999/xhtml" 4 4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; 5 tocMode pageinfo/tocMode; view Type pageinfo/viewType; viewerUrl docinfo/viewerUrl;5 tocMode pageinfo/tocMode; viewLayer pageinfo/viewLayer; viewerUrl docinfo/viewerUrl; 6 6 rootUrl here/getDocumentViewerURL; 7 7 numPages docinfo/numPages | nothing;"> … … 29 29 pn pageinfo/pn; 30 30 flowLtr python:pageinfo.get('pageFlow','ltr')!='rtl'; 31 textPage python:here.getTextPage(mode=view Type, pn=pn, docinfo=docinfo, pageinfo=pageinfo) or '[no text here]';">31 textPage python:here.getTextPage(mode=viewLayer, pn=pn, docinfo=docinfo, pageinfo=pageinfo) or '[no text here]';"> 32 32 <!-- header --> 33 33 <div class="page-head"> … … 67 67 <form tal:attributes="action viewerUrl" class="autosubmit"> 68 68 <input type="hidden" 69 tal:define="params python:here.getParams(params={'view Type':None})"69 tal:define="params python:here.getParams(params={'viewLayer':None,'viewMode':None})" 70 70 tal:repeat="param params" 71 tal:attributes="name param; value python:params[param]" /> <input 72 class="autosubmit" type="radio" name="viewType" value="" 73 tal:attributes="checked python:viewType!='xml'" /> Text<br /> <span 74 class="optionsText" tal:condition="python:viewType!='xml'"> 75 <input type="checkbox" class="autosubmit" name="viewType" 76 value="dict" tal:attributes="checked python:viewType=='dict'" /> Dictionary<br /> 77 </span> <span class="optionsText" 78 tal:condition="python:viewType!='xml' and docinfo.get('numPlaces',0)"> 79 <input type="checkbox" class="autosubmit" name="viewType" 80 value="gis" tal:attributes="checked python:viewType=='gis'" /> Places<br /> 81 </span> <input type="radio" class="autosubmit" name="viewType" 82 tal:attributes="value string:xml; checked python:viewType=='xml'" /> XML<br /> 71 tal:attributes="name param; value python:params[param]" /> 72 <input class="autosubmit" type="radio" name="viewMode" value="text" 73 tal:attributes="checked python:viewMode=='text'" /> Text<br /> 74 <span class="optionsText"> 75 <input type="checkbox" class="autosubmit" name="viewLayer" 76 value="dict" tal:attributes="checked python:viewLayer=='dict'" /> Dictionary<br /> 77 </span> 78 <span class="optionsText" tal:condition="python:docinfo.get('numPlaces',0)"> 79 <input type="checkbox" class="autosubmit" name="viewLayer" 80 value="gis" tal:attributes="checked python:viewLayer=='gis'" /> Places<br /> 81 </span> 82 <input type="radio" class="autosubmit" name="viewMode" value="xml" 83 tal:attributes="checked python:viewMode=='xml'" /> XML<br /> 83 84 <input type="submit" value="Go!" /> 84 85 </form> … … 98 99 99 100 <!--"BEGIN DICTIONARY OVERVIEW"--> 100 <div class="options" tal:condition="python:view Type=='dict'">101 <div class="options" tal:condition="python:viewLayer=='dict'"> 101 102 <h4>Dictionary view</h4> 102 103 <form name="f3" action=""> … … 107 108 108 109 <!--"BEGIN TEXT NORMALIZATION"--> 109 <div class="options" tal:condition="python:view Type!='xml'">110 <div class="options" tal:condition="python:viewLayer!='xml'"> 110 111 <h4>Text normalization</h4> 111 112 <form tal:attributes="action viewerUrl" class="autosubmit" … … 127 128 128 129 <!--"BEGIN PLACES"--> 129 <div class="options" tal:condition="python:view Type=='gis'">130 <div class="options" tal:condition="python:viewLayer=='gis'"> 130 131 <tal:block 131 132 tal:define="gisPlaces python:here.getGisPlaces(docinfo=docinfo, pageinfo=pageinfo); gisAllPlaces python:here.getAllGisPlaces(docinfo=docinfo, pageinfo=pageinfo);">
Note: See TracChangeset
for help on using the changeset viewer.