source: documentViewer/zpt/common_template.zpt @ 504:454a42f4c369

elementtree
Last change on this file since 504:454a42f4c369 was 502:daf36d0fcfee, checked in by casties, 12 years ago

more cleanup.

File size: 4.0 KB
Line 
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    <div class="doclinks">
19      <a tal:attributes="href python:here.getLink('viewMode','index')">Bibliographical information</a>
20    </div>
21  </metal:block>
22  <!-- /head -->
23
24  <!-- page ruler with previous/next page buttons -->
25  <metal:block metal:define-macro="page_ruler"
26    tal:define="
27              prev python:test(pn>1,pn-1,None); next python:test(pn<numPages,pn+1,None);
28              first python:test(pn>1,1,None); last python:test(pn<numPages,numPages,None);
29              left python:test(flowLtr,prev,next); right python:test(flowLtr,next,prev);
30              leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);">
31    <form class="autosubmit" tal:attributes="action viewerUrl">
32      <input type="hidden" tal:define="params python:here.getParams('pn', None)" tal:repeat="param params"
33        tal:attributes="name param; value python:params[param]" /> page <a tal:condition="leftest"
34        tal:attributes="href python:here.getLink('pn',leftest)">|&lt;</a> <span tal:condition="not:leftest">|&lt;</span> <a
35        tal:condition="left" tal:attributes="href python:here.getLink('pn',left)">&lt;</a> <span tal:condition="not:left">&lt;</span>
36      <input class="autosubmit" size="3" type="text" name="pn" tal:attributes="value pn" /> <span class="originalPage"
37        title="Original page number" tal:define="originalPage pageinfo/pageNumberOrig | nothing"
38        tal:condition="python:originalPage!=None"> (<span tal:replace="originalPage" /><span
39        tal:define="originalPageNorm pageinfo/pageNumberOrigNorm | nothing" tal:condition="python:originalPageNorm!=None"> [<span
40          tal:replace="originalPageNorm" />]
41      </span>)
42      </span> <input type="submit" value="Go" /> of <span tal:replace="numPages" /> <a tal:condition="right"
43        tal:attributes="href python:here.getLink('pn',right)">&gt;</a> <span tal:condition="not:right">&gt;</span> <a
44        tal:condition="rightest" tal:attributes="href python:here.getLink('pn',rightest)">&gt;|</a> <span
45        tal:condition="not:rightest">&gt;|</span>
46    </form>
47  </metal:block>
48  <!-- /ruler -->
49
50  <!-- toc ruler with previous/next toc page buttons -->
51  <metal:block metal:define-macro="toc_ruler">
52    <form class="autosubmit" tal:attributes="action viewerUrl">
53      <input type="hidden" tal:define="params python:here.getParams('start', None)" tal:repeat="param params"
54        tal:attributes="name param; value python:params[param]" /> <a tal:condition="batch/prevStart"
55        tal:attributes="href python:here.getLink('start',batch['prevStart'])">&lt;</a> <span tal:condition="not:batch/prevStart">&lt;</span>
56      <select class="autosubmit" name="start">
57        <option tal:repeat="grp batch/batches" tal:attributes="selected python:(start==grp['start']); value grp/start"
58          tal:content="string:${grp/start} - ${grp/end}" />
59      </select> <input type="submit" value="Go" /> <a tal:condition="batch/nextStart"
60        tal:attributes="href python:here.getLink('start',batch['nextStart'])">&gt;</a> <span tal:condition="not:batch/nextStart">&gt;</span>
61    </form>
62  </metal:block>
63
64</body>
65</html>
Note: See TracBrowser for help on using the repository browser.