annotate zpt/viewer/toc_thumbs.zpt @ 607:cb5a9c4f5e3a

CLOSED - # 268: display of subdocuments https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/ticket/268
author casties
date Fri, 14 Dec 2012 17:28:31 -0500
parents da7daa783df4
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;
607
cb5a9c4f5e3a CLOSED - # 268: display of subdocuments
casties
parents: 594
diff changeset
13 minPageNo docinfo/minPageNo;
cb5a9c4f5e3a CLOSED - # 268: display of subdocuments
casties
parents: 594
diff changeset
14 maxPageNo docinfo/maxPageNo;
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
15 grpsize pageinfo/groupsize;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
16 numgroups pageinfo/numgroups;
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
17 pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
516
7d7b639d7be7 add methods to use doc-info.xql.
casties
parents: 489
diff changeset
18 pageNumbers docinfo/pageNumbers | nothing;
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
19 left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
20 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
21
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
22 <div class="content">
537
ad6f97fd3944 fixes closing tickets concerning tocs.
casties
parents: 534
diff changeset
23 <h4>List of thumbnails</h4>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
24 <div class="ruler top">
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
25 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
26 </div>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
27 <table class="thumbs">
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
28 <tr tal:repeat="row pageBatch/pages">
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
29 <td tal:repeat="thumb row" tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"><a
607
cb5a9c4f5e3a CLOSED - # 268: display of subdocuments
casties
parents: 594
diff changeset
30 tal:define="idx thumb/idx" tal:condition="idx"
cb5a9c4f5e3a CLOSED - # 268: display of subdocuments
casties
parents: 594
diff changeset
31 tal:attributes="href python:here.getLink('pn',idx); class python:test(idx<minPageNo or idx>maxPageNo, 'outside')"><img
cb5a9c4f5e3a CLOSED - # 268: display of subdocuments
casties
parents: 594
diff changeset
32 tal:condition="python:docinfo.get('imageURL',None) or exists('template/text.png')"
563
8f2dab2d2d2a new toc thumb replacement.
casties
parents: 562
diff changeset
33 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
34 alt idx;" /><br />
534
9009cf0b0532 small fixes.
casties
parents: 532
diff changeset
35 <span tal:attributes="title string:Scan number $idx" tal:content="idx" /> <span
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
36 tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']"
534
9009cf0b0532 small fixes.
casties
parents: 532
diff changeset
37 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
38 </a></td>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
39 </tr>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
40 </table>
540
4b43a57ad9b3 more nicer
casties
parents: 539
diff changeset
41 <div class="ruler bottom">
539
37d122560028 more nicer
casties
parents: 537
diff changeset
42 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
37d122560028 more nicer
casties
parents: 537
diff changeset
43 </div>
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
44 </div>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
45 <!-- content -->
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
46 </div>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
47 <!-- toc -->
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
48 </div>
480
50a28442f21c more new template stuff
casties
parents: 122
diff changeset
49 </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
50 </html>