Mercurial > hg > documentViewer
annotate zpt/viewer_index.zpt @ 536:abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
author | casties |
---|---|
date | Thu, 26 Jul 2012 21:22:56 +0200 |
parents | 510bae2b593b |
children | ad6f97fd3944 |
rev | line source |
---|---|
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
3 <html xmlns="http://www.w3.org/1999/xhtml" |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; |
505 | 5 tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl; |
501 | 6 docpath docinfo/textURLPath | nothing; |
7 query nothing; | |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
8 numPages docinfo/numPages | nothing;"> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
9 <head> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
10 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
11 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" /> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
12 <link rel="stylesheet" href="template/docuviewer_css" type="text/css" /> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
13 </head> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
14 <body tal:condition="numPages"> |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
15 <!-- header --> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
16 <div class="page-head"> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
17 <metal:block metal:use-macro="here/template/common_template/macros/head" /> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
18 </div> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
19 |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
20 <!-- main --> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
21 <div class="page-body"> |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
22 |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
23 <div class="col index-image"> |
501 | 24 <!-- image --> |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
25 <a tal:define="tp docinfo/titlePage | nothing" tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
26 tal:condition="tp" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img |
535
510bae2b593b
more fixes, e.g. IE support. first version of index page.
casties
parents:
505
diff
changeset
|
27 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a> |
501 | 28 </div> |
29 | |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
30 <div class="col"> |
501 | 31 <div class="index-info"> |
32 <table border="0" | |
33 tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))"> | |
34 <tal:x condition="python:formattedData"> | |
35 <!-- wenn es bibinfo in docinfo gibt --> | |
36 <tr tal:replace="structure python:formattedData" /> | |
37 </tal:x> | |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
38 |
502 | 39 <tal:x condition="not:formattedData"> |
501 | 40 <!-- kein template fuer die daten --> |
41 <tal:x condition="exists:docinfo/bib"> | |
42 <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo"> | |
43 <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" /> | |
44 <td class="content" tal:content="bibinfo/bib" /> | |
45 </tr> | |
46 </tal:x> | |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
47 |
501 | 48 <tal:y condition="not:exists:docinfo/bib"> |
49 <!-- wenn es kein bibinfo gibt (archimedes-texte) --> | |
50 <tr> | |
51 <td class="type">Author:</td> | |
52 <td class="content" tal:content="docinfo/creator" /> | |
53 </tr> | |
54 <tr> | |
55 <td class="type">Title:</td> | |
56 <td class="content" tal:content="docinfo/title" /> | |
57 </tr> | |
58 <tr> | |
59 <td class="type">Date:</td> | |
60 <td class="content" tal:content="docinfo/date" /> | |
61 </tr> | |
62 </tal:y> | |
63 </tal:x> | |
64 <!-- ende kein template fuer die daten --> | |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
65 </table> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
66 |
501 | 67 <table border="0"> |
68 <!-- attribution --> | |
69 <tr tal:condition="exists:docinfo/attribution" | |
70 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=docinfo['attribution'])" /> | |
71 <!-- copyright --> | |
72 <tr tal:condition="exists:docinfo/copyright" | |
73 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=docinfo['copyright'])" /> | |
74 </table> | |
75 </div> | |
76 | |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
77 <div class="index-actions"> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
78 <div class="action"> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
79 <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">→Access Book</a> |
501 | 80 </div> |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
81 <div class="action" tal:condition="docpath"> |
502 | 82 Download as <a |
501 | 83 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))" |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
84 target="_blank">→HTML</a> or <a |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
85 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">→XML</a> |
501 | 86 </div> |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
87 <div class="action"> |
501 | 88 <!--BEGIN search --> |
89 <form tal:condition="docpath" tal:attributes="action python:here.getLink()"> | |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
90 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params" |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
91 tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query" onfocus="this.select();" |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
92 type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain" value="Search in Book" /> |
501 | 93 </form> |
94 <!-- END search--> | |
95 </div> | |
96 </div> | |
536
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
97 </div> |
abd36d4d97b8
new version of index page. improvements for digilib page and thumbnail overview.
casties
parents:
535
diff
changeset
|
98 </div> |
499
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
99 </body> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
100 <body tal:condition="not:numPages"> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
101 <div class="errortext">Sorry, document doesn't exist.</div> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
102 </body> |
3f9703746fef
more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff
changeset
|
103 </html> |