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; |
---|
5 | tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl; |
---|
6 | numPages docinfo/numPages | nothing; dlBaseUrl docinfo/digilibBaseUrl | nothing;"> |
---|
7 | <head> |
---|
8 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
---|
9 | <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" /> |
---|
10 | <link rel="stylesheet" href="template/docuviewer_css" type="text/css" /> |
---|
11 | <script type="text/javascript" tal:attributes="src string:$dlBaseUrl/jquery/jquery.js"></script> |
---|
12 | <script type="text/javascript" tal:attributes="src string:$dlBaseUrl/jquery/jquery.cookie.js"></script> |
---|
13 | <script type="text/javascript" tal:attributes="src string:$dlBaseUrl/jquery/jquery.digilib.js"></script> |
---|
14 | <script type="text/javascript" tal:attributes="src string:$dlBaseUrl/jquery/jquery.digilib.geometry.js"></script> |
---|
15 | <script type="text/javascript" tal:attributes="src string:$dlBaseUrl/jquery/jquery.digilib.arrows.js"></script> |
---|
16 | <script type="text/javascript" tal:attributes="src string:$dlBaseUrl/jquery/jquery.digilib.marks.js"></script> |
---|
17 | <link rel="stylesheet" type="text/css" tal:attributes="href string:$dlBaseUrl/jquery/jquery.digilib.css" /> |
---|
18 | |
---|
19 | <script type="text/javascript" |
---|
20 | tal:content="python:'''\n |
---|
21 | var dlOpts = {\n |
---|
22 | 'interactionMode' : 'fullscreen',\n |
---|
23 | 'digilibBaseUrl' : '%s',\n |
---|
24 | 'fn' : '%s',\n |
---|
25 | 'pn' : '%s',\n |
---|
26 | 'suppressParamNames' : ['fn'],\n |
---|
27 | 'scalerInsets' : {'x':300, 'y':100}\n |
---|
28 | };\n'''%(dlBaseUrl,docinfo.get('imagePath',''),pageinfo.get('pn','1'))"></script> |
---|
29 | |
---|
30 | <script type="text/javascript"> |
---|
31 | // <!-- |
---|
32 | $(document).ready(function() { |
---|
33 | // autosubmit forms |
---|
34 | $('form.autosubmit').find('.autosubmit').change(function() { |
---|
35 | this.form.submit(); |
---|
36 | }); |
---|
37 | $('form.autosubmit input[type="submit"]').hide(); |
---|
38 | // get digilib div |
---|
39 | $digilib = $('div#scaler'); |
---|
40 | // configure digilib |
---|
41 | $digilib.digilib(dlOpts); |
---|
42 | }); |
---|
43 | // --> |
---|
44 | </script> |
---|
45 | </head> |
---|
46 | <body tal:condition="numPages"> |
---|
47 | <tal:block |
---|
48 | tal:define="docpath docinfo/textURLPath | nothing; |
---|
49 | pn pageinfo/pn; |
---|
50 | flowLtr python:docinfo.get('pageFlow','ltr')!='rtl';"> |
---|
51 | <div class="page-head"> |
---|
52 | <metal:block metal:use-macro="here/template/common_template/macros/head" /> |
---|
53 | </div> |
---|
54 | <div class="page-body" tal:condition="python:here.isAccessible(docinfo)"> |
---|
55 | <!-- table of contents --> |
---|
56 | <div class="col toc"> |
---|
57 | <metal:block metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" /> |
---|
58 | </div> |
---|
59 | <!-- col-main: text page --> |
---|
60 | <div class="col main"> |
---|
61 | <div class="ruler top"> |
---|
62 | <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" /> |
---|
63 | </div> |
---|
64 | <div class="content images"> |
---|
65 | <div id="scaler"> |
---|
66 | <img tal:attributes="src string:${docinfo/imageURL}&pn=${pageinfo/pn}&dw=500&dh=500" /> |
---|
67 | </div> |
---|
68 | </div> |
---|
69 | <!-- /content --> |
---|
70 | </div> |
---|
71 | <!-- /col-main --> |
---|
72 | <div class="col buttons"> |
---|
73 | <div class="options digilib"> |
---|
74 | <ul> |
---|
75 | <li><a href="javascript:$digilib.digilib('zoomBy', 1.4)"> <img tal:condition="exists:here/template/zoom-in.png" |
---|
76 | tal:attributes="src here/template/zoom-in.png/absolute_url" /> zoom in |
---|
77 | </a></li> |
---|
78 | <li><a href="javascript:$digilib.digilib('zoomBy', 0.7)"> <img |
---|
79 | tal:condition="exists:here/template/zoom-out.png" tal:attributes="src here/template/zoom-out.png/absolute_url" /> |
---|
80 | zoom out |
---|
81 | </a></li> |
---|
82 | <li><a href="javascript:$digilib.digilib('zoomArea')"> <img tal:condition="exists:here/template/zoom-area.png" |
---|
83 | tal:attributes="src here/template/zoom-area.png/absolute_url" /> zoom area |
---|
84 | </a></li> |
---|
85 | <li><a href="javascript:$digilib.digilib('zoomFull')"> <img tal:condition="exists:here/template/zoom-full.png" |
---|
86 | tal:attributes="src here/template/zoom-full.png/absolute_url" /> full page |
---|
87 | </a></li> |
---|
88 | <li><a href="javascript:$digilib.digilib('zoomFull', 'width')"> <img |
---|
89 | tal:condition="exists:here/template/pagewidth.png" tal:attributes="src here/template/pagewidth.png/absolute_url" /> page |
---|
90 | width |
---|
91 | </a></li> |
---|
92 | <li><a href="javascript:$digilib.digilib('setMark')"> <img tal:condition="exists:here/template/mark.png" |
---|
93 | tal:attributes="src here/template/mark.png/absolute_url" /> set mark |
---|
94 | </a></li> |
---|
95 | <li><a href="javascript:$digilib.digilib('removeMark')"> <img tal:condition="exists:here/template/delmark.png" |
---|
96 | tal:attributes="src here/template/delmark.png/absolute_url" /> remove mark |
---|
97 | </a></li> |
---|
98 | <li><a href="javascript:$digilib.digilib('reference')"> <img tal:condition="exists:here/template/reference.png" |
---|
99 | tal:attributes="src here/template/reference.png/absolute_url" /> get reference |
---|
100 | </a></li> |
---|
101 | <li><a href="javascript:$digilib.digilib('digilibUrl', 'open_new')"> <img |
---|
102 | tal:condition="exists:here/template/digilib.png" tal:attributes="src here/template/digilib.png/absolute_url" /> |
---|
103 | digilib |
---|
104 | </a></li> |
---|
105 | </ul> |
---|
106 | </div> |
---|
107 | </div> |
---|
108 | </div> |
---|
109 | <!-- page-body --> |
---|
110 | <div class="page-body" tal:condition="python:not here.isAccessible(docinfo)"> |
---|
111 | <div class="errortext">Sorry, access to this document is restricted.</div> |
---|
112 | </div> |
---|
113 | <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer"> |
---|
114 | <!-- footer --> |
---|
115 | <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/> |
---|
116 | </tal:block> |
---|
117 | |
---|
118 | </tal:block> |
---|
119 | </body> |
---|
120 | <body tal:condition="not:numPages"> |
---|
121 | <div class="errortext">Sorry, document doesn't exist.</div> |
---|
122 | <tal:block tal:condition="exists:here/template/site_template.pt/macros/footer"> |
---|
123 | <!-- footer --> |
---|
124 | <metal:block metal:use-macro="here/template/site_template.pt/macros/footer"/> |
---|
125 | </tal:block> |
---|
126 | </body> |
---|
127 | </html> |
---|