Méthode getMemberFullNameById -> prise en compte des modifications de MemberData.
[Plinn.git] / skins / photo_theme / search.pt
1 <html xmlns:tal="http://xml.zope.org/namespaces/tal"
2 xmlns:metal="http://xml.zope.org/namespaces/metal"
3 metal:use-macro="here/main_template/macros/master">
4 <head>
5 <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
6 <metal:block metal:fill-slot="javascript_head_slot">
7 <script type="text/javascript" tal:attributes="src string:${portal_url}/photo_lightbox_viewer.js"></script>
8 </metal:block>
9 </head>
10 <body>
11 <div metal:fill-slot="main_no_tabs" i18n:domain="cmf_default">
12 <div class="Desktop">
13
14 <h2 i18n:translate="">Search Results</h2>
15
16 <div tal:define="b_start python:0;b_start request/b_start | b_start;
17 results python:here.doFormSearch( REQUEST=request );
18 searchArgs results/searchArgs;
19 results results/results;
20 stext request/SearchableText|nothing;
21 resultsLength python:len(results);
22 Batch python:modules['Products.Plinn'].Batch;
23 global batch python:Batch(results, here.default_batch_size, b_start, orphan=1, quantumleap=1);
24 macro python:request.form.get('portal_type') == ['Photo'] and 'photo' or 'normal';
25 ">
26
27 <div tal:condition="resultsLength" tal:omit-tag="">
28 <p i18n:translate=""
29 tal:condition="stext">Found <span tal:replace="python:len(results)"
30 i18n:name="count">100</span> <span i18n:name="item_s_match"
31 tal:content="python:resultsLength > 1 and 'items matching' or 'item matching'"
32 i18n:translate=""
33 tal:omit-tag="">items matching</span> '<span
34 tal:replace="request/SearchableText"
35 i18n:name="text">search term</span>'.
36 </p>
37 <div tal:condition="not:stext">
38 <p tal:condition="python:resultsLength==1" i18n:translate="">Found 1 item.</p>
39 <p tal:condition="python:resultsLength>1" i18n:translate="">Found <span i18n:name="count" tal:content="resultsLength" tal:omit-tag="">2</span> items.</p>
40 </div>
41 </div>
42 <div tal:condition="results" tal:omit-tag="">
43 <div metal:use-macro="python:here.search_results_macros.macros[macro]"></div>
44 </div>
45 <p tal:condition="not:results" i18n:translate="">
46 There are no items matching your specified criteria.
47 </p>
48 </div>
49 </div>
50 </div>
51 </body>
52 </html>