Mercurial > hg > documentViewer
comparison zpt/viewer_text.zpt @ 511:551ca1641a5e elementtree
more cleanup.
search really works now.
author | casties |
---|---|
date | Tue, 28 Feb 2012 18:21:59 +0100 |
parents | 4fb35343d2e7 |
children | 92a6443a6f16 |
comparison
equal
deleted
inserted
replaced
510:4fb35343d2e7 | 511:551ca1641a5e |
---|---|
61 </div> | 61 </div> |
62 </div> | 62 </div> |
63 <!-- end of col-main --> | 63 <!-- end of col-main --> |
64 | 64 |
65 <!-- right-side search results --> | 65 <!-- right-side search results --> |
66 <div class="col search" tal:condition="query"> | 66 <div class="col results" tal:condition="query"> |
67 <!--"BEGIN SEARCH RESULTS" --> | 67 <!--"BEGIN SEARCH RESULTS" --> |
68 <div class="options"> | 68 <div class="options"> |
69 <h4>Search results</h4> | 69 <h4>Search results</h4> |
70 <div tal:content="structure python:here.getResultsPage(mode=queryType,query=query,pn=1,pageinfo=pageinfo,docinfo=docinfo)"/> | 70 <div metal:use-macro="here/template/search_template/macros/results_div"/> |
71 </div> | 71 </div> |
72 </div> | 72 </div> |
73 | 73 |
74 <!-- right-side options --> | 74 <!-- right-side options --> |
75 <div class="col buttons"> | 75 <div class="col buttons"> |
89 <li> | 89 <li> |
90 <input type="checkbox" class="autosubmit" name="viewLayer" | 90 <input type="checkbox" class="autosubmit" name="viewLayer" |
91 value="dict" tal:attributes="checked python:'dict' in viewLayers" /> | 91 value="dict" tal:attributes="checked python:'dict' in viewLayers" /> |
92 Dictionary | 92 Dictionary |
93 </li> | 93 </li> |
94 <li tal:condition="query"> | 94 <li tal:condition="python:query"> |
95 <input type="checkbox" class="autosubmit" name="viewLayer" | 95 <input type="checkbox" class="autosubmit" name="viewLayer" |
96 value="search" | 96 value="search" |
97 tal:attributes="checked python:'search' in viewLayers" /> Search hits | 97 tal:attributes="checked python:'search' in viewLayers" /> Search hits |
98 </li> | 98 </li> |
99 <li tal:condition="python:docinfo.get('numPlaces',0)"> | 99 <li tal:condition="python:docinfo.get('numPlaces',0)"> |
126 </tal:block> | 126 </tal:block> |
127 <input type="hidden" name="viewLayer" value="search"/> | 127 <input type="hidden" name="viewLayer" value="search"/> |
128 <!-- query text --> | 128 <!-- query text --> |
129 <input type="text" name="query" tal:attributes="value query"/> | 129 <input type="text" name="query" tal:attributes="value query"/> |
130 <input type="submit" value="Search"/> | 130 <input type="submit" value="Search"/> |
131 <a tal:attributes="href python:here.getLink('query',None)">Clear</a> | |
131 <ul> | 132 <ul> |
132 <li> | 133 <li> |
133 <input type="radio" name="queryType" value="fulltext" | 134 <input type="radio" name="queryType" value="fulltext" |
134 tal:attributes="checked python:queryType=='fulltext'"/> Exact | 135 tal:attributes="checked python:queryType=='fulltext'"/> Exact |
135 </li> | 136 </li> |