annotate zpt/common_template.zpt @ 590:ed4485d2748e

viewMode "images" changed to "image".
author casties
date Fri, 16 Nov 2012 11:44:21 +0100
parents 011905457a5f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
501
29c6d09a506c more cleanup.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
29c6d09a506c more cleanup.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
29c6d09a506c more cleanup.
casties
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
29c6d09a506c more cleanup.
casties
parents:
diff changeset
4 <head>
29c6d09a506c more cleanup.
casties
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
29c6d09a506c more cleanup.
casties
parents:
diff changeset
6 </head>
29c6d09a506c more cleanup.
casties
parents:
diff changeset
7 <body>
29c6d09a506c more cleanup.
casties
parents:
diff changeset
8 <!-- block used for page header content area -->
29c6d09a506c more cleanup.
casties
parents:
diff changeset
9 <metal:block metal:define-macro="head"
528
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
10 tal:define="viewMode pageinfo/viewMode;
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
11 docpath docinfo/textURLPath | nothing;
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
12 bib docinfo/bib | nothing; bibType docinfo/bibType | nothing;
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
13 formattedLabel python:here.metadataService.getBibFormattedLabel(bibdata=bib);">
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 536
diff changeset
14 <div class="logo" tal:condition="exists:here/template/site_template.pt/macros/logo">
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 536
diff changeset
15 <metal:block metal:use-macro="here/template/site_template.pt/macros/logo"/>
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
16 </div>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
17 <div class="title-block">
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
18 <div class="title" tal:condition="not:formattedLabel">
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
19 <tal:block tal:condition="python:docinfo['creator'] or docinfo['title']">
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
20 <i tal:content="docinfo/creator" />,
528
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
21 <span tal:content="docinfo/title" />, <span tal:content="docinfo/date" />
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
22 </tal:block>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
23 <span tal:condition="not:python:docinfo['creator'] or docinfo['title']"
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
24 tal:content="string:[no bibliographical information for this document (type ${bibType})]" />
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
25 </div>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
26 <div class="title" tal:condition="formattedLabel" tal:content="structure formattedLabel" />
584
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents: 577
diff changeset
27 <ul class="view-switcher" metal:define-slot="view-switcher">
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
28 <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
29 tal:omit-tag="python:viewMode=='text'" tal:attributes="href python:here.getLink('viewMode','text')">Text</a></li>
590
ed4485d2748e viewMode "images" changed to "image".
casties
parents: 584
diff changeset
30 <li tal:condition="python:docinfo.get('imagePath',None)" tal:attributes="class python:here.getStyle(viewMode, 'image')"><a
ed4485d2748e viewMode "images" changed to "image".
casties
parents: 584
diff changeset
31 tal:omit-tag="python:viewMode=='image'" tal:attributes="href python:here.getLink('viewMode','image')">Image</a></li>
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
32 <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'xml')"><a
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
33 tal:omit-tag="python:viewMode=='xml'" tal:attributes="href python:here.getLink('viewMode','xml')">XML</a></li>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
34 <li tal:condition="python:docinfo.get('imagePath',None)" tal:attributes="class python:here.getStyle(viewMode, 'thumbs')"><a
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
35 tal:omit-tag="python:viewMode=='thumbs'" tal:attributes="href python:here.getLink('viewMode','thumbs')">Thumbnail
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
36 overview</a></li>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
37 <li tal:attributes="class python:here.getStyle(viewMode, 'index')"><a tal:omit-tag="python:viewMode=='index'"
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
38 tal:attributes="href python:here.getLink('viewMode','index')">Document information</a></li>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
39 </ul>
502
daf36d0fcfee more cleanup.
casties
parents: 501
diff changeset
40 </div>
501
29c6d09a506c more cleanup.
casties
parents:
diff changeset
41 </metal:block>
29c6d09a506c more cleanup.
casties
parents:
diff changeset
42 <!-- /head -->
29c6d09a506c more cleanup.
casties
parents:
diff changeset
43
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
44
501
29c6d09a506c more cleanup.
casties
parents:
diff changeset
45 <!-- page ruler with previous/next page buttons -->
29c6d09a506c more cleanup.
casties
parents:
diff changeset
46 <metal:block metal:define-macro="page_ruler"
29c6d09a506c more cleanup.
casties
parents:
diff changeset
47 tal:define="
29c6d09a506c more cleanup.
casties
parents:
diff changeset
48 prev python:test(pn>1,pn-1,None); next python:test(pn<numPages,pn+1,None);
29c6d09a506c more cleanup.
casties
parents:
diff changeset
49 first python:test(pn>1,1,None); last python:test(pn<numPages,numPages,None);
29c6d09a506c more cleanup.
casties
parents:
diff changeset
50 left python:test(flowLtr,prev,next); right python:test(flowLtr,next,prev);
29c6d09a506c more cleanup.
casties
parents:
diff changeset
51 leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);">
29c6d09a506c more cleanup.
casties
parents:
diff changeset
52 <form class="autosubmit" tal:attributes="action viewerUrl">
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
53 <input type="hidden" tal:define="params python:here.getParams('pn', None)" tal:repeat="param params"
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
54 tal:attributes="name param; value python:params[param]" /> <span class="ruler-main">page <a tal:condition="leftest"
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
55 tal:attributes="href python:here.getLink('pn',leftest)">|&lt;</a> <span tal:condition="not:leftest">|&lt;</span> <a
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
56 tal:condition="left" tal:attributes="href python:here.getLink('pn',left)">&lt;</a> <span tal:condition="not:left">&lt;</span>
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
57 <input class="autosubmit" size="3" type="text" name="pn" tal:attributes="value pn" /> <span class="originalPage"
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
58 title="Original page number" tal:define="originalPage pageinfo/pageNumberOrig | nothing"
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
59 tal:condition="python:originalPage!=None"> (<span tal:replace="originalPage" /><span
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
60 tal:define="originalPageNorm pageinfo/pageNumberOrigNorm | nothing" tal:condition="python:originalPageNorm!=None">
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
61 [<span tal:replace="originalPageNorm" />]
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
62 </span>)
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
63 </span> <input type="submit" value="Go" /> of <span tal:replace="numPages" /> <a tal:condition="right"
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
64 tal:attributes="href python:here.getLink('pn',right)">&gt;</a> <span tal:condition="not:right">&gt;</span> <a
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
65 tal:condition="rightest" tal:attributes="href python:here.getLink('pn',rightest)">&gt;|</a> <span
501
29c6d09a506c more cleanup.
casties
parents:
diff changeset
66 tal:condition="not:rightest">&gt;|</span>
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
67 </span>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
68 <!-- ruler-main -->
501
29c6d09a506c more cleanup.
casties
parents:
diff changeset
69 </form>
29c6d09a506c more cleanup.
casties
parents:
diff changeset
70 </metal:block>
29c6d09a506c more cleanup.
casties
parents:
diff changeset
71 <!-- /ruler -->
29c6d09a506c more cleanup.
casties
parents:
diff changeset
72
528
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
73 <!-- toc ruler (using getBatch) with previous/next toc page buttons -->
501
29c6d09a506c more cleanup.
casties
parents:
diff changeset
74 <metal:block metal:define-macro="toc_ruler">
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
75 <form class="autosubmit" tal:attributes="action viewerUrl" tal:define="startParam startParam | string:start">
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
76 <input type="hidden" tal:define="params python:here.getParams(startParam, None)" tal:repeat="param params"
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
77 tal:attributes="name param; value python:params[param]" /> <a tal:condition="batch/prevStart"
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
78 tal:attributes="href python:here.getLink(startParam,batch['prevStart'])">&lt;</a> <span tal:condition="not:batch/prevStart">&lt;</span>
511
551ca1641a5e more cleanup.
casties
parents: 505
diff changeset
79 <select class="autosubmit" tal:attributes="name startParam">
571
f1906951be2a nicer batching of tocs
casties
parents: 543
diff changeset
80 <option tal:repeat="grp batch/batches" tal:attributes="selected python:(start>=grp['start'] and start<=grp['end']); value grp/start"
501
29c6d09a506c more cleanup.
casties
parents:
diff changeset
81 tal:content="string:${grp/start} - ${grp/end}" />
571
f1906951be2a nicer batching of tocs
casties
parents: 543
diff changeset
82 <option tal:condition="python:start>batch['last']" selected="selected" value="1">[out of range]</option>
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
83 </select> <input type="submit" value="Go" /> <a tal:condition="batch/nextStart"
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
84 tal:attributes="href python:here.getLink(startParam,batch['nextStart'])">&gt;</a> <span tal:condition="not:batch/nextStart">&gt;</span>
528
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
85 </form>
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
86 </metal:block>
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
87
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
88 <!-- toc ruler for thumbs (using getPageBatch) with previous/next toc page buttons -->
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
89 <metal:block metal:define-macro="toc_ruler_thumbs">
f8a5f63eafc0 new viewMode=thumbs.
casties
parents: 527
diff changeset
90 <form class="autosubmit" tal:attributes="action viewerUrl">
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
91 <input type="hidden" tal:define="params python:here.getParams('start',None)" tal:repeat="param params"
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
92 tal:attributes="name param; value python:params[param]" /><span class="ruler-main"><a tal:condition="left"
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
93 tal:attributes="href python:here.getLink('start',left)">&lt;</a> <span tal:condition="not:left">&lt;</span> <select
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
94 class="autosubmit" name="start" tal:define="ofs python:test(pageinfo['pageZero'],0,1)">
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
95 <tal:block>
571
f1906951be2a nicer batching of tocs
casties
parents: 543
diff changeset
96 <option tal:repeat="grp pageBatch/batches" tal:attributes="selected python:(start>=grp['start'] and start<=grp['end']); value grp/start;"
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
97 tal:content="string:${grp/start} - ${grp/end}" />
571
f1906951be2a nicer batching of tocs
casties
parents: 543
diff changeset
98 <option tal:condition="python:start>pageBatch['last']" selected="selected" value="1">[out of range]</option>
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
99 </tal:block>
532
0b8bed1223ad new layout and styles.
casties
parents: 528
diff changeset
100 </select> <input type="submit" value="Go" /> <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">&gt;</a>
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
101 <span tal:condition="not:right">&gt;</span></span>
501
29c6d09a506c more cleanup.
casties
parents:
diff changeset
102 </form>
29c6d09a506c more cleanup.
casties
parents:
diff changeset
103 </metal:block>
29c6d09a506c more cleanup.
casties
parents:
diff changeset
104
526
3f375a048402 moved search and dict into separate layers.
casties
parents: 511
diff changeset
105 <!-- toc type switcher -->
3f375a048402 moved search and dict into separate layers.
casties
parents: 511
diff changeset
106 <metal:block metal:define-macro="toc_switcher">
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
107 <div class="toc-switcher-col">
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
108 <div class="toc-switcher">
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
109 <ul>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
110 <li tal:attributes="class python:here.getStyle(tocMode, 'none')"><span><a
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
111 tal:omit-tag="python:tocMode=='none'" tal:attributes="href python:here.getLink('tocMode','none')">None</a></span></li>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
112 <li tal:attributes="class python:here.getStyle(tocMode, 'concordance')"
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
113 tal:condition="python:docpath and docinfo.get('pageNumbers', None)"><span><a
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
114 tal:omit-tag="python:tocMode=='concordance'" tal:attributes="href python:here.getLink('tocMode','concordance')">Concordance</a></span></li>
577
9251719154a3 toc with list of handwritten notes.
casties
parents: 571
diff changeset
115 <li tal:attributes="class python:here.getStyle(tocMode, 'handwritten')"
9251719154a3 toc with list of handwritten notes.
casties
parents: 571
diff changeset
116 tal:condition="python:docpath and docinfo.get('numHandwritten', None)"><span><a
9251719154a3 toc with list of handwritten notes.
casties
parents: 571
diff changeset
117 tal:omit-tag="python:tocMode=='handwritten'" tal:attributes="href python:here.getLink('tocMode','handwritten')">Notes</a></span></li>
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
118 <li tal:attributes="class python:here.getStyle(tocMode, 'figures')"
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
119 tal:condition="python:docpath and docinfo.get('numFigureEntries', None)"><span><a
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
120 tal:omit-tag="python:tocMode=='figures'" tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a></span></li>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
121 <li tal:attributes="class python:here.getStyle(tocMode, 'text')"
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
122 tal:condition="python:docpath and docinfo.get('numTocEntries', None)"><span><a
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
123 tal:omit-tag="python:tocMode=='text'" tal:attributes="href python:here.getLink('tocMode','text')">Content</a></span></li>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
124 <li tal:attributes="class python:here.getStyle(tocMode, 'thumbs')"><span><a
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
125 tal:omit-tag="python:tocMode=='thumbs'" tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a></span></li>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
126 </ul>
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
127 </div>
535
510bae2b593b more fixes, e.g. IE support. first version of index page.
casties
parents: 534
diff changeset
128 </div>
526
3f375a048402 moved search and dict into separate layers.
casties
parents: 511
diff changeset
129 </metal:block>
3f375a048402 moved search and dict into separate layers.
casties
parents: 511
diff changeset
130
501
29c6d09a506c more cleanup.
casties
parents:
diff changeset
131 </body>
29c6d09a506c more cleanup.
casties
parents:
diff changeset
132 </html>