annotate zpt/viewer/viewer_indexonly.zpt @ 606:37ad612edf5a

fixed bug in indexonly with no image.
author casties
date Tue, 11 Dec 2012 16:33:12 -0500
parents da7daa783df4
children
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 -->
606
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
28 <a tal:define="tp docinfo/titlePage | string:1" tal:condition="python:docinfo.get('imageURL',None) and tp or exists('here/template/book.png')"
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
29 tal:attributes="href python:context.getLink(params={'viewMode':'auto','pn':tp})"><img tal:condition="python:docinfo.get('imageURL',None) and tp" border="0"
584
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
606
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
31 tal:condition="python:(not docinfo.get('imageURL',None)) and exists('here/template/book.png')" border="0"
584
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 -->
606
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
47 <tal:block condition="exists:docinfo/bib">
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
48 <tal:block tal:define="bibinfo docinfo/bib" tal:repeat="bib bibinfo">
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
49 <tr tal:condition="python:bib[0]!='@'">
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
50 <td class="type" tal:content="python:bib.capitalize().replace('_',' ') + ':'" />
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
51 <td class="content" tal:content="python:bibinfo[bib]" />
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
52 </tr>
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
53 </tal:block>
37ad612edf5a fixed bug in indexonly with no image.
casties
parents: 594
diff changeset
54 </tal:block>
584
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
55
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
56 <tal:y condition="not:exists:docinfo/bib">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
57 <!-- wenn es kein bibinfo gibt (archimedes-texte) -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
58 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
59 <td class="type">Author:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
60 <td class="content" tal:content="docinfo/creator" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
61 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
62 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
63 <td class="type">Title:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
64 <td class="content" tal:content="docinfo/title" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
65 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
66 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
67 <td class="type">Date:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
68 <td class="content" tal:content="docinfo/date" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
69 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
70 </tal:y>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
71 </tal:x>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
72 <!-- ende kein template fuer die daten -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
73 </table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
74
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
75 <tal:block tal:define="dri docinfo/DRI | nothing" tal:condition="dri">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
76 <h2>Permanent URL</h2>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
77 <table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
78 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
79 <td class="type">Document ID:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
80 <td class="content" tal:content="dri" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
81 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
82 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
83 <td class="type">Permanent URL:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
84 <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
85 tal:content="string:http://echo.mpiwg-berlin.mpg.de/$dri" /></td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
86 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
87 </table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
88 </tal:block>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
89
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
90 <tal:block tal:define="ctxs docinfo/presentationContext | nothing" tal:condition="ctxs">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
91 <h2>Presentation context</h2>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
92 <ul>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
93 <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
94 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
95 </ul>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
96 </tal:block>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
97
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
98 <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
99 <h2>Copyright information</h2>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
100 <table border="0" tal:condition="attribution | copyright">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
101 <!-- attribution -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
102 <tr tal:condition="attribution"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
103 tal:replace="structure python:here.metadataService.getAttributionFormatted('metadata_template', data=attribution)" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
104 <!-- copyright -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
105 <tr tal:condition="copyright"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
106 tal:replace="structure python:here.metadataService.getCopyrightFormatted('metadata_template', data=copyright)" />
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
107 </table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
108 <table border="0" tal:condition="not:attribution | copyright">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
109 <tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
110 <td class="type">Copyright:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
111 <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
112 History of Science</a> (unless stated otherwise)</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
113 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
114 <tr tal:define="accType python:docinfo.get('accessType', None)">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
115 <td class="type">License:</td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
116 <td tal:condition="python:accType == 'free'" class="content"><a target="_blank"
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
117 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
118 <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
119 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
120 (unless stated otherwise)
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
121 </td>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
122 </tr>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
123 </table>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
124 </tal:block>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
125 </div>
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 <!-- /main content column -->
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
128 </div>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
129
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
130 </body>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
131 <body tal:condition="not:numPages">
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
132 <div class="errortext">Sorry, document doesn't exist.</div>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
133 </body>
011905457a5f new viewmode=indexonly as coverpage for pdf-generation.
casties
parents:
diff changeset
134 </html>