source: documentViewer/zpt/toc_thumbs.zpt @ 526:3f375a048402

Last change on this file since 526:3f375a048402 was 526:3f375a048402, checked in by casties, 12 years ago

moved search and dict into separate layers.
removed search_template.
added tocMode=concordance.
fixed bug with paging tocs.

File size: 2.8 KB
Line 
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 -->
9  <div class="toc-thumbs" metal:define-macro="main"
10    tal:define="start pageinfo/start;
11                grpsize pageinfo/groupsize;
12                numgroups pageinfo/numgroups;
13                pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
14                pageNumbers docinfo/pageNumbers | nothing;
15                left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
16                right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
17    <div metal:use-macro="here/template/common_template/macros/toc_switcher"/>
18
19    <div class="content">
20      <div class="ruler">
21        <form class="autosubmit" tal:attributes="action viewerUrl">
22          <input type="hidden" tal:define="params python:here.getParams('start',None)"
23            tal:repeat="param params"
24            tal:attributes="name param; value python:params[param]" />
25          <a tal:condition="left" tal:attributes="href python:here.getLink('start',left)">&lt;</a>
26          <span tal:condition="not:left">&lt;</span>
27          <select class="autosubmit" name="start"
28            tal:define="ofs python:test(pageinfo['pageZero'],0,1)">
29            <tal:block >
30              <option tal:repeat="grp pageBatch/batches"
31                tal:attributes="selected python:start==grp['start']; value grp/start;"
32                tal:content="string:${grp/start} - ${grp/end}" />
33            </tal:block>
34          </select>
35          <input type="submit" value="Go" />
36          <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">&gt;</a>
37          <span tal:condition="not:right">&gt;</span>
38        </form>
39      </div>
40
41      <table class="thumbs">
42        <tr tal:repeat="row pageBatch/pages">
43          <td tal:repeat="thumb row"
44            tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')">
45            <a tal:define="idx thumb/idx" tal:condition="idx"
46              tal:attributes="href python:here.getLink('pn',idx)">
47              <img
48                tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic');
49                                alt idx" /><br/>
50              <span title="Scan number" tal:content="idx"/>
51              <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'])"/>
52            </a>
53          </td>
54        </tr>
55      </table>
56    </div> <!-- content -->
57  </div> <!-- toc -->
58</body>
59</html>
Note: See TracBrowser for help on using the repository browser.