169 lines
6.4 KiB
XML
169 lines
6.4 KiB
XML
<html xmlns="http://www.w3.org/1999/xhtml"
|
||
xmlns:tal="http://xml.zope.org/namespaces/tal"
|
||
xmlns:metal="http://xml.zope.org/namespaces/metal"
|
||
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
|
||
i18n:domain="plone">
|
||
<body>
|
||
|
||
<tal:comment condition="nothing">You can feed in batch_base_url by enclosing
|
||
the metal:use-macro="context/batch_macros/macros/navigation" statement in your
|
||
template with a tal:define="batch_base_url YOUR_BASE_URL" tales expression.
|
||
</tal:comment>
|
||
<div id="results-nav" class="listingBar"
|
||
metal:define-macro="navigation"
|
||
tal:define="request request|context/request|container/request|nothing;
|
||
batch batch|nothing;
|
||
batchformkeys batchformkeys|nothing;
|
||
batchlinkparams view/get_batchlinkparams;
|
||
mq python:modules['ZTUtils'].make_query;
|
||
url batch_base_url | request/ACTUAL_URL;
|
||
currentpage batch/pagenumber;"
|
||
tal:condition="python: batch.next or batch.previous">
|
||
|
||
<tal:block tal:define="p batch/previous | nothing">
|
||
<a href="" id="results-nav-prev" tal:condition="p"
|
||
tal:attributes="href python: '%s?%s#%s' % (url , mq( batchlinkparams, {batch.b_start_str:p.first} ), batch.b_start_str)">
|
||
«
|
||
<span i18n:translate="batch_previous_x_items" tal:omit-tag="">
|
||
Previous
|
||
<span i18n:name="number" tal:omit-tag="" tal:content="p/length">n</span>
|
||
items
|
||
</span>
|
||
</a>
|
||
<span id="results-nav-prev" tal:condition="not: p">
|
||
«
|
||
<span i18n:translate="batch_previous_x_items" tal:omit-tag="">
|
||
Previous
|
||
<span i18n:name="number" tal:omit-tag="" tal:content="b_size">n</span>
|
||
items
|
||
</span>
|
||
</span>
|
||
</tal:block>
|
||
|
||
<tal:block tal:define="n batch/next | nothing">
|
||
<a href="" id="results-nav-next" tal:condition="n"
|
||
tal:attributes="href python: '%s?%s#%s' % (url , mq( batchlinkparams, {batch.b_start_str:n.first} ), batch.b_start_str)">
|
||
<span i18n:translate="batch_next_x_items" tal:omit-tag="">
|
||
Next
|
||
<span i18n:name="number" tal:omit-tag="" tal:content="n/length">n</span>
|
||
items
|
||
</span>
|
||
»
|
||
</a>
|
||
<span id="results-nav-next" tal:condition="not: n">
|
||
<span i18n:translate="batch_next_x_items" tal:omit-tag="">
|
||
Next
|
||
<span i18n:name="number" tal:omit-tag="" tal:content="b_size">n</span>
|
||
items
|
||
</span>
|
||
»
|
||
</span>
|
||
</tal:block>
|
||
|
||
<span class="pager">Page : </span>
|
||
|
||
<tal:comment tal:condition="nothing">
|
||
Link to first
|
||
</tal:comment>
|
||
<span tal:condition="python: 1 not in batch.navlist">
|
||
<a href=""
|
||
tal:attributes="href python: '%s?%s#%s' % (url, batch.pageurl(batchlinkparams,1), batch.b_start_str);">1</a>
|
||
<span tal:condition="python: 2 not in (batch.prevlist or batch.leapback)"
|
||
tal:omit-tag="">
|
||
…
|
||
</span>
|
||
</span>
|
||
|
||
<tal:comment tal:condition="nothing">
|
||
Pagelist with quantum leap links to previous pages for quick navigation
|
||
</tal:comment>
|
||
<span tal:repeat="linklist python:batch.navurls(batchlinkparams, batch.leapback)"
|
||
tal:condition="batch/leapback"
|
||
tal:omit-tag="" >
|
||
<a href=""
|
||
tal:define="page python:linklist[0];
|
||
query python:linklist[1];"
|
||
tal:content="page"
|
||
tal:attributes="href python: '%s?%s#%s' % (url,query, batch.b_start_str)" >
|
||
</a>
|
||
…
|
||
</span>
|
||
|
||
<tal:comment tal:condition="nothing">
|
||
Pagelist with links to previous pages for quick navigation
|
||
</tal:comment>
|
||
<span tal:repeat="linklist python:batch.prevurls(batchlinkparams)"
|
||
tal:condition="batch/prevlist"
|
||
tal:omit-tag="" >
|
||
<a href=""
|
||
tal:define="page python:linklist[0];
|
||
query python:linklist[1];"
|
||
tal:content="page"
|
||
tal:attributes="href python: '%s?%s#%s' % (url,query, batch.b_start_str)" >
|
||
</a>
|
||
</span>
|
||
|
||
<tal:comment tal:replace="nothing">
|
||
Current page
|
||
</tal:comment>
|
||
<span tal:condition="batch/navlist" class="current"
|
||
tal:content="batch/pagenumber">Current page number</span>
|
||
|
||
<tal:comment tal:replace="nothing">
|
||
Pagelist with links to next pages for quick navigation
|
||
</tal:comment>
|
||
<span tal:repeat="linklist python:batch.nexturls(batchlinkparams)"
|
||
tal:condition="batch/nextlist"
|
||
tal:omit-tag="" >
|
||
<a href=""
|
||
tal:define="page python:linklist[0];
|
||
query python:linklist[1];"
|
||
tal:content="page"
|
||
tal:attributes="href python: '%s?%s#%s' % (url,query, batch.b_start_str)" >
|
||
</a>
|
||
</span>
|
||
|
||
<tal:comment tal:replace="nothing">
|
||
Pagelist with quantum leap links to next pages for quick navigation
|
||
</tal:comment>
|
||
<span tal:repeat="linklist python:batch.navurls(batchlinkparams, batch.leapforward)"
|
||
tal:condition="batch/leapforward"
|
||
tal:omit-tag="" >
|
||
…
|
||
<a href=""
|
||
tal:define="page python:linklist[0];
|
||
query python:linklist[1];"
|
||
tal:content="page"
|
||
tal:attributes="href python: '%s?%s#%s' % (url,query,batch.b_start_str)" >
|
||
</a>
|
||
</span>
|
||
|
||
<tal:comment tal:replace="nothing">
|
||
Link to last
|
||
</tal:comment>
|
||
<span tal:condition="python:batch.numpages not in batch.navlist">
|
||
<span tal:condition="python: batch.numpages - 1 not in (batch.nextlist or batch.leapforward)"
|
||
tal:omit-tag="">
|
||
…
|
||
</span>
|
||
<a href=""
|
||
tal:attributes="href python: '%s?%s#%s' % (url,batch.pageurl(batchlinkparams,batch.numpages), batch.b_start_str);"
|
||
tal:content="batch/numpages">3457</a>
|
||
</span>
|
||
|
||
</div>
|
||
|
||
<div id="results-feed"
|
||
metal:define-macro="feed"
|
||
tal:define="
|
||
batch batch|nothing;
|
||
batchformkeys batchformkeys|nothing;
|
||
batchlinkparams view/get_batchlinkparams;
|
||
">
|
||
<a tal:attributes="href python: 'feed?%s' % batch.pageurl(batchlinkparams,1);">Abonnez-vous au flux de cette recherche</a>
|
||
<span class="note">(une application ou extension dédiée de lecture de fil RSS peut être nécessaire).</span>
|
||
</div>
|
||
|
||
</body>
|
||
</html>
|