changeset 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 9a3cc3732194
children 1a20621f2555
files zpt/toc_thumbs.zpt
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/zpt/toc_thumbs.zpt	Mon Mar 12 19:02:57 2012 +0100
+++ b/zpt/toc_thumbs.zpt	Thu Apr 05 14:50:00 2012 +0200
@@ -61,7 +61,7 @@
                 tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic');
                                 alt idx" /><br/>
               <span title="Scan number" tal:content="idx"/>
-              <span tal:condition="python:pageNumbers and pageNumbers[idx]['no']" title="Original page number" tal:content="python:' (%s)'%(pageNumbers[idx]['no'])"/>
+              <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'])"/>
             </a>
           </td>
         </tr>
@@ -69,4 +69,4 @@
     </div> <!-- content -->
   </div> <!-- toc -->
 </body>
-</html>
\ No newline at end of file
+</html>