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