annotate zpt/toc_thumbs.zpt @ 528:f8a5f63eafc0

new viewMode=thumbs.
author casties
date Fri, 13 Apr 2012 16:55:16 +0200
parents 3f375a048402
children 0b8bed1223ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
4 <head>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
6 </head>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
7 <body>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
8 <!-- block used for main content area -->
489
55e3398e395e more new templates. monkey-patch for App.ImageFile.
casties
parents: 488
diff changeset
9 <div class="toc-thumbs" metal:define-macro="main"
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
10 tal:define="start pageinfo/start;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
11 grpsize pageinfo/groupsize;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
12 numgroups pageinfo/numgroups;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
13 pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
516
7d7b639d7be7 add methods to use doc-info.xql.
casties
parents: 489
diff changeset
14 pageNumbers docinfo/pageNumbers | nothing;
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
15 left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
16 right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
526
3f375a048402 moved search and dict into separate layers.
casties
parents: 523
diff changeset
17 <div metal:use-macro="here/template/common_template/macros/toc_switcher"/>
91
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
18
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
19 <div class="content">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
20 <div class="ruler">
528
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 526
diff changeset
21 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs"/>
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
22 </div>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
23
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
24 <table class="thumbs">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
25 <tr tal:repeat="row pageBatch/pages">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
26 <td tal:repeat="thumb row"
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
27 tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
28 <a tal:define="idx thumb/idx" tal:condition="idx"
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
29 tal:attributes="href python:here.getLink('pn',idx)">
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
30 <img
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
31 tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic');
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
32 alt idx" /><br/>
516
7d7b639d7be7 add methods to use doc-info.xql.
casties
parents: 489
diff changeset
33 <span title="Scan number" tal:content="idx"/>
523
acdbd82114bb fixed bug with original page numbers at the end of thumbnail list.
root@tuxserve01.mpiwg-berlin.mpg.de
parents: 516
diff changeset
34 <span tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']" title="Original page number" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])"/>
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
35 </a>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
36 </td>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
37 </tr>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
38 </table>
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
39 </div> <!-- content -->
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
40 </div> <!-- toc -->
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
41 </body>
523
acdbd82114bb fixed bug with original page numbers at the end of thumbnail list.
root@tuxserve01.mpiwg-berlin.mpg.de
parents: 516
diff changeset
42 </html>