Mercurial > hg > documentViewer
comparison zpt/viewer_main.zpt @ 36:0bf5aac0ff41
version 0.2.4
* minor improvements
* tries more than one time to read info from digilib
author | casties |
---|---|
date | Wed, 12 Apr 2006 19:47:53 +0200 |
parents | 0ca99253b4ce |
children | 025d3b6cba51 |
comparison
equal
deleted
inserted
replaced
35:2d9261aea8f3 | 36:0bf5aac0ff41 |
---|---|
2 <head> | 2 <head> |
3 <link rel="stylesheet" href="template/docuviewer_css" type="text/css"> | 3 <link rel="stylesheet" href="template/docuviewer_css" type="text/css"> |
4 </head> | 4 </head> |
5 <body tal:condition="docinfo/numPages"> | 5 <body tal:condition="docinfo/numPages"> |
6 <div tal:replace="structure python:here.template.head_main(docinfo=docinfo)"/> | 6 <div tal:replace="structure python:here.template.head_main(docinfo=docinfo)"/> |
7 <tal:block tal:condition="python:here.accessOK(docinfo)"> | 7 <tal:block tal:condition="python:here.isAccessible(docinfo)"> |
8 <table border="0" width="100%" height="100%"> | 8 <table border="0" width="100%" height="100%"> |
9 <tr> | 9 <tr> |
10 <td width="300px" valign="top"> | 10 <td width="300px" valign="top"> |
11 <tal:block replace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" /> | 11 <tal:block replace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" /> |
12 </td> | 12 </td> |
14 <tal:block tal:content="structure python:here.template.image_main(docinfo=docinfo,pageinfo=pageinfo)" /> | 14 <tal:block tal:content="structure python:here.template.image_main(docinfo=docinfo,pageinfo=pageinfo)" /> |
15 </td> | 15 </td> |
16 </tr> | 16 </tr> |
17 </table> | 17 </table> |
18 </tal:block> | 18 </tal:block> |
19 <tal:block tal:condition="not:python:here.accessOK(docinfo)"> | 19 <tal:block tal:condition="not:python:here.isAccessible(docinfo)"> |
20 <div class="errortext">Sorry, access to this document is restricted.</div> | 20 <div class="errortext">Sorry, access to this document is restricted.</div> |
21 </tal:block> | 21 </tal:block> |
22 </body> | 22 </body> |
23 <body tal:condition="not:docinfo/numPages"> | 23 <body tal:condition="not:docinfo/numPages"> |
24 <div class="errortext">Sorry, document doesn't exist.</div> | 24 <div class="errortext">Sorry, document doesn't exist.</div> |