Changeset 543:6cdc31e9ed8e in documentViewer for zpt/viewer_index.zpt
- Timestamp:
- Aug 22, 2012, 2:25:38 PM (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/viewer_index.zpt
r542 r543 128 128 </div> 129 129 130 <div class="options" >130 <div class="options" tal:condition="docpath"> 131 131 <h4>Search</h4> 132 132 <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action viewerUrl"> 133 <input type="hidden" tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewMode':None,'viewLayer':None})" 134 tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> <input type="hidden" 135 name="viewLayer" value="search" /> 133 <input type="hidden" tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewMode':None,'viewLayer':'search'})" 134 tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> 136 135 <!-- query text --> 137 136 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a … … 150 149 </div> 151 150 <!-- end search options--> 152 <!--BEGIN search153 <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action python:here.getLink()">154 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params"155 tal:attributes="name param; value python:params[param]" /> <input type="hidden" name="viewLayer" value="search" />156 <input type="text" name="query" tal:attributes="value query" /> <input type="submit" value="Search full document" /> <a157 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a><br /> <input type="radio"158 name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> Exact <input type="radio"159 name="queryType" value="fulltextMorph" tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms <input160 type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" /> Fulltext index161 <input type="radio" name="queryType" value="ftIndexMorph" tal:attributes="checked python:queryType=='ftIndexMorph'" />162 Morphological index163 </form>164 END search-->165 151 </div> 166 152 </div> 153 <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer"> 154 <!-- footer --> 155 <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/> 156 </tal:block> 157 167 158 </body> 168 159 <body tal:condition="not:numPages"> 169 160 <div class="errortext">Sorry, document doesn't exist.</div> 161 <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer"> 162 <!-- footer --> 163 <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/> 164 </tal:block> 170 165 </body> 171 166 </html>
Note: See TracChangeset
for help on using the changeset viewer.