Changeset 516:7d7b639d7be7 in documentViewer for zpt


Ignore:
Timestamp:
Mar 5, 2012, 5:04:49 PM (12 years ago)
Author:
casties
Branch:
default
Message:

add methods to use doc-info.xql.
read list of page numbers from doc-info.xql.
add original page numbers to thumbs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/toc_thumbs.zpt

    r489 r516  
    1212                numgroups pageinfo/numgroups;
    1313                pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero;
     14                pageNumbers docinfo/pageNumbers | nothing;
    1415                left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']);
    1516                right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);">
     
    6061                tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic');
    6162                                alt idx" /><br/>
    62               <span tal:content="idx" />
     63              <span title="Scan number" tal:content="idx"/>
     64              <span tal:condition="python:pageNumbers and pageNumbers[idx]['no']" title="Original page number" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])"/>
    6365            </a>
    6466          </td>
Note: See TracChangeset for help on using the changeset viewer.