view zpt/toc_concordance.zpt @ 546:2928037f9a75

ASSIGNED - # 249: Annotations shared in groups https://it-dev.mpiwg-berlin.mpg.de/tracs/mpdl-project-software/ticket/249
author casties
date Tue, 28 Aug 2012 20:24:01 +0200
parents 4b43a57ad9b3
children
line wrap: on
line source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
  <div class="toc-container" metal:define-macro="main">
    <div metal:use-macro="here/template/common_template/macros/toc_switcher" />
    <!-- block used for main content area -->
    <div class="tocbody concordance"
      tal:define="start pageinfo/start; tocsize docinfo/numPages; grpsize pageinfo/tocPageSize;
                pageNumbers docinfo/pageNumbers | nothing;
                batch python:here.getBatch(start=start,size=grpsize,end=tocsize,data=pageNumbers);">
      <h4>Page concordance</h4>              
      <div class="ruler top">
        <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" />
      </div>
      <div class="content">
        <table class="concordance" tal:condition="pageNumbers">
          <tr>
            <th>Scan</th>
            <th>Original</th>
          </tr>
          <tr tal:repeat="toc batch/this">
            <tal:block tal:define="pn toc/pn | nothing">
              <td><a tal:condition="pn" tal:attributes="href python:here.getLink('pn', toc['pn'])" tal:content="toc/pn"
                title="Scan number">ScanNo</a></td>
              <td><span class="originalPage" title="Original page number" tal:define="originalPage toc/no | nothing"
                tal:condition="python:originalPage!=None"><span tal:replace="originalPage" /><span
                  tal:define="originalPageNorm toc/non | nothing" tal:condition="python:originalPageNorm!=None"> [<span
                    tal:replace="originalPageNorm" />]
                </span></span></td>
            </tal:block>
          </tr>
        </table>
      </div>
      <div class="ruler bottom">
        <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" />
      </div>
    </div>
  </div>
  <!-- /toc -->
</body>
</html>