annotate zpt/viewer/viewer_indexonly.zpt @ 602:ef1d0a1fc9fa

fix bug with no dc-metadata.
author casties
date Mon, 26 Nov 2012 13:49:43 +0100
parents da7daa783df4
children 37ad612edf5a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
584
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode;
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
5 tocMode pageinfo/tocMode; viewerUrl docinfo/viewerUrl;
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
6 docpath docinfo/textURLPath | nothing;
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
7 query nothing;
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
8 numPages docinfo/numPages | nothing;
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
9 global formattedData python:here.metadata.getBibFormattedMetaData(bibdata=docinfo.get('bib', None));">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
10 <head>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
11 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
12 <title tal:content="python:docinfo.get('creator',' ') + ' - ' + docinfo.get('title',' ')" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
13 <link rel="stylesheet" tal:attributes="href string:$viewerUrl/template/docuviewer_css" type="text/css" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
14 </head>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
15 <body tal:condition="numPages">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
16 <!-- header -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
17 <div class="page-head">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
18 <metal:block metal:use-macro="here/template/common_template/macros/head">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
19 <div metal:fill-slot="view-switcher"></div>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
20 </metal:block>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
21 </div>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
22
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
23 <!-- main -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
24 <div class="page-body">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
25
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
26 <div class="col index-image">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
27 <!-- image -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
28 <a tal:define="tp docinfo/titlePage | string:1"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
29 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="tp" border="0"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
30 tal:attributes="src python:'%s&pn=%s&dw=300&dh=500'%(docinfo.get('imageURL',None),tp)" /><img
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
31 tal:condition="python:not docinfo.get('titlePage',None) and exists('here/template/book.png')" border="0"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
32 src="template/book.png" /></a>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
33 </div>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
34
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
35 <div class="col main">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
36 <!-- main content column -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
37 <div class="index-info">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
38 <h2>Bibliographic information</h2>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
39 <table border="0">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
40 <tal:x condition="python:formattedData">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
41 <!-- wenn es bibinfo in docinfo gibt -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
42 <tr tal:replace="structure python:formattedData" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
43 </tal:x>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
44
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
45 <tal:x condition="not:formattedData">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
46 <!-- kein template fuer die daten -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
47 <tal:x condition="exists:docinfo/bib">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
48 <tr tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
49 <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
50 <td class="content" tal:content="bibinfo/bib" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
51 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
52 </tal:x>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
53
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
54 <tal:y condition="not:exists:docinfo/bib">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
55 <!-- wenn es kein bibinfo gibt (archimedes-texte) -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
56 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
57 <td class="type">Author:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
58 <td class="content" tal:content="docinfo/creator" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
59 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
60 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
61 <td class="type">Title:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
62 <td class="content" tal:content="docinfo/title" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
63 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
64 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
65 <td class="type">Date:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
66 <td class="content" tal:content="docinfo/date" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
67 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
68 </tal:y>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
69 </tal:x>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
70 <!-- ende kein template fuer die daten -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
71 </table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
72
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
73 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
74 <h2>Permanent URL</h2>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
75 <table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
76 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
77 <td class="type">Document ID:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
78 <td class="content" tal:content="dri" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
79 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
80 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
81 <td class="type">Permanent URL:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
82 <td class="content"><a target="_blank" tal:attributes="href string:http://echo.mpiwg-berlin.mpg.de/$dri"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
83 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
84 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
85 </table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
86 </tal:block>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
87
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
88 <tal:block tal:define="ctxs docinfo/presentationContext | nothing" tal:condition="ctxs">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
89 <h2>Presentation context</h2>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
90 <ul>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
91 <li tal:repeat="ctx ctxs"><a tal:define="link ctx/link | nothing; name ctx/name | link;" tal:content="name"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
92 tal:attributes="href link" target="_blank" tal:omit-tag="not:link" /></li>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
93 </ul>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
94 </tal:block>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
95
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
96 <tal:block tal:define="attribution docinfo/attribution | nothing; copyright docinfo/copyright | nothing">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
97 <h2>Copyright information</h2>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
98 <table border="0" tal:condition="attribution | copyright">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
99 <!-- attribution -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
100 <tr tal:condition="attribution"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
101 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
102 <!-- copyright -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
103 <tr tal:condition="copyright"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
104 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
105 </table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
106 <table border="0" tal:condition="not:attribution | copyright">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
107 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
108 <td class="type">Copyright:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
109 <td class="content"><a target="_blank" href="http://www.mpiwg-berlin.mpg.de">Max Planck Institute for the
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
110 History of Science</a> (unless stated otherwise)</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
111 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
112 <tr tal:define="accType python:docinfo.get('accessType', None)">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
113 <td class="type">License:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
114 <td tal:condition="python:accType == 'free'" class="content"><a target="_blank"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
115 href="http://creativecommons.org/licenses/by-sa/3.0/de/">CC-BY-SA</a> (unless stated otherwise)</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
116 <td tal:condition="python:accType != 'free'" class="content">Internal use only<span tal:condition="accType"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
117 tal:content="string: ($accType)" />, please contact <a href="mailto:library@mpiwg-berlin.mpg.de">library@mpiwg-berlin.mpg.de</a>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
118 (unless stated otherwise)
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
119 </td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
120 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
121 </table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
122 </tal:block>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
123 </div>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
124 </div>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
125 <!-- /main content column -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
126 </div>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
127
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
128 </body>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
129 <body tal:condition="not:numPages">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
130 <div class="errortext">Sorry, document doesn't exist.</div>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
131 </body>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
132 </html>