Mercurial > hg > documentViewer
comparison zpt/common_template.zpt @ 501:29c6d09a506c elementtree
more cleanup.
viewMode=index works now.
moved common template parts in common_template.
author | casties |
---|---|
date | Wed, 15 Feb 2012 17:57:02 +0100 |
parents | |
children | daf36d0fcfee |
comparison
equal
deleted
inserted
replaced
500:62cc3d7f7570 | 501:29c6d09a506c |
---|---|
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 <head> | |
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
6 </head> | |
7 <body> | |
8 <!-- block used for page header content area --> | |
9 <metal:block metal:define-macro="head" | |
10 tal:define="docpath docinfo/textURLPath | nothing; | |
11 query here/REQUEST/query | nothing; | |
12 queryType here/REQUEST/queryType | nothing; | |
13 bib docinfo/bib | nothing; bibType docinfo/bibType | nothing; | |
14 formattedLabel python:here.metadataService.getBibFormattedLabel(bibdata=bib);"> | |
15 <div tal:condition="not:formattedLabel" | |
16 tal:content="string:[no bibliographical information for this document (type ${bibType})]" /> | |
17 <div tal:condition="formattedLabel" tal:content="structure formattedLabel" /> | |
18 </metal:block> | |
19 <!-- /head --> | |
20 | |
21 <!-- page ruler with previous/next page buttons --> | |
22 <metal:block metal:define-macro="page_ruler" | |
23 tal:define=" | |
24 prev python:test(pn>1,pn-1,None); next python:test(pn<numPages,pn+1,None); | |
25 first python:test(pn>1,1,None); last python:test(pn<numPages,numPages,None); | |
26 left python:test(flowLtr,prev,next); right python:test(flowLtr,next,prev); | |
27 leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);"> | |
28 <form class="autosubmit" tal:attributes="action viewerUrl"> | |
29 <input type="hidden" tal:define="params python:here.getParams('pn', None)" | |
30 tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> | |
31 page <a tal:condition="leftest" | |
32 tal:attributes="href python:here.getLink('pn',leftest)">|<</a> <span | |
33 tal:condition="not:leftest">|<</span> <a tal:condition="left" | |
34 tal:attributes="href python:here.getLink('pn',left)"><</a> <span | |
35 tal:condition="not:left"><</span> <input class="autosubmit" size="3" | |
36 type="text" name="pn" tal:attributes="value pn" /> <span class="originalPage" | |
37 title="Original page number" | |
38 tal:define="originalPage pageinfo/pageNumberOrig | nothing" | |
39 tal:condition="python:originalPage!=None"> (<span | |
40 tal:replace="originalPage" /><span | |
41 tal:define="originalPageNorm pageinfo/pageNumberOrigNorm | nothing" | |
42 tal:condition="python:originalPageNorm!=None"> [<span | |
43 tal:replace="originalPageNorm" />] | |
44 </span>) | |
45 </span> <input type="submit" value="Go" /> of <span tal:replace="numPages" /> <a | |
46 tal:condition="right" tal:attributes="href python:here.getLink('pn',right)">></a> | |
47 <span tal:condition="not:right">></span> <a tal:condition="rightest" | |
48 tal:attributes="href python:here.getLink('pn',rightest)">>|</a> <span | |
49 tal:condition="not:rightest">>|</span> | |
50 </form> | |
51 </metal:block> | |
52 <!-- /ruler --> | |
53 | |
54 <!-- toc ruler with previous/next toc page buttons --> | |
55 <metal:block metal:define-macro="toc_ruler"> | |
56 <form class="autosubmit" tal:attributes="action viewerUrl"> | |
57 <input type="hidden" tal:define="params python:here.getParams('start', None)" | |
58 tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> | |
59 <a tal:condition="batch/prevStart" | |
60 tal:attributes="href python:here.getLink('start',batch['prevStart'])"><</a> <span | |
61 tal:condition="not:batch/prevStart"><</span> | |
62 <select class="autosubmit" name="start"> | |
63 <option tal:repeat="grp batch/batches" | |
64 tal:attributes="selected python:(start==grp['start']); value grp/start" | |
65 tal:content="string:${grp/start} - ${grp/end}" /> | |
66 </select> | |
67 <input type="submit" value="Go" /> <a tal:condition="batch/nextStart" | |
68 tal:attributes="href python:here.getLink('start',batch['nextStart'])">></a> <span | |
69 tal:condition="not:batch/nextStart">></span> | |
70 </form> | |
71 </metal:block> | |
72 | |
73 </body> | |
74 </html> |