479
|
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"
|
480
|
4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode;
|
|
5 tocMode pageinfo/tocMode; viewType pageinfo/viewType; viewerUrl docinfo/viewerUrl;
|
|
6 numPages docinfo/numPages | nothing;">
|
479
|
7 <head>
|
|
8 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
483
|
9 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')"/>
|
479
|
10 <link rel="stylesheet" href="template/docuviewer_css" type="text/css">
|
|
11 </head>
|
480
|
12 <body tal:condition="numPages">
|
|
13 <tal:block tal:define="docpath docinfo/textURLPath;
|
|
14 pn pageinfo/pn;
|
|
15 flowLtr python:pageinfo.get('pageFlow','ltr')!='rtl';
|
|
16 prev python:test(pn>1,pn-1,None); next python:test(pn<numPages,pn+1,None);
|
|
17 first python:test(pn>1,1,None); last python:test(pn<numPages,numPages,None);
|
|
18 left python:test(flowLtr,prev,next); right python:test(flowLtr,next,prev);
|
|
19 leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);
|
|
20 textPage python:here.getTextPage(mode=viewType, pn=pn, docinfo=docinfo, pageinfo=pageinfo);">
|
|
21 <div class="page_head" metal:use-macro="here/template/head_main/macros/main" />
|
|
22 <div class="page_body" tal:condition="python:here.isAccessible(docinfo)">
|
|
23 <!--table of contents-->
|
481
|
24 <div class="col_left"
|
480
|
25 metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" />
|
|
26 <!-- text page -->
|
481
|
27 <div class="col_main">
|
480
|
28 <div class="ruler">
|
481
|
29 <form class="autosubmit" tal:attributes="action viewerUrl">
|
480
|
30 <input type="hidden" tal:define="params python:here.getParams('pn', None)"
|
|
31 tal:repeat="param params" tal:attributes="name param; value python:params[param]" />
|
|
32 page
|
|
33 <a tal:condition="leftest" tal:attributes="href python:here.getLink('pn',leftest)">|<</a>
|
|
34 <span tal:condition="not:leftest">|<</span>
|
|
35 <a tal:condition="left" tal:attributes="href python:here.getLink('pn',left)"><</a>
|
|
36 <span tal:condition="not:left"><</span>
|
|
37 <input class="autosubmit" size="3" type="text" name="pn" tal:attributes="value pn" />
|
|
38 <tal:block tal:define="originalPage pageinfo/pageNumberOrig | nothing"
|
|
39 tal:condition="python:originalPage!=None">
|
|
40 (<span tal:replace="originalPage"/><span tal:define="originalPageNorm pageinfo/pageNumberOrigNorm | nothing" tal:condition="python:originalPageNorm!=None">[<span tal:replace="originalPageNorm"/>]</span>)
|
|
41 </tal:block>
|
|
42 <input type="submit" value="Go" />
|
|
43 of
|
|
44 <span tal:replace="numPages"/>
|
|
45 <a tal:condition="right" tal:attributes="href python:here.getLink('pn',right)">></a>
|
|
46 <span tal:condition="not:right">></span>
|
|
47 <a tal:condition="rightest" tal:attributes="href python:here.getLink('pn',rightest)">>|</a>
|
|
48 <span tal:condition="not:rightest">>|</span>
|
|
49 </form>
|
483
|
50 </div> <!-- ruler -->
|
|
51 <ul class="switcher">
|
|
52 <li>
|
|
53 <a tal:attributes="href python:here.getLink('viewMode','images')">Image</a>
|
|
54 </li>
|
|
55 <li class="sel">Text</li>
|
|
56 </ul>
|
481
|
57 <div class="content">
|
480
|
58 <div class="pageHeaderTitle" tal:condition="exists:pageinfo/pageHeaderTitle" tal:content="structure pageinfo/pageHeaderTitle"/>
|
|
59 <tal:block tal:replace="structure textPage"/>
|
|
60 </div>
|
|
61 </div>
|
|
62 </div>
|
|
63 <div class="page_body" tal:condition="python:not here.isAccessible(docinfo)">
|
|
64 <div class="errortext">Sorry, access to this document is restricted.</div>
|
|
65 </div>
|
|
66 </tal:block>
|
479
|
67 </body>
|
480
|
68 <body tal:condition="not:numPages">
|
|
69 <div class="errortext">Sorry, document doesn't exist.</div>
|
479
|
70 </body>
|
|
71 </html>
|