annotate zpt/toc_concordance.zpt @ 526:3f375a048402

moved search and dict into separate layers. removed search_template. added tocMode=concordance. fixed bug with paging tocs.
author casties
date Tue, 10 Apr 2012 19:41:44 +0200
parents
children 0b8bed1223ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
526
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
4 <head>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
6 </head>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
7 <body>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
8 <!-- block used for main content area -->
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
9 <div class="toc-concordance" metal:define-macro="main"
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
10 tal:define="start pageinfo/start; tocsize docinfo/numPages; grpsize pageinfo/tocPageSize;
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
11 pageNumbers docinfo/pageNumbers | nothing;
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
12 batch python:here.getBatch(start=start,size=grpsize,end=tocsize,data=pageNumbers);">
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
13 <div metal:use-macro="here/template/common_template/macros/toc_switcher" />
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
14 <div class="ruler">
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
15 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" />
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
16 </div>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
17 <div class="content">
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
18 <table tal:condition="pageNumbers">
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
19 <tr>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
20 <th>Scan</th>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
21 <th>Original</th>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
22 </tr>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
23 <tr tal:repeat="toc batch/this">
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
24 <tal:block tal:define="pn toc/pn | nothing">
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
25 <td>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
26 <a tal:condition="pn"
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
27 tal:attributes="href python:here.getLink('pn', toc['pn'])"
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
28 tal:content="toc/pn" title="Scan number">ScanNo</a>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
29 </td>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
30 <td>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
31 <span class="originalPage" title="Original page number"
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
32 tal:define="originalPage toc/no | nothing"
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
33 tal:condition="python:originalPage!=None"><span
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
34 tal:replace="originalPage" /><span
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
35 tal:define="originalPageNorm toc/non | nothing"
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
36 tal:condition="python:originalPageNorm!=None"> [<span
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
37 tal:replace="originalPageNorm" />]
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
38 </span></span>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
39 </td>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
40 </tal:block>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
41 </tr>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
42 </table>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
43 </div>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
44 </div>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
45 <!-- /toc -->
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
46 </body>
3f375a048402 moved search and dict into separate layers.
casties
parents:
diff changeset
47 </html>