503
|
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"
|
|
4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode;
|
504
|
5 tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl;
|
503
|
6 rootUrl here/getDocumentViewerURL;
|
|
7 numPages docinfo/numPages | nothing;">
|
|
8 <head>
|
|
9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
10 <title
|
|
11 tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" />
|
|
12 <link rel="stylesheet" href="template/docuviewer_css" type="text/css" />
|
|
13 <script type="text/javascript" tal:attributes="src string:$rootUrl/template/jquery_js"></script>
|
|
14 <script type="text/javascript">
|
|
15 // <!--
|
|
16 $(document).ready(function() {
|
|
17 // autosubmit forms
|
|
18 $('form.autosubmit').find('.autosubmit').change(function() {
|
|
19 this.form.submit();
|
|
20 });
|
|
21 $('form.autosubmit input[type="submit"]').hide();
|
|
22 });
|
|
23 // -->
|
|
24 </script>
|
|
25 </head>
|
|
26 <body tal:condition="numPages">
|
|
27 <tal:block
|
|
28 tal:define="docpath docinfo/textURLPath;
|
|
29 pn pageinfo/pn;
|
512
|
30 flowLtr python:docinfo.get('pageFlow','ltr')!='rtl';
|
504
|
31 textPage python:here.getTextPage(mode='xml', pn=pn, docinfo=docinfo, pageinfo=pageinfo) or '[no text here]';">
|
503
|
32 <!-- header -->
|
|
33 <div class="page-head">
|
|
34 <metal:block metal:use-macro="here/template/common_template/macros/head" />
|
|
35 </div>
|
|
36 <div class="page-body" tal:condition="python:here.isAccessible(docinfo)">
|
|
37 <!--table of contents-->
|
511
|
38 <div class="col toc">
|
503
|
39 <metal:block
|
|
40 metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" />
|
|
41 </div>
|
|
42
|
|
43 <!-- text page -->
|
511
|
44 <div class="col main">
|
503
|
45 <div class="ruler">
|
|
46 <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" />
|
|
47 </div>
|
|
48 <div class="content">
|
|
49 <div class="pageHeaderTitle" tal:condition="exists:pageinfo/pageHeaderTitle"
|
|
50 tal:content="structure pageinfo/pageHeaderTitle" />
|
|
51 <tal:block tal:replace="structure textPage" />
|
|
52 </div>
|
|
53 </div>
|
|
54 <!-- col-main -->
|
|
55
|
|
56 <!-- right-side options -->
|
511
|
57 <div class="col buttons">
|
503
|
58 <!--"BEGIN TEXT SIZE"-->
|
532
|
59 <!-- <div class="options">
|
503
|
60 <h4>Text size</h4>
|
511
|
61 <ul class="fsizer">
|
|
62 <li>
|
|
63 <a href="javascript:fontSize(12);" class="fs_sml">S</a>
|
|
64 </li>
|
|
65 <li>
|
|
66 <a href="javascript:fontSize(14);" class="fs_med">M</a>
|
|
67 </li>
|
|
68 <li>
|
|
69 <a href="javascript:fontSize(16);" class="fs_lrg">L</a>
|
|
70 </li>
|
|
71 </ul>
|
532
|
72 </div> -->
|
503
|
73 <!--"END TEXT SIZE"-->
|
|
74
|
|
75 </div>
|
|
76 <!-- /col-right -->
|
|
77
|
|
78 </div>
|
|
79 <!-- /page-body -->
|
|
80
|
|
81 <div class="page-body" tal:condition="python:not here.isAccessible(docinfo)">
|
|
82 <div class="errortext">Sorry, access to this document is restricted.</div>
|
|
83 </div>
|
|
84
|
|
85 </tal:block>
|
|
86 </body>
|
|
87 <body tal:condition="not:numPages">
|
|
88 <div class="errortext">Sorry, document doesn't exist.</div>
|
|
89 </body>
|
|
90 </html>
|