annotate zpt/viewer_index.zpt @ 539:37d122560028

more nicer
author casties
date Wed, 15 Aug 2012 16:59:45 +0200
parents dbf25bd05fc6
children 4b43a57ad9b3
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
29f2172db368 title also for non-bib-tag.
casties
parents: 502
diff changeset
5 tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl;
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
6 docpath docinfo/textURLPath | nothing;
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
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>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
19
536
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
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
23 <div class="col index-image">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
24 <!-- image -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
25 <a tal:define="tp docinfo/titlePage | nothing"
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
26 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="tp" border="0"
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
27 tal:attributes="src string:${docinfo/imageURL}&pn=$tp&dw=300&dh=500" /><img
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
28 tal:condition="python:not tp and exists('here/template/book.png')" border="0" src="template/book.png" /></a>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
29 </div>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
30
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
31 <div class="col">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
32 <div class="index-info">
539
37d122560028 more nicer
casties
parents: 538
diff changeset
33 <h2>Bibliographical information</h2>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
34 <table border="0"
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
35 tal:define="formattedData python:here.metadata.getBibFormattedMetaDataExtended(bibdata=docinfo.get('bib', None))">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
36 <tal:x condition="python:formattedData">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
37 <!-- wenn es bibinfo in docinfo gibt -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
38 <tr tal:replace="structure python:formattedData" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
39 </tal:x>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
40
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
41 <tal:x condition="not:formattedData">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
42 <!-- kein template fuer die daten -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
43 <tal:x condition="exists:docinfo/bib">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
44 <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
45 <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
46 <td class="content" tal:content="bibinfo/bib" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
47 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
48 </tal:x>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
49
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
50 <tal:y condition="not:exists:docinfo/bib">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
51 <!-- wenn es kein bibinfo gibt (archimedes-texte) -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
52 <tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
53 <td class="type">Author:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
54 <td class="content" tal:content="docinfo/creator" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
55 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
56 <tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
57 <td class="type">Title:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
58 <td class="content" tal:content="docinfo/title" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
59 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
60 <tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
61 <td class="type">Date:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
62 <td class="content" tal:content="docinfo/date" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
63 </tr>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
64 </tal:y>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
65 </tal:x>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
66 <!-- ende kein template fuer die daten -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
67 </table>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
68
539
37d122560028 more nicer
casties
parents: 538
diff changeset
69 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
37d122560028 more nicer
casties
parents: 538
diff changeset
70 <h2>Permanent URL</h2>
37d122560028 more nicer
casties
parents: 538
diff changeset
71 <table>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
72 <tr>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
73 <td class="type">Document ID:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
74 <td class="content" tal:content="dri" />
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
75 </tr>
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
76 <tr>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
77 <td class="type">Permanent URL:</td>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
78 <td class="content"><a tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri"
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
79 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
80 </tr>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
81 </table>
539
37d122560028 more nicer
casties
parents: 538
diff changeset
82 </tal:block>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
83
539
37d122560028 more nicer
casties
parents: 538
diff changeset
84 <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing">
37d122560028 more nicer
casties
parents: 538
diff changeset
85 <h2>Copyright information</h2>
37d122560028 more nicer
casties
parents: 538
diff changeset
86 <table border="0" tal:condition="attribution | copyright">
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
87 <!-- attribution -->
539
37d122560028 more nicer
casties
parents: 538
diff changeset
88 <tr tal:condition="attribution"
37d122560028 more nicer
casties
parents: 538
diff changeset
89 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
90 <!-- copyright -->
539
37d122560028 more nicer
casties
parents: 538
diff changeset
91 <tr tal:condition="copyright"
37d122560028 more nicer
casties
parents: 538
diff changeset
92 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
93 </table>
539
37d122560028 more nicer
casties
parents: 538
diff changeset
94 <table border="0" tal:condition="not:attribution | copyright">
37d122560028 more nicer
casties
parents: 538
diff changeset
95 <tr><td></td></tr>
37d122560028 more nicer
casties
parents: 538
diff changeset
96 </table>
37d122560028 more nicer
casties
parents: 538
diff changeset
97 </tal:block>
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
98 </div>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
99
538
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
100 <div class="index-actions">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
101 <div class="action">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
102 <a class="openbutton" tal:attributes="href python:context.getLink('viewMode','auto')">&#8594;Browse document</a>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
103 </div>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
104 <div class="action" tal:condition="docpath">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
105 Download full document as <a
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
106 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath.replace('.xml','.html'))"
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
107 target="_blank">&#8594;HTML</a> or <a
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
108 tal:attributes="href python:'http://mpdl-system.mpiwg-berlin.mpg.de/mpdl/getDoc?doc=%s'%(docpath)" target="_blank">&#8594;XML</a>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
109 </div>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
110 <div class="action">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
111 <!--BEGIN search -->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
112 <form tal:condition="docpath" tal:attributes="action python:here.getLink()">
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
113 <input type="hidden" tal:define="params python:here.getParams('viewMode', None)" tal:repeat="param params"
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
114 tal:attributes="name param; value python:params[param]" /> <input class="textMain" name="query"
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
115 onfocus="this.select();" type="text" tal:attributes="value query" /> <input type="submit" class="buttonMain"
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
116 value="Search in Book" />
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
117 </form>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
118 <!-- END search-->
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
119 </div>
dbf25bd05fc6 digilib buttons get icons. pid on index page.
casties
parents: 537
diff changeset
120 </div>
501
29c6d09a506c more cleanup.
casties
parents: 499
diff changeset
121 </div>
536
abd36d4d97b8 new version of index page. improvements for digilib page and thumbnail overview.
casties
parents: 535
diff changeset
122 </div>
499
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
123 </body>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
124 <body tal:condition="not:numPages">
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
125 <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
126 </body>
3f9703746fef more cleanup. new template for viewMode=index (not pretty so far).
casties
parents:
diff changeset
127 </html>