Annotation of cdli/zpt/searchResultsInBasket.zpt, revision 1.2

1.1       dwinter     1: <html metal:use-macro="here/main_template/macros/page">    
                      2:  <tal:block metal:fill-slot="body" 
                      3:  tal:define="results options/result;
                      4:            indexName options/indexName;
1.2     ! dwinter     5:            regExp python:options['regExp']=='yes';
1.1       dwinter     6:            word options/word">
                      7: 
                      8:   
                      9:   <table width="100%" border=0 cellpadding=0 cellspacing=0>
                     10:   <tr>
                     11:   <td>
                     12:   <h2>Basket: <span tal:replace="python:here.title"/></h2>
                     13:   </td>
                     14:   </tr>
                     15:   </table>
                     16:    <p tal:condition="not:regExp">Found <span tal:content="word"/></p>
                     17:     <p tal:condition="regExp">Found <tal:x tal:content="python:','.join(here.findWordRegExp(indexName,word))"></tal:x>.</p>
                     18: <div>
                     19:    <table  border="1">
                     20:        <tr     tal:repeat="result python:results.keys()">
                     21:             <td valign="top"><a tal:attributes="href python:'showFile?fileId=%s'%result" target="_blank" tal:content="result"/>    
                     22:        <td>    
                     23:            <ul>
                     24:            <li tal:repeat="line python:results[result]">
                     25:                <span tal:content="line"/>
                     26:             </li>
                     27:        </ul>
                     28:           </td>
                     29:    </tr>
                     30:       </table>
                     31:       </div>
                     32:      </tal:block>
                     33: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>