source: documentViewer/zpt/viewer/toc_thumbs.zpt @ 607:cb5a9c4f5e3a

Last change on this file since 607:cb5a9c4f5e3a was 607:cb5a9c4f5e3a, checked in by casties, 11 years ago

CLOSED - # 268: display of subdocuments
https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/ticket/268

  • Property exe set to *
File size: 2.5 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  <div class="toc-container" metal:define-macro="main">
9    <div metal:use-macro="here/template/common_template/macros/toc_switcher" />
10    <!-- block used for main content area -->
11    <div class="tocbody thumbs"
12      tal:define="start pageinfo/start;
13                minPageNo docinfo/minPageNo;
14                maxPageNo docinfo/maxPageNo;
15                grpsize pageinfo/groupsize;
16                numgroups pageinfo/numgroups;
17                pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
18                pageNumbers docinfo/pageNumbers | nothing;
19                left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
20                right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
21
22      <div class="content">
23        <h4>List of thumbnails</h4>
24        <div class="ruler top">
25          <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
26        </div>
27        <table class="thumbs">
28          <tr tal:repeat="row pageBatch/pages">
29            <td tal:repeat="thumb row" tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"><a
30              tal:define="idx thumb/idx" tal:condition="idx"
31              tal:attributes="href python:here.getLink('pn',idx); class python:test(idx<minPageNo or idx>maxPageNo, 'outside')"><img
32                tal:condition="python:docinfo.get('imageURL',None) or exists('template/text.png')"
33                tal:attributes="src python:test(docinfo.get('imageURL',None),here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'template/text.png');
34                                alt idx;" /><br />
35                <span tal:attributes="title string:Scan number $idx" tal:content="idx" /> <span
36                tal:condition="python:pageNumbers and pageNumbers.get(idx, False) and pageNumbers[idx]['no']"
37                tal:attributes="title python:'Original page number %s'%(pageNumbers[idx]['no'])" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])" />
38            </a></td>
39          </tr>
40        </table>
41        <div class="ruler bottom">
42          <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler_thumbs" />
43        </div>
44      </div>
45      <!-- content -->
46    </div>
47    <!-- toc -->
48  </div>
49</body>
50</html>
Note: See TracBrowser for help on using the repository browser.