This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
tabellio.searchform/tabellio/searchform/docsearchpfb.pt

62 lines
2.7 KiB
XML

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="en"
metal:use-macro="context/main_template/macros/master"
i18n:domain="tabellio.searchform">
<body>
<metal:main fill-slot="main">
<tal:main-macro metal:define-macro="main">
<div tal:replace="structure provider:plone.abovecontenttitle" />
<h1 class="documentFirstHeading" tal:content="context/title" />
<div tal:replace="structure provider:plone.belowcontenttitle" />
<div tal:replace="structure view/document_pfb_search_form"/>
<div tal:define="Batch python:modules['Products.CMFPlone'].Batch;
mq python:modules['ZTUtils'].make_query;
url batch_base_url | request/ACTUAL_URL;
batchformkeys batchformkeys|nothing;
batchlinkparams python:batchformkeys and dict([(key, unicode(request.form[key]).encode('utf-8')) for key in batchformkeys if key in request]) or dict([(key, unicode(request.form[key]).encode('utf-8')) for key in request.form]);
doc_results view/document_results;
b_size python:10; b_size request/b_size | b_size;
b_start python:0;b_start request/b_start | b_start;
doc_batch python:Batch(doc_results, b_size,
int(b_start), orphan=1);"
tal:condition="doc_results">
<div id="resultsbox">
<span>Nombre de résultats : <span tal:content="python: len(doc_results)"/></span>
</div>
<div id="results">
<ul>
<tal:entry tal:repeat="doc doc_batch">
<li tal:define="oddrow repeat/doc/odd;" tal:attributes="class python: oddrow and 'odd' or 'even'"><div>
<h4><a href="#" tal:attributes="href doc/getURL" tal:content="doc/Title">Véronique Salvi</a></h4>
<p class="authors" tal:content="python: doc.getObject().get_authors_as_string()" tal:condition="python: doc.getObject().authors" />
</div></li>
</tal:entry>
</ul>
</div>
<div id="results-nav" tal:define="p doc_batch/previous | nothing;
n doc_batch/next | nothing">
<a tal:condition="p" id="results-nav-prev" href="#">Précédent</a>
<a tal:condition="n" id="results-nav-next" href="#">Suivant</a>
</div>
</div>
<div tal:replace="structure provider:plone.belowcontentbody" />
</tal:main-macro>
</metal:main>
</body>
</html>