Mercurial > hg > documentViewer
comparison zpt/viewer_index.zpt @ 543:6cdc31e9ed8e
fixed problem with dict-mode in default view.
added configurable footer and logo in site_template.pt
author | casties |
---|---|
date | Wed, 22 Aug 2012 16:25:38 +0200 |
parents | dbaa7dce60a5 |
children | a35ec08c782d |
comparison
equal
deleted
inserted
replaced
542:dbaa7dce60a5 | 543:6cdc31e9ed8e |
---|---|
125 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">as XML</a></li> | 125 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">as XML</a></li> |
126 </ul> | 126 </ul> |
127 (copyright and license see below) | 127 (copyright and license see below) |
128 </div> | 128 </div> |
129 | 129 |
130 <div class="options"> | 130 <div class="options" tal:condition="docpath"> |
131 <h4>Search</h4> | 131 <h4>Search</h4> |
132 <form tal:define="queryType string:fulltextMorph" tal:condition="docpath" tal:attributes="action viewerUrl"> | 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})" | 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]" /> <input type="hidden" | 134 tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> |
135 name="viewLayer" value="search" /> | |
136 <!-- query text --> | 135 <!-- query text --> |
137 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a | 136 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a |
138 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a> | 137 tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a> |
139 <ul> | 138 <ul> |
140 <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> | 139 <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> |
147 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological index</li> | 146 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological index</li> |
148 </ul> | 147 </ul> |
149 </form> | 148 </form> |
150 </div> | 149 </div> |
151 <!-- end search options--> | 150 <!-- end search options--> |
152 <!--BEGIN search | |
153 <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" /> <a | |
157 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 <input | |
160 type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" /> Fulltext index | |
161 <input type="radio" name="queryType" value="ftIndexMorph" tal:attributes="checked python:queryType=='ftIndexMorph'" /> | |
162 Morphological index | |
163 </form> | |
164 END search--> | |
165 </div> | 151 </div> |
166 </div> | 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 </body> | 158 </body> |
168 <body tal:condition="not:numPages"> | 159 <body tal:condition="not:numPages"> |
169 <div class="errortext">Sorry, document doesn't exist.</div> | 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 </body> | 165 </body> |
171 </html> | 166 </html> |