Mercurial > hg > documentViewer
annotate zpt/toc_thumbs.zpt @ 523:acdbd82114bb
fixed bug with original page numbers at the end of thumbnail list.
author | root@tuxserve01.mpiwg-berlin.mpg.de |
---|---|
date | Thu, 05 Apr 2012 14:50:00 +0200 |
parents | 7d7b639d7be7 |
children | 3f375a048402 |
rev | line source |
---|---|
480 | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
3 <html xmlns="http://www.w3.org/1999/xhtml"> | |
4 <head> | |
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
6 </head> | |
7 <body> | |
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 | 10 tal:define="start pageinfo/start; |
11 grpsize pageinfo/groupsize; | |
12 numgroups pageinfo/numgroups; | |
13 pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero; | |
516 | 14 pageNumbers docinfo/pageNumbers | nothing; |
480 | 15 left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']); |
16 right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);"> | |
17 <ul class="toctype"> | |
18 <li class="sel"> | |
19 <a tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a> | |
20 </li> | |
21 <li tal:condition="python:docinfo.get('numTocEntries', None)"> | |
22 <a tal:attributes="href python:here.getLink('tocMode','text')">Content</a> | |
23 </li> | |
24 <li tal:condition="python:docinfo.get('numFigureEntries', None)"> | |
25 <a tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a> | |
26 </li> | |
27 <li> | |
28 <a tal:attributes="href python:here.getLink('tocMode','none')">None</a> | |
29 </li> | |
30 </ul> | |
91
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
31 |
480 | 32 <div class="content"> |
33 <div class="ruler"> | |
34 <form class="autosubmit" tal:attributes="action viewerUrl"> | |
35 <input type="hidden" tal:define="params python:here.getParams('start',None)" | |
36 tal:repeat="param params" | |
37 tal:attributes="name param; value python:params[param]" /> | |
38 <a tal:condition="left" tal:attributes="href python:here.getLink('start',left)"><</a> | |
39 <span tal:condition="not:left"><</span> | |
40 <select class="autosubmit" name="start" | |
41 tal:define="ofs python:test(pageinfo['pageZero'],0,1)"> | |
482
7ca8ac7db06e
more new template stuff. more batching methods in documentViewer.
casties
parents:
481
diff
changeset
|
42 <tal:block > |
7ca8ac7db06e
more new template stuff. more batching methods in documentViewer.
casties
parents:
481
diff
changeset
|
43 <option tal:repeat="grp pageBatch/batches" |
7ca8ac7db06e
more new template stuff. more batching methods in documentViewer.
casties
parents:
481
diff
changeset
|
44 tal:attributes="selected python:start==grp['start']; value grp/start;" |
7ca8ac7db06e
more new template stuff. more batching methods in documentViewer.
casties
parents:
481
diff
changeset
|
45 tal:content="string:${grp/start} - ${grp/end}" /> |
480 | 46 </tal:block> |
47 </select> | |
48 <input type="submit" value="Go" /> | |
49 <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">></a> | |
50 <span tal:condition="not:right">></span> | |
51 </form> | |
52 </div> | |
53 | |
54 <table class="thumbs"> | |
55 <tr tal:repeat="row pageBatch/pages"> | |
56 <td tal:repeat="thumb row" | |
57 tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"> | |
58 <a tal:define="idx thumb/idx" tal:condition="idx" | |
59 tal:attributes="href python:here.getLink('pn',idx)"> | |
60 <img | |
61 tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic'); | |
62 alt idx" /><br/> | |
516 | 63 <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
|
64 <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 | 65 </a> |
66 </td> | |
67 </tr> | |
68 </table> | |
69 </div> <!-- content --> | |
70 </div> <!-- toc --> | |
71 </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
|
72 </html> |