Annotation of documentViewer/zpt/viewer_images.zpt, revision 1.1.2.5
1.1.2.1 casties 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; viewType pageinfo/viewType; viewerUrl docinfo/viewerUrl;
6: numPages docinfo/numPages | nothing; dlBaseUrl docinfo/digilibBaseUrl | nothing;">
7: <head>
1.1.2.5 ! casties 8: <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
1.1.2.1 casties 9: <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" />
10: <link rel="stylesheet" href="template/docuviewer_css" type="text/css" />
1.1.2.5 ! casties 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.birdseye.js"></script>
! 16: <!-- <script type="text/javascript" tal:attributes="src string:$dlBaseUrl/jquery/jquery.digilib.regions.js"></script> -->
! 17: <link rel="stylesheet" type="text/css" tal:attributes="href string:$dlBaseUrl/jquery/jquery.digilib.css" />
1.1.2.1 casties 18:
19: <script type="text/javascript"
20: tal:content="string:
21: var dlOpts = {
22: 'interactionMode' : 'fullscreen',
23: 'digilibBaseUrl' : '$dlBaseUrl',
24: 'fn' : '${docinfo/imagePath}',
25: 'pn' : '${pageinfo/pn}',
26: 'suppressParamNames' : ['fn'],
1.1.2.5 ! casties 27: 'showRegionNumbers' : true,
! 28: 'visibleButtonSets' : 0
1.1.2.1 casties 29: };"></script>
30:
31: <script type="text/javascript">
32: //<!--
33: $(document).ready(function() {
34: // autosubmit forms
35: $('form.autosubmit').find('.autosubmit').change(function() {
36: this.form.submit();
37: });
38: $('form.autosubmit input[type="submit"]').hide();
39: // configure digilib
40: $('div.scaler').digilib(dlOpts);
41: });
42: //-->
43: </script>
44: </head>
45: <body tal:condition="numPages">
46: <tal:block
47: tal:define="docpath docinfo/textURLPath | nothing;
48: pn pageinfo/pn;
49: flowLtr python:pageinfo.get('pageFlow','ltr')!='rtl';
50: prev python:test(pn>1,pn-1,None); next python:test(pn<numPages,pn+1,None);
51: first python:test(pn>1,1,None); last python:test(pn<numPages,numPages,None);
52: left python:test(flowLtr,prev,next); right python:test(flowLtr,next,prev);
53: leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);">
1.1.2.4 casties 54: <div class="page-head">
55: <metal:block metal:use-macro="here/template/head_main/macros/main" />
56: </div>
1.1.2.2 casties 57: <div class="page-body" tal:condition="python:here.isAccessible(docinfo)">
1.1.2.1 casties 58: <!--table of contents-->
1.1.2.3 casties 59: <div class="col-left">
60: <metal:block metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" />
61: </div>
1.1.2.1 casties 62: <!-- text page -->
1.1.2.2 casties 63: <div class="col-main">
1.1.2.1 casties 64: <div class="ruler">
65: <form class="autosubmit" tal:attributes="action viewerUrl">
66: <input type="hidden" tal:define="params python:here.getParams('pn', None)" tal:repeat="param params"
67: tal:attributes="name param; value python:params[param]" /> page <a tal:condition="leftest"
68: tal:attributes="href python:here.getLink('pn',leftest)">|<</a> <span tal:condition="not:leftest">|<</span> <a
69: tal:condition="left" tal:attributes="href python:here.getLink('pn',left)"><</a> <span tal:condition="not:left"><</span>
70: <input class="autosubmit" size="3" type="text" name="pn" tal:attributes="value pn" />
71: <tal:block tal:define="originalPage pageinfo/pageNumberOrig | nothing" tal:condition="python:originalPage!=None">
72: (<span tal:replace="originalPage" />
73: <span tal:define="originalPageNorm pageinfo/pageNumberOrigNorm | nothing"
74: tal:condition="python:originalPageNorm!=None">[<span tal:replace="originalPageNorm" />]</span>)
75: </tal:block>
76: <input type="submit" value="Go" />
77: of <span tal:replace="numPages" /> <a tal:condition="right"
78: tal:attributes="href python:here.getLink('pn',right)">></a> <span tal:condition="not:right">></span> <a
79: tal:condition="rightest" tal:attributes="href python:here.getLink('pn',rightest)">>|</a> <span
80: tal:condition="not:rightest">>|</span>
81: </form>
82: </div>
83: <!-- ruler -->
84: <ul class="switcher">
85: <li class="sel">Image</li>
86: <li><a tal:condition="docpath" tal:attributes="href python:here.getLink('viewMode','text')">Text</a></li>
87: </ul>
88: <div class="content">
89: <div class="scaler">
90: <img tal:attributes="src string:${docinfo/imageURL}&pn=${pageinfo/pn}&dw=500&dh=500" />
91: </div>
92: </div> <!-- content -->
1.1.2.2 casties 93: </div> <!-- col-main -->
94: <div class="col-right">
1.1.2.1 casties 95: BUTTONS
96: </div>
1.1.2.2 casties 97: </div> <!-- page-body -->
98: <div class="page-body" tal:condition="python:not here.isAccessible(docinfo)">
1.1.2.1 casties 99: <div class="errortext">Sorry, access to this document is restricted.</div>
100: </div>
101: </tal:block>
102: </body>
103: <body tal:condition="not:numPages">
104: <div class="errortext">Sorry, document doesn't exist.</div>
105: </body>
106: </html>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>