Mercurial > hg > documentViewer
annotate zpt/viewer/common_template.zpt @ 629:e36bf3226fde
text image viewer eingecheckt
author | dwinter |
---|---|
date | Tue, 26 May 2015 10:58:27 +0200 |
parents | 7962e6891d99 |
children |
rev | line source |
---|---|
501 | 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" | |
528 | 10 tal:define="viewMode pageinfo/viewMode; |
11 docpath docinfo/textURLPath | nothing; | |
12 bib docinfo/bib | nothing; bibType docinfo/bibType | nothing; | |
13 formattedLabel python:here.metadataService.getBibFormattedLabel(bibdata=bib);"> | |
543 | 14 <div class="logo" tal:condition="exists:here/template/site_template.pt/macros/logo"> |
15 <metal:block metal:use-macro="here/template/site_template.pt/macros/logo"/> | |
532 | 16 </div> |
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 | 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" /> |
608 | 27 <div class="title part-of" tal:condition="exists:docinfo/partOfPath"> |
28 part of: <a tal:attributes="href docinfo/partOfUrl" target="_blank" tal:content="structure docinfo/partOfLabel"/> | |
29 </div> | |
584
011905457a5f
new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
577
diff
changeset
|
30 <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
|
31 <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
|
32 tal:omit-tag="python:viewMode=='text'" tal:attributes="href python:here.getLink('viewMode','text')">Text</a></li> |
629 | 33 <li tal:condition="docpath" tal:attributes="class python:here.getStyle(viewMode, 'text')"><a |
34 tal:omit-tag="python:viewMode=='text_image'" tal:attributes="href python:here.getLink('viewMode','text_image')">Text Image</a></li> | |
590 | 35 <li tal:condition="python:docinfo.get('imagePath',None)" tal:attributes="class python:here.getStyle(viewMode, 'image')"><a |
36 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
|
37 <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
|
38 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
|
39 <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
|
40 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
|
41 overview</a></li> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
42 <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
|
43 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
|
44 </ul> |
502 | 45 </div> |
501 | 46 </metal:block> |
47 <!-- /head --> | |
48 | |
532 | 49 |
501 | 50 <!-- page ruler with previous/next page buttons --> |
51 <metal:block metal:define-macro="page_ruler" | |
607 | 52 tal:define="minPageNo docinfo/minPageNo; maxPageNo docinfo/maxPageNo; |
53 prev python:test(pn>minPageNo,pn-1,None); next python:test(pn<maxPageNo,pn+1,None); | |
54 first python:test(pn>minPageNo,minPageNo,None); last python:test(pn<maxPageNo,maxPageNo,None); | |
501 | 55 left python:test(flowLtr,prev,next); right python:test(flowLtr,next,prev); |
56 leftest python:test(flowLtr,first,last); rightest python:test(flowLtr,last,first);"> | |
57 <form class="autosubmit" tal:attributes="action viewerUrl"> | |
532 | 58 <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
|
59 tal:attributes="name param; value python:params[param]" /> <span class="ruler-main">page <a tal:condition="leftest" |
532 | 60 tal:attributes="href python:here.getLink('pn',leftest)">|<</a> <span tal:condition="not:leftest">|<</span> <a |
61 tal:condition="left" tal:attributes="href python:here.getLink('pn',left)"><</a> <span tal:condition="not:left"><</span> | |
62 <input class="autosubmit" size="3" type="text" name="pn" tal:attributes="value pn" /> <span class="originalPage" | |
63 title="Original page number" tal:define="originalPage pageinfo/pageNumberOrig | nothing" | |
64 tal:condition="python:originalPage!=None"> (<span tal:replace="originalPage" /><span | |
65 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
|
66 [<span tal:replace="originalPageNorm" />] |
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 </span> <input type="submit" value="Go" /> of <span tal:replace="numPages" /> <a tal:condition="right" |
532 | 69 tal:attributes="href python:here.getLink('pn',right)">></a> <span tal:condition="not:right">></span> <a |
70 tal:condition="rightest" tal:attributes="href python:here.getLink('pn',rightest)">>|</a> <span | |
501 | 71 tal:condition="not:rightest">>|</span> |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
72 </span> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
73 <!-- ruler-main --> |
501 | 74 </form> |
75 </metal:block> | |
76 <!-- /ruler --> | |
77 | |
528 | 78 <!-- toc ruler (using getBatch) with previous/next toc page buttons --> |
501 | 79 <metal:block metal:define-macro="toc_ruler"> |
532 | 80 <form class="autosubmit" tal:attributes="action viewerUrl" tal:define="startParam startParam | string:start"> |
81 <input type="hidden" tal:define="params python:here.getParams(startParam, None)" tal:repeat="param params" | |
82 tal:attributes="name param; value python:params[param]" /> <a tal:condition="batch/prevStart" | |
83 tal:attributes="href python:here.getLink(startParam,batch['prevStart'])"><</a> <span tal:condition="not:batch/prevStart"><</span> | |
511 | 84 <select class="autosubmit" tal:attributes="name startParam"> |
571 | 85 <option tal:repeat="grp batch/batches" tal:attributes="selected python:(start>=grp['start'] and start<=grp['end']); value grp/start" |
501 | 86 tal:content="string:${grp/start} - ${grp/end}" /> |
571 | 87 <option tal:condition="python:start>batch['last']" selected="selected" value="1">[out of range]</option> |
532 | 88 </select> <input type="submit" value="Go" /> <a tal:condition="batch/nextStart" |
89 tal:attributes="href python:here.getLink(startParam,batch['nextStart'])">></a> <span tal:condition="not:batch/nextStart">></span> | |
528 | 90 </form> |
91 </metal:block> | |
92 | |
93 <!-- toc ruler for thumbs (using getPageBatch) with previous/next toc page buttons --> | |
94 <metal:block metal:define-macro="toc_ruler_thumbs"> | |
95 <form class="autosubmit" tal:attributes="action viewerUrl"> | |
532 | 96 <input type="hidden" tal:define="params python:here.getParams('start',None)" tal:repeat="param params" |
607 | 97 tal:attributes="name param; value python:params[param]" /><span class="ruler-main"><a tal:omit-tag="not:left" |
98 tal:attributes="href python:here.getLink('start',left)"><</a> <select | |
532 | 99 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
|
100 <tal:block> |
571 | 101 <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
|
102 tal:content="string:${grp/start} - ${grp/end}" /> |
571 | 103 <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
|
104 </tal:block> |
607 | 105 </select> <input type="submit" value="Go" /> <a tal:omit-tag="not:right" tal:attributes="href python:here.getLink('start',right)">></a> |
106 </span> | |
501 | 107 </form> |
108 </metal:block> | |
109 | |
526 | 110 <!-- toc type switcher --> |
111 <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
|
112 <div class="toc-switcher-col"> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
113 <div class="toc-switcher"> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
114 <ul> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
115 <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
|
116 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
|
117 <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
|
118 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
|
119 tal:omit-tag="python:tocMode=='concordance'" tal:attributes="href python:here.getLink('tocMode','concordance')">Concordance</a></span></li> |
609 | 120 <li tal:attributes="class python:here.getStyle(tocMode, 'notes')" |
121 tal:condition="python:docpath and docinfo.get('numNotes', None)"><span><a | |
122 tal:omit-tag="python:tocMode=='notes'" tal:attributes="href python:here.getLink('tocMode','notes')">Notes</a></span></li> | |
577 | 123 <li tal:attributes="class python:here.getStyle(tocMode, 'handwritten')" |
124 tal:condition="python:docpath and docinfo.get('numHandwritten', None)"><span><a | |
609 | 125 tal:omit-tag="python:tocMode=='handwritten'" tal:attributes="href python:here.getLink('tocMode','handwritten')">Handwritten</a></span></li> |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
126 <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
|
127 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
|
128 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
|
129 <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
|
130 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
|
131 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
|
132 <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
|
133 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
|
134 </ul> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
135 </div> |
535
510bae2b593b
more fixes, e.g. IE support. first version of index page.
casties
parents:
534
diff
changeset
|
136 </div> |
526 | 137 </metal:block> |
138 | |
501 | 139 </body> |
140 </html> |