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;
|
|
5 tocMode pageinfo/tocMode; viewType pageinfo/viewType; viewerUrl docinfo/viewerUrl;
|
|
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;
|
|
30 flowLtr python:pageinfo.get('pageFlow','ltr')!='rtl';
|
|
31 textPage python:here.getTextPage(mode=viewType, pn=pn, docinfo=docinfo, pageinfo=pageinfo) or '[no text here]';">
|
|
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-->
|
|
38 <div class="col-left">
|
|
39 <metal:block
|
|
40 metal:use-macro="python:path('here/template/toc_%s/macros/main'%tocMode)" />
|
|
41 </div>
|
|
42
|
|
43 <!-- text page -->
|
|
44 <div class="col-main">
|
|
45 <div class="ruler">
|
|
46 <metal:block metal:use-macro="here/template/common_template/macros/page_ruler" />
|
|
47 </div>
|
|
48 <ul class="switcher">
|
|
49 <li>
|
|
50 <a tal:attributes="href python:here.getLink('viewMode','images')">Image</a>
|
|
51 </li>
|
|
52 <li class="sel">Text</li>
|
|
53 </ul>
|
|
54 <div class="content">
|
|
55 <div class="pageHeaderTitle" tal:condition="exists:pageinfo/pageHeaderTitle"
|
|
56 tal:content="structure pageinfo/pageHeaderTitle" />
|
|
57 <tal:block tal:replace="structure textPage" />
|
|
58 </div>
|
|
59 </div>
|
|
60 <!-- col-main -->
|
|
61
|
|
62 <!-- right-side options -->
|
|
63 <div class="col-right">
|
|
64 <!--"BEGIN TEXT DISPLAY" -->
|
|
65 <div class="options">
|
|
66 <h4>Text display</h4>
|
|
67 <form tal:attributes="action viewerUrl" class="autosubmit">
|
|
68 <input type="hidden"
|
|
69 tal:define="params python:here.getParams(params={'viewType':None})"
|
|
70 tal:repeat="param params"
|
|
71 tal:attributes="name param; value python:params[param]" /> <input
|
|
72 class="autosubmit" type="radio" name="viewType" value=""
|
|
73 tal:attributes="checked python:viewType!='xml'" /> Text<br /> <span
|
|
74 class="optionsText" tal:condition="python:viewType!='xml'">
|
|
75 <input type="checkbox" class="autosubmit" name="viewType"
|
|
76 value="dict" tal:attributes="checked python:viewType=='dict'" /> Dictionary<br />
|
|
77 </span> <span class="optionsText"
|
|
78 tal:condition="python:viewType!='xml' and docinfo.get('numPlaces',0)">
|
|
79 <input type="checkbox" class="autosubmit" name="viewType"
|
|
80 value="gis" tal:attributes="checked python:viewType=='gis'" /> Places<br />
|
|
81 </span> <input type="radio" class="autosubmit" name="viewType"
|
|
82 tal:attributes="value string:xml; checked python:viewType=='xml'" /> XML<br />
|
|
83 <input type="submit" value="Go!" />
|
|
84 </form>
|
|
85 </div>
|
|
86 <!--"END TEXT DISPLAY"-->
|
|
87
|
|
88 <!--"BEGIN TEXT SIZE"-->
|
|
89 <div class="options">
|
|
90 <h4>Text size</h4>
|
|
91 <div class="fsizer">
|
|
92 <a href="javascript:fontSize(12);" class="fs_sml">S</a> <a
|
|
93 href="javascript:fontSize(14);" class="fs_med">M</a> <a
|
|
94 href="javascript:fontSize(16);" class="fs_lrg">L</a>
|
|
95 </div>
|
|
96 </div>
|
|
97 <!--"END TEXT SIZE"-->
|
|
98
|
|
99 <!--"BEGIN DICTIONARY OVERVIEW"-->
|
|
100 <div class="options" tal:condition="python:viewType=='dict'">
|
|
101 <h4>Dictionary view</h4>
|
|
102 <form name="f3" action="">
|
|
103 <input type="radio" name="r3" />Tab<br /> <input type="radio" name="r3" />Window<br />
|
|
104 </form>
|
|
105 </div>
|
|
106 <!--"END DICTIONARY OVERVIEW"-->
|
|
107
|
|
108 <!--"BEGIN TEXT NORMALIZATION"-->
|
|
109 <div class="options" tal:condition="python:viewType!='xml'">
|
|
110 <h4>Text normalization</h4>
|
|
111 <form tal:attributes="action viewerUrl" class="autosubmit"
|
|
112 tal:define="norm python:pageinfo.get('characterNormalization','regPlusNorm');">
|
|
113 <input type="hidden"
|
|
114 tal:define="params python:here.getParams('characterNormalization',None)"
|
|
115 tal:repeat="param params"
|
|
116 tal:attributes="name param; value python:params[param]" /> <input
|
|
117 type="radio" class="autosubmit" name="characterNormalization" value="orig"
|
|
118 tal:attributes="checked python:norm=='orig'" /> Original<br /> <input
|
|
119 type="radio" class="autosubmit" name="characterNormalization" value="reg"
|
|
120 tal:attributes="checked python:norm=='reg'" /> Regularized<br /> <input
|
|
121 type="radio" class="autosubmit" name="characterNormalization"
|
|
122 value="regPlusNorm" tal:attributes="checked python:norm=='regPlusNorm'" />
|
|
123 Normalized<br /> <input type="submit" value="Go!" />
|
|
124 </form>
|
|
125 </div>
|
|
126 <!--"END TEXT NORMALIZATION"-->
|
|
127
|
|
128 <!--"BEGIN PLACES"-->
|
|
129 <div class="options" tal:condition="python:viewType=='gis'">
|
|
130 <tal:block
|
|
131 tal:define="gisPlaces python:here.getGisPlaces(docinfo=docinfo, pageinfo=pageinfo); gisAllPlaces python:here.getAllGisPlaces(docinfo=docinfo, pageinfo=pageinfo);">
|
|
132 <span><b>Places</b></span>
|
|
133 <br />(Link to extern:)<br />
|
|
134 <span>Page</span>
|
|
135 <span style="float: right"> <a
|
|
136 tal:attributes="href python:'http://chinagis.mpiwg-berlin.mpg.de/chinagis/REST/db/mpdl/%s?id=%s&format=%s'%(name,gisPlaces,'gis')"
|
|
137 target="_blank"> <img src="images/arrow.png" alt="" />
|
|
138 </a>
|
|
139 </span>
|
|
140 <br />
|
|
141 <span>Book</span>
|
|
142 <span style="float: right"> <a
|
|
143 tal:attributes="href python:'http://chinagis.mpiwg-berlin.mpg.de/chinagis/REST/db/mpdl/%s?format=%s'%(name,'gis')"
|
|
144 target="_blank"> <img src="images/arrow.png" alt="" />
|
|
145 </a>
|
|
146 </span>
|
|
147 <br />
|
|
148 </tal:block>
|
|
149 </div>
|
|
150 <!--"END PLACES"-->
|
|
151 </div>
|
|
152 <!-- /col-right -->
|
|
153
|
|
154 </div>
|
|
155 <!-- /page-body -->
|
|
156
|
|
157 <div class="page-body" tal:condition="python:not here.isAccessible(docinfo)">
|
|
158 <div class="errortext">Sorry, access to this document is restricted.</div>
|
|
159 </div>
|
|
160
|
|
161 </tal:block>
|
|
162 </body>
|
|
163 <body tal:condition="not:numPages">
|
|
164 <div class="errortext">Sorry, document doesn't exist.</div>
|
|
165 </body>
|
|
166 </html>
|