annotate zpt/toc_thumbs.zpt @ 572:51800c42bcda

deal with empty repositoryType
author casties
date Mon, 15 Oct 2012 13:03:37 +0200
parents 8f2dab2d2d2a
children
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>
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
8 <div class="toc-container" metal:define-macro="main">
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
9 <div metal:use-macro="here/template/common_template/macros/toc_switcher" />
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
10 <!-- block used for main content area -->
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
11 <div class="tocbody thumbs"
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
12 tal:define="start pageinfo/start;
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
13 grpsize pageinfo/groupsize;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
14 numgroups pageinfo/numgroups;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
15 pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
516
7d7b639d7be7 add methods to use doc-info.xql.
casties
parents: 489
diff changeset
16 pageNumbers docinfo/pageNumbers | nothing;
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
17 left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
18 right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
91
b8c491e52ebc new version with new full-text infrastructure and some more changed templates
casties
parents:
diff changeset
19
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
20 <div class="content">
537
ad6f97fd3944 fixes closing tickets concerning tocs.
casties
parents: 534
diff changeset
21 <h4>List of thumbnails</h4>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
22 <div class="ruler top">
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
23 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
24 </div>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
25 <table class="thumbs">
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
26 <tr tal:repeat="row pageBatch/pages">
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
27 <td tal:repeat="thumb row" tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"><a
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
28 tal:define="idx thumb/idx" tal:condition="idx" tal:attributes="href python:here.getLink('pn',idx)"> <img
563
8f2dab2d2d2a new toc thumb replacement.
casties
parents: 562
diff changeset
29 tal:attributes="src python:test(docinfo.get('imageURL',None),here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'template/text.png');
8f2dab2d2d2a new toc thumb replacement.
casties
parents: 562
diff changeset
30 alt idx;" /><br />
534
9009cf0b0532 small fixes.
casties
parents: 532
diff changeset
31 <span tal:attributes="title string:Scan number $idx" tal:content="idx" /> <span
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
32 tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']"
534
9009cf0b0532 small fixes.
casties
parents: 532
diff changeset
33 tal:attributes="title python:'Original page number %s'%(pageNumbers[idx]['no'])" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" />
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
34 </a></td>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
35 </tr>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
36 </table>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
37 <div class="ruler bottom">
539
37d122560028 more nicer
casties
parents: 537
diff changeset
38 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
37d122560028 more nicer
casties
parents: 537
diff changeset
39 </div>
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
40 </div>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
41 <!-- content -->
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
42 </div>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
43 <!-- toc -->
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
44 </div>
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
45 </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
46 </html>