Changeset 532:0b8bed1223ad in documentViewer for zpt/layer_text_search.zpt
- Timestamp:
- Jul 25, 2012, 7:28:31 PM (12 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zpt/layer_text_search.zpt
r526 r532 16 16 <ul> 17 17 <metal:block metal:define-macro="layer_select_li"> 18 <li tal:condition="python:query"> 19 <input type="checkbox" class="autosubmit" name="viewLayer" value="search" 20 tal:attributes="checked python:'search' in viewLayers" /> Search hits 21 </li> 18 <li tal:condition="python:query"><input type="checkbox" class="autosubmit" name="viewLayer" value="search" 19 tal:attributes="checked python:'search' in viewLayers" /> Search hits</li> 22 20 </metal:block> 23 21 </ul> … … 48 46 <h4>Search</h4> 49 47 <form tal:attributes="action viewerUrl"> 50 <input type="hidden" 51 tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewLayer':None})" 52 tal:repeat="param params" 53 tal:attributes="name param; value python:params[param]" /> 48 <input type="hidden" tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewLayer':None})" 49 tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> 54 50 <!-- make sure we have one viewLayer=search --> 55 51 <tal:block tal:repeat="vl viewLayers"> 56 <input type="hidden" name="viewLayer" tal:attributes="value vl" 57 tal:condition="python:vl != 'search'" /> 52 <input type="hidden" name="viewLayer" tal:attributes="value vl" tal:condition="python:vl != 'search'" /> 58 53 </tal:block> 59 54 <input type="hidden" name="viewLayer" value="search" /> 60 55 <!-- query text --> 61 <input type="text" name="query" tal:attributes="value query" /> <input 62 type="submit" value="Search" /> <a 56 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a 63 57 tal:attributes="href python:here.getLink('query',None)">Clear</a> 64 58 <ul> 65 <li> 66 <input type="radio" name="queryType" value="fulltext" 67 tal:attributes="checked python:queryType=='fulltext'" /> Exact 68 </li> 69 <li> 70 <input type="radio" name="queryType" value="fulltextMorph" 71 tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms 72 </li> 73 <li> 74 <input type="radio" name="queryType" value="ftIndex" 75 tal:attributes="checked python:queryType=='ftIndex'" /> Fulltext index 76 </li> 77 <li> 78 <input type="radio" name="queryType" value="ftIndexMorph" 79 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological 80 index 81 </li> 59 <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> 60 Exact</li> 61 <li><input type="radio" name="queryType" value="fulltextMorph" 62 tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms</li> 63 <li><input type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" /> 64 Fulltext index</li> 65 <li><input type="radio" name="queryType" value="ftIndexMorph" 66 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological index</li> 82 67 </ul> 83 68 </form>
Note: See TracChangeset
for help on using the changeset viewer.